From 14cde93d0575e92a10eadac22708cf14c82674e3 Mon Sep 17 00:00:00 2001 From: NamSor SAS Date: Mon, 14 Jan 2019 10:29:23 +0100 Subject: [PATCH] openapi-generator --- .gitattributes.txt | 3 + README.md | 213 +- docs/APIBillingPeriodUsageOut.md | 19 + docs/APICounterV2Out.md | 16 + docs/APIKeyOut.md | 17 + docs/APIPeriodUsageOut.md | 15 + docs/APIPlanOut.md | 13 + docs/APIPlanSubscriptionOut.md | 28 + docs/APIPlansOut.md | 13 + docs/APIServiceOut.md | 12 + docs/APIServicesOut.md | 10 + docs/APIUsageAggregatedOut.md | 17 + docs/AdminApi.md | 1680 ++++++++++ docs/BatchFirstLastNameDiasporaedOut.md | 10 + docs/BatchFirstLastNameGenderIn.md | 10 + docs/BatchFirstLastNameGenderedOut.md | 10 + docs/BatchFirstLastNameGeoIn.md | 10 + docs/BatchFirstLastNameGeoZippedIn.md | 10 + docs/BatchFirstLastNameIn.md | 10 + docs/BatchFirstLastNameOriginedOut.md | 10 + docs/BatchFirstLastNamePhoneCodedOut.md | 10 + docs/BatchFirstLastNamePhoneNumberIn.md | 10 + docs/BatchFirstLastNameUSRaceEthnicityOut.md | 10 + docs/BatchNameMatchCandidatesOut.md | 10 + docs/BatchParsedFullNameGeoIn.md | 10 + docs/BatchParsedFullNameIn.md | 10 + docs/BatchPersonalNameGeoOut.md | 10 + docs/BatchPersonalNameIn.md | 10 + docs/BillingHistoryOut.md | 11 + docs/BillingInfoInOut.md | 20 + docs/ChineseApi.md | 234 ++ docs/ClassifierMetricsOut.md | 32 + docs/CurrenciesOut.md | 10 + docs/DeployUIOut.md | 11 + docs/ExpectedClassMetricsOut.md | 15 + docs/FirstLastNameDiasporaedOut.md | 16 + docs/FirstLastNameGenderIn.md | 13 + docs/FirstLastNameGenderedOut.md | 15 + docs/FirstLastNameGeoIn.md | 13 + docs/FirstLastNameGeoZippedIn.md | 14 + docs/FirstLastNameIn.md | 12 + docs/FirstLastNameOriginedOut.md | 18 + docs/FirstLastNamePhoneCodedOut.md | 24 + docs/FirstLastNamePhoneNumberIn.md | 13 + docs/FirstLastNameUSRaceEthnicityOut.md | 15 + docs/InlineObject.md | 11 + docs/InvoiceItemOut.md | 20 + docs/InvoiceOut.md | 31 + docs/NamSorCounterOut.md | 10 + docs/NameMatchCandidateOut.md | 11 + docs/NameMatchCandidatesOut.md | 13 + docs/ParsedFullNameGeoIn.md | 16 + docs/ParsedFullNameIn.md | 15 + docs/PersonalApi.md | 906 ++++++ docs/PersonalNameGeoOut.md | 17 + docs/PersonalNameIn.md | 11 + docs/RomanizedNameOut.md | 17 + docs/SocialApi.md | 122 + docs/SoftwareVersionOut.md | 11 + docs/SourceDetailedMetricsOut.md | 19 + docs/SourceMetricsOut.md | 18 + docs/StripeCardOut.md | 15 + docs/StripeCustomerOut.md | 13 + docs/SystemMetricsOut.md | 14 + docs/UserInfoOut.md | 24 + git_push.sh | 52 + openapi_client/__init__.py | 88 + openapi_client/api_client.py | 635 ++++ .../com.namsor.sdk2.api/__init__.py | 9 + .../com.namsor.sdk2.model/__init__.py | 76 + .../com/namsor/sdk2/api/admin_api.py | 2892 +++++++++++++++++ .../com/namsor/sdk2/api/chinese_api.py | 434 +++ .../com/namsor/sdk2/api/personal_api.py | 1610 +++++++++ .../com/namsor/sdk2/api/social_api.py | 238 ++ .../model/api_billing_period_usage_out.py | 347 ++ .../namsor/sdk2/model/api_counter_v2_out.py | 269 ++ .../com/namsor/sdk2/model/api_key_out.py | 295 ++ .../namsor/sdk2/model/api_period_usage_out.py | 243 ++ .../com/namsor/sdk2/model/api_plan_out.py | 191 ++ .../sdk2/model/api_plan_subscription_out.py | 581 ++++ .../com/namsor/sdk2/model/api_plans_out.py | 191 ++ .../com/namsor/sdk2/model/api_service_out.py | 165 + .../com/namsor/sdk2/model/api_services_out.py | 113 + .../sdk2/model/api_usage_aggregated_out.py | 295 ++ .../batch_first_last_name_diasporaed_out.py | 113 + .../model/batch_first_last_name_gender_in.py | 113 + .../batch_first_last_name_gendered_out.py | 113 + .../model/batch_first_last_name_geo_in.py | 113 + .../batch_first_last_name_geo_zipped_in.py | 113 + .../sdk2/model/batch_first_last_name_in.py | 113 + .../batch_first_last_name_origined_out.py | 113 + .../batch_first_last_name_phone_coded_out.py | 113 + .../batch_first_last_name_phone_number_in.py | 113 + ...h_first_last_name_us_race_ethnicity_out.py | 113 + .../model/batch_name_match_candidates_out.py | 113 + .../model/batch_parsed_full_name_geo_in.py | 113 + .../sdk2/model/batch_parsed_full_name_in.py | 113 + .../sdk2/model/batch_personal_name_geo_out.py | 113 + .../sdk2/model/batch_personal_name_in.py | 113 + .../namsor/sdk2/model/billing_history_out.py | 139 + .../namsor/sdk2/model/billing_info_in_out.py | 373 +++ .../sdk2/model/classifier_metrics_out.py | 685 ++++ .../com/namsor/sdk2/model/currencies_out.py | 113 + .../com/namsor/sdk2/model/deploy_ui_out.py | 139 + .../sdk2/model/expected_class_metrics_out.py | 243 ++ .../model/first_last_name_diasporaed_out.py | 271 ++ .../sdk2/model/first_last_name_gender_in.py | 191 ++ .../model/first_last_name_gendered_out.py | 253 ++ .../sdk2/model/first_last_name_geo_in.py | 191 ++ .../model/first_last_name_geo_zipped_in.py | 217 ++ .../namsor/sdk2/model/first_last_name_in.py | 165 + .../model/first_last_name_origined_out.py | 333 ++ .../model/first_last_name_phone_coded_out.py | 477 +++ .../model/first_last_name_phone_number_in.py | 191 ++ .../first_last_name_us_race_ethnicity_out.py | 245 ++ .../com/namsor/sdk2/model/inline_object.py | 139 + .../com/namsor/sdk2/model/invoice_item_out.py | 373 +++ .../com/namsor/sdk2/model/invoice_out.py | 659 ++++ .../namsor/sdk2/model/nam_sor_counter_out.py | 113 + .../sdk2/model/name_match_candidate_out.py | 139 + .../sdk2/model/name_match_candidates_out.py | 191 ++ .../sdk2/model/parsed_full_name_geo_in.py | 269 ++ .../namsor/sdk2/model/parsed_full_name_in.py | 243 ++ .../sdk2/model/personal_name_geo_out.py | 295 ++ .../com/namsor/sdk2/model/personal_name_in.py | 139 + .../namsor/sdk2/model/romanized_name_out.py | 295 ++ .../namsor/sdk2/model/software_version_out.py | 139 + .../sdk2/model/source_detailed_metrics_out.py | 347 ++ .../namsor/sdk2/model/source_metrics_out.py | 321 ++ .../com/namsor/sdk2/model/stripe_card_out.py | 243 ++ .../namsor/sdk2/model/stripe_customer_out.py | 191 ++ .../namsor/sdk2/model/system_metrics_out.py | 217 ++ .../com/namsor/sdk2/model/user_info_out.py | 477 +++ openapi_client/configuration.py | 236 ++ openapi_client/rest.py | 323 ++ requirements.txt | 5 + run-python.bash | 12 + setup.py | 40 + test-requirements.txt | 5 + test/__init__.py | 0 test/test_admin_api.py | 251 ++ test/test_api_billing_period_usage_out.py | 40 + test/test_api_counter_v2_out.py | 40 + test/test_api_key_out.py | 40 + test/test_api_period_usage_out.py | 40 + test/test_api_plan_out.py | 40 + test/test_api_plan_subscription_out.py | 40 + test/test_api_plans_out.py | 40 + test/test_api_service_out.py | 40 + test/test_api_services_out.py | 40 + test/test_api_usage_aggregated_out.py | 40 + ...st_batch_first_last_name_diasporaed_out.py | 40 + test/test_batch_first_last_name_gender_in.py | 40 + ...test_batch_first_last_name_gendered_out.py | 40 + test/test_batch_first_last_name_geo_in.py | 40 + ...est_batch_first_last_name_geo_zipped_in.py | 40 + test/test_batch_first_last_name_in.py | 40 + ...test_batch_first_last_name_origined_out.py | 40 + ...t_batch_first_last_name_phone_coded_out.py | 40 + ...t_batch_first_last_name_phone_number_in.py | 40 + ...h_first_last_name_us_race_ethnicity_out.py | 40 + test/test_batch_name_match_candidates_out.py | 40 + test/test_batch_parsed_full_name_geo_in.py | 40 + test/test_batch_parsed_full_name_in.py | 40 + test/test_batch_personal_name_geo_out.py | 40 + test/test_batch_personal_name_in.py | 40 + test/test_billing_history_out.py | 40 + test/test_billing_info_in_out.py | 40 + test/test_chinese_api.py | 62 + test/test_classifier_metrics_out.py | 40 + test/test_currencies_out.py | 40 + test/test_deploy_ui_out.py | 40 + test/test_expected_class_metrics_out.py | 40 + test/test_first_last_name_diasporaed_out.py | 40 + test/test_first_last_name_gender_in.py | 40 + test/test_first_last_name_gendered_out.py | 40 + test/test_first_last_name_geo_in.py | 40 + test/test_first_last_name_geo_zipped_in.py | 40 + test/test_first_last_name_in.py | 40 + test/test_first_last_name_origined_out.py | 40 + test/test_first_last_name_phone_coded_out.py | 40 + test/test_first_last_name_phone_number_in.py | 40 + ...t_first_last_name_us_race_ethnicity_out.py | 40 + test/test_inline_object.py | 40 + test/test_invoice_item_out.py | 40 + test/test_invoice_out.py | 40 + test/test_nam_sor_counter_out.py | 40 + test/test_name_match_candidate_out.py | 40 + test/test_name_match_candidates_out.py | 40 + test/test_parsed_full_name_geo_in.py | 40 + test/test_parsed_full_name_in.py | 40 + test/test_personal_api.py | 146 + test/test_personal_name_geo_out.py | 40 + test/test_personal_name_in.py | 40 + test/test_romanized_name_out.py | 40 + test/test_social_api.py | 48 + test/test_software_version_out.py | 40 + test/test_source_detailed_metrics_out.py | 40 + test/test_source_metrics_out.py | 40 + test/test_stripe_card_out.py | 40 + test/test_stripe_customer_out.py | 40 + test/test_system_metrics_out.py | 40 + test/test_user_info_out.py | 40 + tox.ini | 10 + 204 files changed, 26937 insertions(+), 2 deletions(-) create mode 100644 .gitattributes.txt create mode 100644 docs/APIBillingPeriodUsageOut.md create mode 100644 docs/APICounterV2Out.md create mode 100644 docs/APIKeyOut.md create mode 100644 docs/APIPeriodUsageOut.md create mode 100644 docs/APIPlanOut.md create mode 100644 docs/APIPlanSubscriptionOut.md create mode 100644 docs/APIPlansOut.md create mode 100644 docs/APIServiceOut.md create mode 100644 docs/APIServicesOut.md create mode 100644 docs/APIUsageAggregatedOut.md create mode 100644 docs/AdminApi.md create mode 100644 docs/BatchFirstLastNameDiasporaedOut.md create mode 100644 docs/BatchFirstLastNameGenderIn.md create mode 100644 docs/BatchFirstLastNameGenderedOut.md create mode 100644 docs/BatchFirstLastNameGeoIn.md create mode 100644 docs/BatchFirstLastNameGeoZippedIn.md create mode 100644 docs/BatchFirstLastNameIn.md create mode 100644 docs/BatchFirstLastNameOriginedOut.md create mode 100644 docs/BatchFirstLastNamePhoneCodedOut.md create mode 100644 docs/BatchFirstLastNamePhoneNumberIn.md create mode 100644 docs/BatchFirstLastNameUSRaceEthnicityOut.md create mode 100644 docs/BatchNameMatchCandidatesOut.md create mode 100644 docs/BatchParsedFullNameGeoIn.md create mode 100644 docs/BatchParsedFullNameIn.md create mode 100644 docs/BatchPersonalNameGeoOut.md create mode 100644 docs/BatchPersonalNameIn.md create mode 100644 docs/BillingHistoryOut.md create mode 100644 docs/BillingInfoInOut.md create mode 100644 docs/ChineseApi.md create mode 100644 docs/ClassifierMetricsOut.md create mode 100644 docs/CurrenciesOut.md create mode 100644 docs/DeployUIOut.md create mode 100644 docs/ExpectedClassMetricsOut.md create mode 100644 docs/FirstLastNameDiasporaedOut.md create mode 100644 docs/FirstLastNameGenderIn.md create mode 100644 docs/FirstLastNameGenderedOut.md create mode 100644 docs/FirstLastNameGeoIn.md create mode 100644 docs/FirstLastNameGeoZippedIn.md create mode 100644 docs/FirstLastNameIn.md create mode 100644 docs/FirstLastNameOriginedOut.md create mode 100644 docs/FirstLastNamePhoneCodedOut.md create mode 100644 docs/FirstLastNamePhoneNumberIn.md create mode 100644 docs/FirstLastNameUSRaceEthnicityOut.md create mode 100644 docs/InlineObject.md create mode 100644 docs/InvoiceItemOut.md create mode 100644 docs/InvoiceOut.md create mode 100644 docs/NamSorCounterOut.md create mode 100644 docs/NameMatchCandidateOut.md create mode 100644 docs/NameMatchCandidatesOut.md create mode 100644 docs/ParsedFullNameGeoIn.md create mode 100644 docs/ParsedFullNameIn.md create mode 100644 docs/PersonalApi.md create mode 100644 docs/PersonalNameGeoOut.md create mode 100644 docs/PersonalNameIn.md create mode 100644 docs/RomanizedNameOut.md create mode 100644 docs/SocialApi.md create mode 100644 docs/SoftwareVersionOut.md create mode 100644 docs/SourceDetailedMetricsOut.md create mode 100644 docs/SourceMetricsOut.md create mode 100644 docs/StripeCardOut.md create mode 100644 docs/StripeCustomerOut.md create mode 100644 docs/SystemMetricsOut.md create mode 100644 docs/UserInfoOut.md create mode 100755 git_push.sh create mode 100644 openapi_client/__init__.py create mode 100644 openapi_client/api_client.py create mode 100644 openapi_client/com.namsor.sdk2.api/__init__.py create mode 100644 openapi_client/com.namsor.sdk2.model/__init__.py create mode 100644 openapi_client/com/namsor/sdk2/api/admin_api.py create mode 100644 openapi_client/com/namsor/sdk2/api/chinese_api.py create mode 100644 openapi_client/com/namsor/sdk2/api/personal_api.py create mode 100644 openapi_client/com/namsor/sdk2/api/social_api.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_billing_period_usage_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_counter_v2_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_key_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_period_usage_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_plan_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_plan_subscription_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_plans_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_service_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_services_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/api_usage_aggregated_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_diasporaed_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_gender_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_gendered_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_zipped_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_origined_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_coded_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_number_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_first_last_name_us_race_ethnicity_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_name_match_candidates_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_geo_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_personal_name_geo_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/batch_personal_name_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/billing_history_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/billing_info_in_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/classifier_metrics_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/currencies_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/deploy_ui_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/expected_class_metrics_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_diasporaed_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_gender_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_gendered_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_geo_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_geo_zipped_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_origined_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_phone_coded_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_phone_number_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/first_last_name_us_race_ethnicity_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/inline_object.py create mode 100644 openapi_client/com/namsor/sdk2/model/invoice_item_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/invoice_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/nam_sor_counter_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/name_match_candidate_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/name_match_candidates_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/parsed_full_name_geo_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/parsed_full_name_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/personal_name_geo_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/personal_name_in.py create mode 100644 openapi_client/com/namsor/sdk2/model/romanized_name_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/software_version_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/source_detailed_metrics_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/source_metrics_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/stripe_card_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/stripe_customer_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/system_metrics_out.py create mode 100644 openapi_client/com/namsor/sdk2/model/user_info_out.py create mode 100644 openapi_client/configuration.py create mode 100644 openapi_client/rest.py create mode 100644 requirements.txt create mode 100755 run-python.bash create mode 100644 setup.py create mode 100644 test-requirements.txt create mode 100644 test/__init__.py create mode 100644 test/test_admin_api.py create mode 100644 test/test_api_billing_period_usage_out.py create mode 100644 test/test_api_counter_v2_out.py create mode 100644 test/test_api_key_out.py create mode 100644 test/test_api_period_usage_out.py create mode 100644 test/test_api_plan_out.py create mode 100644 test/test_api_plan_subscription_out.py create mode 100644 test/test_api_plans_out.py create mode 100644 test/test_api_service_out.py create mode 100644 test/test_api_services_out.py create mode 100644 test/test_api_usage_aggregated_out.py create mode 100644 test/test_batch_first_last_name_diasporaed_out.py create mode 100644 test/test_batch_first_last_name_gender_in.py create mode 100644 test/test_batch_first_last_name_gendered_out.py create mode 100644 test/test_batch_first_last_name_geo_in.py create mode 100644 test/test_batch_first_last_name_geo_zipped_in.py create mode 100644 test/test_batch_first_last_name_in.py create mode 100644 test/test_batch_first_last_name_origined_out.py create mode 100644 test/test_batch_first_last_name_phone_coded_out.py create mode 100644 test/test_batch_first_last_name_phone_number_in.py create mode 100644 test/test_batch_first_last_name_us_race_ethnicity_out.py create mode 100644 test/test_batch_name_match_candidates_out.py create mode 100644 test/test_batch_parsed_full_name_geo_in.py create mode 100644 test/test_batch_parsed_full_name_in.py create mode 100644 test/test_batch_personal_name_geo_out.py create mode 100644 test/test_batch_personal_name_in.py create mode 100644 test/test_billing_history_out.py create mode 100644 test/test_billing_info_in_out.py create mode 100644 test/test_chinese_api.py create mode 100644 test/test_classifier_metrics_out.py create mode 100644 test/test_currencies_out.py create mode 100644 test/test_deploy_ui_out.py create mode 100644 test/test_expected_class_metrics_out.py create mode 100644 test/test_first_last_name_diasporaed_out.py create mode 100644 test/test_first_last_name_gender_in.py create mode 100644 test/test_first_last_name_gendered_out.py create mode 100644 test/test_first_last_name_geo_in.py create mode 100644 test/test_first_last_name_geo_zipped_in.py create mode 100644 test/test_first_last_name_in.py create mode 100644 test/test_first_last_name_origined_out.py create mode 100644 test/test_first_last_name_phone_coded_out.py create mode 100644 test/test_first_last_name_phone_number_in.py create mode 100644 test/test_first_last_name_us_race_ethnicity_out.py create mode 100644 test/test_inline_object.py create mode 100644 test/test_invoice_item_out.py create mode 100644 test/test_invoice_out.py create mode 100644 test/test_nam_sor_counter_out.py create mode 100644 test/test_name_match_candidate_out.py create mode 100644 test/test_name_match_candidates_out.py create mode 100644 test/test_parsed_full_name_geo_in.py create mode 100644 test/test_parsed_full_name_in.py create mode 100644 test/test_personal_api.py create mode 100644 test/test_personal_name_geo_out.py create mode 100644 test/test_personal_name_in.py create mode 100644 test/test_romanized_name_out.py create mode 100644 test/test_social_api.py create mode 100644 test/test_software_version_out.py create mode 100644 test/test_source_detailed_metrics_out.py create mode 100644 test/test_source_metrics_out.py create mode 100644 test/test_stripe_card_out.py create mode 100644 test/test_stripe_customer_out.py create mode 100644 test/test_system_metrics_out.py create mode 100644 test/test_user_info_out.py create mode 100644 tox.ini diff --git a/.gitattributes.txt b/.gitattributes.txt new file mode 100644 index 0000000..809635d --- /dev/null +++ b/.gitattributes.txt @@ -0,0 +1,3 @@ +* linguist-vendored +*.js linguist-vendored=false +*.html linguist-vendored=false \ No newline at end of file diff --git a/README.md b/README.md index 7e68437..62abe2c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,211 @@ -# namsor-python-sdk2 -NamSor API v2 Python SDK - classify personal names accurately by gender, country of origin, or ethnicity. +# openapi-client +NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! + +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 2.0.2-beta +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.PythonClientCodegen +For more information, please visit [http://www.namsor.com/](http://www.namsor.com/) + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on Github, you can install directly from Github + +```sh +pip install git+https://github.com/namsor/namsor-python-sdk2.git +``` +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/namsor/namsor-python-sdk2.git`) + +Then import the package: +```python +import openapi_client +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import openapi_client +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Print current API usage. + api_response = api_instance.api_usage() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->api_usage: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AdminApi* | [**api_usage**](docs/AdminApi.md#api_usage) | **GET** /api2/json/apiUsage | Print current API usage. +*AdminApi* | [**api_usage_history**](docs/AdminApi.md#api_usage_history) | **GET** /api2/json/apiUsageHistory | Print historical API usage. +*AdminApi* | [**api_usage_history_aggregate**](docs/AdminApi.md#api_usage_history_aggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min). +*AdminApi* | [**available_plans**](docs/AdminApi.md#available_plans) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd). +*AdminApi* | [**available_plans1**](docs/AdminApi.md#available_plans1) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency. +*AdminApi* | [**available_services**](docs/AdminApi.md#available_services) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit). +*AdminApi* | [**billing_currencies**](docs/AdminApi.md#billing_currencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...) +*AdminApi* | [**billing_history**](docs/AdminApi.md#billing_history) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually). +*AdminApi* | [**billing_info**](docs/AdminApi.md#billing_info) | **GET** /api2/json/billingInfo/{token} | Read the billing information (company name, address, phone, vat ID) +*AdminApi* | [**charge**](docs/AdminApi.md#charge) | **POST** /api2/json/charge | Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. +*AdminApi* | [**corporate_key**](docs/AdminApi.md#corporate_key) | **GET** /api2/json/corporateKey/{apiKey}/{corporate} | Setting an API Key to a corporate status. +*AdminApi* | [**debug_level**](docs/AdminApi.md#debug_level) | **GET** /api2/json/debugLevel/{logger}/{level} | Update debug level for a classifier +*AdminApi* | [**invalidate_cache**](docs/AdminApi.md#invalidate_cache) | **GET** /api2/json/invalidateCache | Invalidate system caches. +*AdminApi* | [**namsor_counter**](docs/AdminApi.md#namsor_counter) | **GET** /api2/json/namsorCounter | Get the overall API counter +*AdminApi* | [**payment_info**](docs/AdminApi.md#payment_info) | **GET** /api2/json/paymentInfo/{token} | Get the Stripe payment information associated with the current google auth session token. +*AdminApi* | [**procure_key**](docs/AdminApi.md#procure_key) | **GET** /api2/json/procureKey/{token} | Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. +*AdminApi* | [**redeploy_ui**](docs/AdminApi.md#redeploy_ui) | **GET** /api2/json/redeployUI | Redeploy UI from current dev branch. +*AdminApi* | [**remove_user_account**](docs/AdminApi.md#remove_user_account) | **GET** /api2/json/removeUserAccount/{token} | Subscribe to a give API plan, using the user's preferred or default currency. +*AdminApi* | [**shutdown**](docs/AdminApi.md#shutdown) | **GET** /api2/json/shutdown | Stop learning and shutdown system. +*AdminApi* | [**software_version**](docs/AdminApi.md#software_version) | **GET** /api2/json/softwareVersion | Get the current software version +*AdminApi* | [**source_stats**](docs/AdminApi.md#source_stats) | **GET** /api2/json/sourceStats/{source} | Print basic source statistics. +*AdminApi* | [**stats**](docs/AdminApi.md#stats) | **GET** /api2/json/stats | Print basic system statistics. +*AdminApi* | [**stripe_connect**](docs/AdminApi.md#stripe_connect) | **GET** /api2/json/stripeConnect | Connects a Stripe Account. +*AdminApi* | [**subscribe_plan**](docs/AdminApi.md#subscribe_plan) | **GET** /api2/json/subscribePlan/{planName}/{token} | Subscribe to a give API plan, using the user's preferred or default currency. +*AdminApi* | [**update_billing_info**](docs/AdminApi.md#update_billing_info) | **POST** /api2/json/updateBillingInfo/{token} | Sets or update the billing information (company name, address, phone, vat ID) +*AdminApi* | [**update_limit**](docs/AdminApi.md#update_limit) | **GET** /api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token} | Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). +*AdminApi* | [**update_payment_default**](docs/AdminApi.md#update_payment_default) | **GET** /api2/json/updatePaymentDefault/{defautSourceId}/{token} | Update the default Stripe card associated with the current google auth session token. +*AdminApi* | [**user_info**](docs/AdminApi.md#user_info) | **GET** /api2/json/userInfo/{token} | Get the user profile associated with the current google auth session token. +*AdminApi* | [**verify_email**](docs/AdminApi.md#verify_email) | **GET** /api2/json/verifyEmail/{emailToken} | Verifies an email, based on token sent to that email +*AdminApi* | [**verify_remove_email**](docs/AdminApi.md#verify_remove_email) | **GET** /api2/json/verifyRemoveEmail/{emailToken} | Verifies an email, based on token sent to that email +*AdminApi* | [**vet**](docs/AdminApi.md#vet) | **GET** /api2/json/vetting/{source}/{vetted} | Vetting of a source. +*ChineseApi* | [**chinese_name_candidates**](docs/ChineseApi.md#chinese_name_candidates) | **GET** /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} | Identify Chinese name candidates, based on the romanized name. +*ChineseApi* | [**chinese_name_candidates_batch**](docs/ChineseApi.md#chinese_name_candidates_batch) | **POST** /api2/json/chineseNameCandidatesBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). +*ChineseApi* | [**chinese_name_candidates_gender_batch**](docs/ChineseApi.md#chinese_name_candidates_gender_batch) | **POST** /api2/json/chineseNameCandidatesGenderBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). +*ChineseApi* | [**chinese_name_gender_candidates**](docs/ChineseApi.md#chinese_name_gender_candidates) | **GET** /api2/json/chineseNameGenderCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin}/{knownGender} | Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') +*PersonalApi* | [**country**](docs/PersonalApi.md#country) | **GET** /api2/json/country/{personalNameFull} | [USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. +*PersonalApi* | [**country_batch**](docs/PersonalApi.md#country_batch) | **POST** /api2/json/countryBatch | [USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. +*PersonalApi* | [**diaspora**](docs/PersonalApi.md#diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) +*PersonalApi* | [**diaspora_batch**](docs/PersonalApi.md#diaspora_batch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) +*PersonalApi* | [**gender**](docs/PersonalApi.md#gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. +*PersonalApi* | [**gender_batch**](docs/PersonalApi.md#gender_batch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 1000 names, detecting automatically the cultural context. +*PersonalApi* | [**gender_geo**](docs/PersonalApi.md#gender_geo) | **GET** /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} | Infer the likely gender of a name, given a local context (ISO2 country code). +*PersonalApi* | [**gender_geo_batch**](docs/PersonalApi.md#gender_geo_batch) | **POST** /api2/json/genderGeoBatch | Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). +*PersonalApi* | [**origin**](docs/PersonalApi.md#origin) | **GET** /api2/json/origin/{firstName}/{lastName} | [USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. +*PersonalApi* | [**origin_batch**](docs/PersonalApi.md#origin_batch) | **POST** /api2/json/originBatch | [USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. +*PersonalApi* | [**parsed_gender_batch**](docs/PersonalApi.md#parsed_gender_batch) | **POST** /api2/json/parsedGenderBatch | Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. +*PersonalApi* | [**parsed_gender_geo_batch**](docs/PersonalApi.md#parsed_gender_geo_batch) | **POST** /api2/json/parsedGenderGeoBatch | Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. +*PersonalApi* | [**us_race_ethnicity**](docs/PersonalApi.md#us_race_ethnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. +*PersonalApi* | [**us_race_ethnicity_batch**](docs/PersonalApi.md#us_race_ethnicity_batch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. +*PersonalApi* | [**us_race_ethnicity_zip5**](docs/PersonalApi.md#us_race_ethnicity_zip5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. +*PersonalApi* | [**us_zip_race_ethnicity_batch**](docs/PersonalApi.md#us_zip_race_ethnicity_batch) | **POST** /api2/json/usZipRaceEthnicityBatch | [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. +*SocialApi* | [**phone_prefix**](docs/SocialApi.md#phone_prefix) | **GET** /api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber} | [USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. +*SocialApi* | [**phone_prefix_batch**](docs/SocialApi.md#phone_prefix_batch) | **POST** /api2/json/phoneCodeBatch | [USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. + + +## Documentation For Models + + - [APIBillingPeriodUsageOut](docs/APIBillingPeriodUsageOut.md) + - [APICounterV2Out](docs/APICounterV2Out.md) + - [APIKeyOut](docs/APIKeyOut.md) + - [APIPeriodUsageOut](docs/APIPeriodUsageOut.md) + - [APIPlanOut](docs/APIPlanOut.md) + - [APIPlanSubscriptionOut](docs/APIPlanSubscriptionOut.md) + - [APIPlansOut](docs/APIPlansOut.md) + - [APIServiceOut](docs/APIServiceOut.md) + - [APIServicesOut](docs/APIServicesOut.md) + - [APIUsageAggregatedOut](docs/APIUsageAggregatedOut.md) + - [BatchFirstLastNameDiasporaedOut](docs/BatchFirstLastNameDiasporaedOut.md) + - [BatchFirstLastNameGenderIn](docs/BatchFirstLastNameGenderIn.md) + - [BatchFirstLastNameGenderedOut](docs/BatchFirstLastNameGenderedOut.md) + - [BatchFirstLastNameGeoIn](docs/BatchFirstLastNameGeoIn.md) + - [BatchFirstLastNameGeoZippedIn](docs/BatchFirstLastNameGeoZippedIn.md) + - [BatchFirstLastNameIn](docs/BatchFirstLastNameIn.md) + - [BatchFirstLastNameOriginedOut](docs/BatchFirstLastNameOriginedOut.md) + - [BatchFirstLastNamePhoneCodedOut](docs/BatchFirstLastNamePhoneCodedOut.md) + - [BatchFirstLastNamePhoneNumberIn](docs/BatchFirstLastNamePhoneNumberIn.md) + - [BatchFirstLastNameUSRaceEthnicityOut](docs/BatchFirstLastNameUSRaceEthnicityOut.md) + - [BatchNameMatchCandidatesOut](docs/BatchNameMatchCandidatesOut.md) + - [BatchParsedFullNameGeoIn](docs/BatchParsedFullNameGeoIn.md) + - [BatchParsedFullNameIn](docs/BatchParsedFullNameIn.md) + - [BatchPersonalNameGeoOut](docs/BatchPersonalNameGeoOut.md) + - [BatchPersonalNameIn](docs/BatchPersonalNameIn.md) + - [BillingHistoryOut](docs/BillingHistoryOut.md) + - [BillingInfoInOut](docs/BillingInfoInOut.md) + - [ClassifierMetricsOut](docs/ClassifierMetricsOut.md) + - [CurrenciesOut](docs/CurrenciesOut.md) + - [DeployUIOut](docs/DeployUIOut.md) + - [ExpectedClassMetricsOut](docs/ExpectedClassMetricsOut.md) + - [FirstLastNameDiasporaedOut](docs/FirstLastNameDiasporaedOut.md) + - [FirstLastNameGenderIn](docs/FirstLastNameGenderIn.md) + - [FirstLastNameGenderedOut](docs/FirstLastNameGenderedOut.md) + - [FirstLastNameGeoIn](docs/FirstLastNameGeoIn.md) + - [FirstLastNameGeoZippedIn](docs/FirstLastNameGeoZippedIn.md) + - [FirstLastNameIn](docs/FirstLastNameIn.md) + - [FirstLastNameOriginedOut](docs/FirstLastNameOriginedOut.md) + - [FirstLastNamePhoneCodedOut](docs/FirstLastNamePhoneCodedOut.md) + - [FirstLastNamePhoneNumberIn](docs/FirstLastNamePhoneNumberIn.md) + - [FirstLastNameUSRaceEthnicityOut](docs/FirstLastNameUSRaceEthnicityOut.md) + - [InlineObject](docs/InlineObject.md) + - [InvoiceItemOut](docs/InvoiceItemOut.md) + - [InvoiceOut](docs/InvoiceOut.md) + - [NamSorCounterOut](docs/NamSorCounterOut.md) + - [NameMatchCandidateOut](docs/NameMatchCandidateOut.md) + - [NameMatchCandidatesOut](docs/NameMatchCandidatesOut.md) + - [ParsedFullNameGeoIn](docs/ParsedFullNameGeoIn.md) + - [ParsedFullNameIn](docs/ParsedFullNameIn.md) + - [PersonalNameGeoOut](docs/PersonalNameGeoOut.md) + - [PersonalNameIn](docs/PersonalNameIn.md) + - [RomanizedNameOut](docs/RomanizedNameOut.md) + - [SoftwareVersionOut](docs/SoftwareVersionOut.md) + - [SourceDetailedMetricsOut](docs/SourceDetailedMetricsOut.md) + - [SourceMetricsOut](docs/SourceMetricsOut.md) + - [StripeCardOut](docs/StripeCardOut.md) + - [StripeCustomerOut](docs/StripeCustomerOut.md) + - [SystemMetricsOut](docs/SystemMetricsOut.md) + - [UserInfoOut](docs/UserInfoOut.md) + + +## Documentation For Authorization + + +## api_key + +- **Type**: API key +- **API key parameter name**: X-API-KEY +- **Location**: HTTP header + + +## Author + +contact@namsor.com + + diff --git a/docs/APIBillingPeriodUsageOut.md b/docs/APIBillingPeriodUsageOut.md new file mode 100644 index 0000000..6544692 --- /dev/null +++ b/docs/APIBillingPeriodUsageOut.md @@ -0,0 +1,19 @@ +# APIBillingPeriodUsageOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | **str** | | [optional] +**subscription_started** | **int** | | [optional] +**period_started** | **int** | | [optional] +**period_ended** | **int** | | [optional] +**stripe_current_period_end** | **int** | | [optional] +**stripe_current_period_start** | **int** | | [optional] +**billing_status** | **str** | | [optional] +**usage** | **int** | | [optional] +**soft_limit** | **int** | | [optional] +**hard_limit** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APICounterV2Out.md b/docs/APICounterV2Out.md new file mode 100644 index 0000000..8d56f65 --- /dev/null +++ b/docs/APICounterV2Out.md @@ -0,0 +1,16 @@ +# APICounterV2Out + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | [**APIKeyOut**](APIKeyOut.md) | | [optional] +**api_service** | **str** | | [optional] +**created_date_time** | **int** | | [optional] +**total_usage** | **int** | | [optional] +**last_flushed_date_time** | **int** | | [optional] +**last_used_date_time** | **int** | | [optional] +**service_features_usage** | **dict(str, int)** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIKeyOut.md b/docs/APIKeyOut.md new file mode 100644 index 0000000..e39762c --- /dev/null +++ b/docs/APIKeyOut.md @@ -0,0 +1,17 @@ +# APIKeyOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | **str** | | [optional] +**user_id** | **str** | | [optional] +**admin** | **bool** | | [optional] +**vetted** | **bool** | | [optional] +**partner** | **bool** | | [optional] +**striped** | **bool** | | [optional] +**corporate** | **bool** | | [optional] +**disabled** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIPeriodUsageOut.md b/docs/APIPeriodUsageOut.md new file mode 100644 index 0000000..c420826 --- /dev/null +++ b/docs/APIPeriodUsageOut.md @@ -0,0 +1,15 @@ +# APIPeriodUsageOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription** | [**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) | | [optional] +**billing_period** | [**APIBillingPeriodUsageOut**](APIBillingPeriodUsageOut.md) | | [optional] +**overage_excl_tax** | **float** | | [optional] +**overage_incl_tax** | **float** | | [optional] +**overage_currency** | **str** | | [optional] +**overage_quantity** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIPlanOut.md b/docs/APIPlanOut.md new file mode 100644 index 0000000..a602d67 --- /dev/null +++ b/docs/APIPlanOut.md @@ -0,0 +1,13 @@ +# APIPlanOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**plan_name** | **str** | | [optional] +**plan_quota** | **int** | | [optional] +**price** | **float** | | [optional] +**price_overage** | **float** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIPlanSubscriptionOut.md b/docs/APIPlanSubscriptionOut.md new file mode 100644 index 0000000..5acc51e --- /dev/null +++ b/docs/APIPlanSubscriptionOut.md @@ -0,0 +1,28 @@ +# APIPlanSubscriptionOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_key** | **str** | | [optional] +**plan_started** | **int** | | [optional] +**prior_plan_started** | **int** | | [optional] +**plan_ended** | **int** | | [optional] +**tax_rate** | **float** | | [optional] +**plan_name** | **str** | | [optional] +**plan_base_fees_key** | **str** | | [optional] +**plan_status** | **str** | | [optional] +**plan_quota** | **int** | | [optional] +**price_usd** | **float** | | [optional] +**price_overage_usd** | **float** | | [optional] +**price** | **float** | | [optional] +**price_overage** | **float** | | [optional] +**currency** | **str** | | [optional] +**currency_factor** | **float** | | [optional] +**stripe_customer_id** | **str** | | [optional] +**stripe_status** | **str** | | [optional] +**stripe_subscription** | **str** | | [optional] +**user_id** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIPlansOut.md b/docs/APIPlansOut.md new file mode 100644 index 0000000..39fd098 --- /dev/null +++ b/docs/APIPlansOut.md @@ -0,0 +1,13 @@ +# APIPlansOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_ratio_for_dupplicates** | **int** | | [optional] +**currency_iso3** | **str** | | [optional] +**currency_symbol** | **str** | | [optional] +**plans** | [**list[APIPlanOut]**](APIPlanOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIServiceOut.md b/docs/APIServiceOut.md new file mode 100644 index 0000000..0852bed --- /dev/null +++ b/docs/APIServiceOut.md @@ -0,0 +1,12 @@ +# APIServiceOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_name** | **str** | | [optional] +**service_group** | **str** | | [optional] +**cost_in_units** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIServicesOut.md b/docs/APIServicesOut.md new file mode 100644 index 0000000..88ecd30 --- /dev/null +++ b/docs/APIServicesOut.md @@ -0,0 +1,10 @@ +# APIServicesOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_services** | [**list[APIServiceOut]**](APIServiceOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/APIUsageAggregatedOut.md b/docs/APIUsageAggregatedOut.md new file mode 100644 index 0000000..184c3bd --- /dev/null +++ b/docs/APIUsageAggregatedOut.md @@ -0,0 +1,17 @@ +# APIUsageAggregatedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_unit** | **str** | | [optional] +**period_start** | **int** | | [optional] +**period_end** | **int** | | [optional] +**total_usage** | **int** | | [optional] +**history_truncated** | **bool** | | [optional] +**data** | **list[list[int]]** | | [optional] +**col_headers** | **list[str]** | | [optional] +**row_headers** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdminApi.md b/docs/AdminApi.md new file mode 100644 index 0000000..94b0084 --- /dev/null +++ b/docs/AdminApi.md @@ -0,0 +1,1680 @@ +# openapi_client.AdminApi + +All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**api_usage**](AdminApi.md#api_usage) | **GET** /api2/json/apiUsage | Print current API usage. +[**api_usage_history**](AdminApi.md#api_usage_history) | **GET** /api2/json/apiUsageHistory | Print historical API usage. +[**api_usage_history_aggregate**](AdminApi.md#api_usage_history_aggregate) | **GET** /api2/json/apiUsageHistoryAggregate | Print historical API usage (in an aggregated view, by service, by day/hour/min). +[**available_plans**](AdminApi.md#available_plans) | **GET** /api2/json/availablePlans | List all available plans in the default currency (usd). +[**available_plans1**](AdminApi.md#available_plans1) | **GET** /api2/json/availablePlans/{token} | List all available plans in the user's preferred currency. +[**available_services**](AdminApi.md#available_services) | **GET** /api2/json/apiServices | List of API services and usage cost in Units (default is 1=ONE Unit). +[**billing_currencies**](AdminApi.md#billing_currencies) | **GET** /api2/json/billingCurrencies | List possible currency options for billing (USD, EUR, GBP, ...) +[**billing_history**](AdminApi.md#billing_history) | **GET** /api2/json/billingHistory/{token} | Read the history billing information (invoices paid via Stripe or manually). +[**billing_info**](AdminApi.md#billing_info) | **GET** /api2/json/billingInfo/{token} | Read the billing information (company name, address, phone, vat ID) +[**charge**](AdminApi.md#charge) | **POST** /api2/json/charge | Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. +[**corporate_key**](AdminApi.md#corporate_key) | **GET** /api2/json/corporateKey/{apiKey}/{corporate} | Setting an API Key to a corporate status. +[**debug_level**](AdminApi.md#debug_level) | **GET** /api2/json/debugLevel/{logger}/{level} | Update debug level for a classifier +[**invalidate_cache**](AdminApi.md#invalidate_cache) | **GET** /api2/json/invalidateCache | Invalidate system caches. +[**namsor_counter**](AdminApi.md#namsor_counter) | **GET** /api2/json/namsorCounter | Get the overall API counter +[**payment_info**](AdminApi.md#payment_info) | **GET** /api2/json/paymentInfo/{token} | Get the Stripe payment information associated with the current google auth session token. +[**procure_key**](AdminApi.md#procure_key) | **GET** /api2/json/procureKey/{token} | Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. +[**redeploy_ui**](AdminApi.md#redeploy_ui) | **GET** /api2/json/redeployUI | Redeploy UI from current dev branch. +[**remove_user_account**](AdminApi.md#remove_user_account) | **GET** /api2/json/removeUserAccount/{token} | Subscribe to a give API plan, using the user's preferred or default currency. +[**shutdown**](AdminApi.md#shutdown) | **GET** /api2/json/shutdown | Stop learning and shutdown system. +[**software_version**](AdminApi.md#software_version) | **GET** /api2/json/softwareVersion | Get the current software version +[**source_stats**](AdminApi.md#source_stats) | **GET** /api2/json/sourceStats/{source} | Print basic source statistics. +[**stats**](AdminApi.md#stats) | **GET** /api2/json/stats | Print basic system statistics. +[**stripe_connect**](AdminApi.md#stripe_connect) | **GET** /api2/json/stripeConnect | Connects a Stripe Account. +[**subscribe_plan**](AdminApi.md#subscribe_plan) | **GET** /api2/json/subscribePlan/{planName}/{token} | Subscribe to a give API plan, using the user's preferred or default currency. +[**update_billing_info**](AdminApi.md#update_billing_info) | **POST** /api2/json/updateBillingInfo/{token} | Sets or update the billing information (company name, address, phone, vat ID) +[**update_limit**](AdminApi.md#update_limit) | **GET** /api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token} | Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). +[**update_payment_default**](AdminApi.md#update_payment_default) | **GET** /api2/json/updatePaymentDefault/{defautSourceId}/{token} | Update the default Stripe card associated with the current google auth session token. +[**user_info**](AdminApi.md#user_info) | **GET** /api2/json/userInfo/{token} | Get the user profile associated with the current google auth session token. +[**verify_email**](AdminApi.md#verify_email) | **GET** /api2/json/verifyEmail/{emailToken} | Verifies an email, based on token sent to that email +[**verify_remove_email**](AdminApi.md#verify_remove_email) | **GET** /api2/json/verifyRemoveEmail/{emailToken} | Verifies an email, based on token sent to that email +[**vet**](AdminApi.md#vet) | **GET** /api2/json/vetting/{source}/{vetted} | Vetting of a source. + + +# **api_usage** +> APIPeriodUsageOut api_usage() + +Print current API usage. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Print current API usage. + api_response = api_instance.api_usage() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->api_usage: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIPeriodUsageOut**](APIPeriodUsageOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_usage_history** +> APIPeriodUsageOut api_usage_history() + +Print historical API usage. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Print historical API usage. + api_response = api_instance.api_usage_history() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->api_usage_history: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIPeriodUsageOut**](APIPeriodUsageOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_usage_history_aggregate** +> APIPeriodUsageOut api_usage_history_aggregate() + +Print historical API usage (in an aggregated view, by service, by day/hour/min). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Print historical API usage (in an aggregated view, by service, by day/hour/min). + api_response = api_instance.api_usage_history_aggregate() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->api_usage_history_aggregate: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIPeriodUsageOut**](APIPeriodUsageOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **available_plans** +> APIPlansOut available_plans() + +List all available plans in the default currency (usd). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # List all available plans in the default currency (usd). + api_response = api_instance.available_plans() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->available_plans: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIPlansOut**](APIPlansOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **available_plans1** +> APIPlansOut available_plans1(token) + +List all available plans in the user's preferred currency. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # List all available plans in the user's preferred currency. + api_response = api_instance.available_plans1(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->available_plans1: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**APIPlansOut**](APIPlansOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **available_services** +> APIPlansOut available_services() + +List of API services and usage cost in Units (default is 1=ONE Unit). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # List of API services and usage cost in Units (default is 1=ONE Unit). + api_response = api_instance.available_services() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->available_services: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**APIPlansOut**](APIPlansOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **billing_currencies** +> CurrenciesOut billing_currencies() + +List possible currency options for billing (USD, EUR, GBP, ...) + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # List possible currency options for billing (USD, EUR, GBP, ...) + api_response = api_instance.billing_currencies() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->billing_currencies: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CurrenciesOut**](CurrenciesOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **billing_history** +> BillingHistoryOut billing_history(token) + +Read the history billing information (invoices paid via Stripe or manually). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # Read the history billing information (invoices paid via Stripe or manually). + api_response = api_instance.billing_history(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->billing_history: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**BillingHistoryOut**](BillingHistoryOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **billing_info** +> BillingInfoInOut billing_info(token) + +Read the billing information (company name, address, phone, vat ID) + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # Read the billing information (company name, address, phone, vat ID) + api_response = api_instance.billing_info(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->billing_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**BillingInfoInOut**](BillingInfoInOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **charge** +> APIKeyOut charge(inline_object=inline_object) + +Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +inline_object = openapi_client.InlineObject() # InlineObject | (optional) + +try: + # Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. + api_response = api_instance.charge(inline_object=inline_object) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->charge: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **inline_object** | [**InlineObject**](InlineObject.md)| | [optional] + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **corporate_key** +> corporate_key(api_key, corporate) + +Setting an API Key to a corporate status. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +api_key = 'api_key_example' # str | +corporate = True # bool | + +try: + # Setting an API Key to a corporate status. + api_instance.corporate_key(api_key, corporate) +except ApiException as e: + print("Exception when calling AdminApi->corporate_key: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **api_key** | **str**| | + **corporate** | **bool**| | + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **debug_level** +> debug_level(logger, level) + +Update debug level for a classifier + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +logger = 'logger_example' # str | +level = 'level_example' # str | + +try: + # Update debug level for a classifier + api_instance.debug_level(logger, level) +except ApiException as e: + print("Exception when calling AdminApi->debug_level: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **logger** | **str**| | + **level** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **invalidate_cache** +> invalidate_cache() + +Invalidate system caches. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Invalidate system caches. + api_instance.invalidate_cache() +except ApiException as e: + print("Exception when calling AdminApi->invalidate_cache: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **namsor_counter** +> SoftwareVersionOut namsor_counter() + +Get the overall API counter + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Get the overall API counter + api_response = api_instance.namsor_counter() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->namsor_counter: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SoftwareVersionOut**](SoftwareVersionOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **payment_info** +> APIKeyOut payment_info(token) + +Get the Stripe payment information associated with the current google auth session token. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # Get the Stripe payment information associated with the current google auth session token. + api_response = api_instance.payment_info(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->payment_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **procure_key** +> APIKeyOut procure_key(token) + +Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. + api_response = api_instance.procure_key(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->procure_key: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **redeploy_ui** +> redeploy_ui() + +Redeploy UI from current dev branch. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Redeploy UI from current dev branch. + api_instance.redeploy_ui() +except ApiException as e: + print("Exception when calling AdminApi->redeploy_ui: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **remove_user_account** +> APIPlanSubscriptionOut remove_user_account(token) + +Subscribe to a give API plan, using the user's preferred or default currency. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # Subscribe to a give API plan, using the user's preferred or default currency. + api_response = api_instance.remove_user_account(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->remove_user_account: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **shutdown** +> shutdown() + +Stop learning and shutdown system. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Stop learning and shutdown system. + api_instance.shutdown() +except ApiException as e: + print("Exception when calling AdminApi->shutdown: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **software_version** +> SoftwareVersionOut software_version() + +Get the current software version + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Get the current software version + api_response = api_instance.software_version() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->software_version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SoftwareVersionOut**](SoftwareVersionOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **source_stats** +> SystemMetricsOut source_stats(source) + +Print basic source statistics. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +source = 'source_example' # str | + +try: + # Print basic source statistics. + api_response = api_instance.source_stats(source) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->source_stats: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **str**| | + +### Return type + +[**SystemMetricsOut**](SystemMetricsOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stats** +> SystemMetricsOut stats() + +Print basic system statistics. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) + +try: + # Print basic system statistics. + api_response = api_instance.stats() + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->stats: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SystemMetricsOut**](SystemMetricsOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stripe_connect** +> stripe_connect(scope=scope, code=code, error=error, error_description=error_description) + +Connects a Stripe Account. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +scope = 'scope_example' # str | (optional) +code = 'code_example' # str | (optional) +error = 'error_example' # str | (optional) +error_description = 'error_description_example' # str | (optional) + +try: + # Connects a Stripe Account. + api_instance.stripe_connect(scope=scope, code=code, error=error, error_description=error_description) +except ApiException as e: + print("Exception when calling AdminApi->stripe_connect: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **scope** | **str**| | [optional] + **code** | **str**| | [optional] + **error** | **str**| | [optional] + **error_description** | **str**| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **subscribe_plan** +> APIPlanSubscriptionOut subscribe_plan(plan_name, token) + +Subscribe to a give API plan, using the user's preferred or default currency. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +plan_name = 'plan_name_example' # str | +token = 'token_example' # str | + +try: + # Subscribe to a give API plan, using the user's preferred or default currency. + api_response = api_instance.subscribe_plan(plan_name, token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->subscribe_plan: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **plan_name** | **str**| | + **token** | **str**| | + +### Return type + +[**APIPlanSubscriptionOut**](APIPlanSubscriptionOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_billing_info** +> BillingInfoInOut update_billing_info(token, billing_info_in_out=billing_info_in_out) + +Sets or update the billing information (company name, address, phone, vat ID) + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | +billing_info_in_out = openapi_client.BillingInfoInOut() # BillingInfoInOut | (optional) + +try: + # Sets or update the billing information (company name, address, phone, vat ID) + api_response = api_instance.update_billing_info(token, billing_info_in_out=billing_info_in_out) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->update_billing_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + **billing_info_in_out** | [**BillingInfoInOut**](BillingInfoInOut.md)| | [optional] + +### Return type + +[**BillingInfoInOut**](BillingInfoInOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json;charset=UTF-8 + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_limit** +> APIPeriodUsageOut update_limit(usage_limit, hard_or_soft, token) + +Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +usage_limit = 56 # int | +hard_or_soft = True # bool | +token = 'token_example' # str | + +try: + # Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). + api_response = api_instance.update_limit(usage_limit, hard_or_soft, token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->update_limit: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **usage_limit** | **int**| | + **hard_or_soft** | **bool**| | + **token** | **str**| | + +### Return type + +[**APIPeriodUsageOut**](APIPeriodUsageOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_payment_default** +> APIKeyOut update_payment_default(defaut_source_id, token) + +Update the default Stripe card associated with the current google auth session token. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +defaut_source_id = 'defaut_source_id_example' # str | +token = 'token_example' # str | + +try: + # Update the default Stripe card associated with the current google auth session token. + api_response = api_instance.update_payment_default(defaut_source_id, token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->update_payment_default: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **defaut_source_id** | **str**| | + **token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **user_info** +> APIKeyOut user_info(token) + +Get the user profile associated with the current google auth session token. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +token = 'token_example' # str | + +try: + # Get the user profile associated with the current google auth session token. + api_response = api_instance.user_info(token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->user_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **verify_email** +> APIKeyOut verify_email(email_token) + +Verifies an email, based on token sent to that email + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +email_token = 'email_token_example' # str | + +try: + # Verifies an email, based on token sent to that email + api_response = api_instance.verify_email(email_token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->verify_email: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email_token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **verify_remove_email** +> APIKeyOut verify_remove_email(email_token) + +Verifies an email, based on token sent to that email + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +email_token = 'email_token_example' # str | + +try: + # Verifies an email, based on token sent to that email + api_response = api_instance.verify_remove_email(email_token) + pprint(api_response) +except ApiException as e: + print("Exception when calling AdminApi->verify_remove_email: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email_token** | **str**| | + +### Return type + +[**APIKeyOut**](APIKeyOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **vet** +> vet(source, vetted) + +Vetting of a source. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.AdminApi(openapi_client.ApiClient(configuration)) +source = 'source_example' # str | +vetted = True # bool | + +try: + # Vetting of a source. + api_instance.vet(source, vetted) +except ApiException as e: + print("Exception when calling AdminApi->vet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **str**| | + **vetted** | **bool**| | + +### Return type + +void (empty response body) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/BatchFirstLastNameDiasporaedOut.md b/docs/BatchFirstLastNameDiasporaedOut.md new file mode 100644 index 0000000..7f3a6b2 --- /dev/null +++ b/docs/BatchFirstLastNameDiasporaedOut.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameDiasporaedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameDiasporaedOut]**](FirstLastNameDiasporaedOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameGenderIn.md b/docs/BatchFirstLastNameGenderIn.md new file mode 100644 index 0000000..8bcaa8a --- /dev/null +++ b/docs/BatchFirstLastNameGenderIn.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameGenderIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameGenderIn]**](FirstLastNameGenderIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameGenderedOut.md b/docs/BatchFirstLastNameGenderedOut.md new file mode 100644 index 0000000..e44d851 --- /dev/null +++ b/docs/BatchFirstLastNameGenderedOut.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameGenderedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameGenderedOut]**](FirstLastNameGenderedOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameGeoIn.md b/docs/BatchFirstLastNameGeoIn.md new file mode 100644 index 0000000..2401445 --- /dev/null +++ b/docs/BatchFirstLastNameGeoIn.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameGeoIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameGeoIn]**](FirstLastNameGeoIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameGeoZippedIn.md b/docs/BatchFirstLastNameGeoZippedIn.md new file mode 100644 index 0000000..b911fa3 --- /dev/null +++ b/docs/BatchFirstLastNameGeoZippedIn.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameGeoZippedIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameGeoZippedIn]**](FirstLastNameGeoZippedIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameIn.md b/docs/BatchFirstLastNameIn.md new file mode 100644 index 0000000..bf3f3df --- /dev/null +++ b/docs/BatchFirstLastNameIn.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameIn]**](FirstLastNameIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameOriginedOut.md b/docs/BatchFirstLastNameOriginedOut.md new file mode 100644 index 0000000..4db0e2b --- /dev/null +++ b/docs/BatchFirstLastNameOriginedOut.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameOriginedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameOriginedOut]**](FirstLastNameOriginedOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNamePhoneCodedOut.md b/docs/BatchFirstLastNamePhoneCodedOut.md new file mode 100644 index 0000000..e7e5e88 --- /dev/null +++ b/docs/BatchFirstLastNamePhoneCodedOut.md @@ -0,0 +1,10 @@ +# BatchFirstLastNamePhoneCodedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names_with_phone_numbers** | [**list[FirstLastNamePhoneCodedOut]**](FirstLastNamePhoneCodedOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNamePhoneNumberIn.md b/docs/BatchFirstLastNamePhoneNumberIn.md new file mode 100644 index 0000000..d57682b --- /dev/null +++ b/docs/BatchFirstLastNamePhoneNumberIn.md @@ -0,0 +1,10 @@ +# BatchFirstLastNamePhoneNumberIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names_with_phone_numbers** | [**list[FirstLastNamePhoneNumberIn]**](FirstLastNamePhoneNumberIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchFirstLastNameUSRaceEthnicityOut.md b/docs/BatchFirstLastNameUSRaceEthnicityOut.md new file mode 100644 index 0000000..8988b2d --- /dev/null +++ b/docs/BatchFirstLastNameUSRaceEthnicityOut.md @@ -0,0 +1,10 @@ +# BatchFirstLastNameUSRaceEthnicityOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[FirstLastNameUSRaceEthnicityOut]**](FirstLastNameUSRaceEthnicityOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchNameMatchCandidatesOut.md b/docs/BatchNameMatchCandidatesOut.md new file mode 100644 index 0000000..76b3d0e --- /dev/null +++ b/docs/BatchNameMatchCandidatesOut.md @@ -0,0 +1,10 @@ +# BatchNameMatchCandidatesOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**names_and_match_candidates** | [**list[NameMatchCandidatesOut]**](NameMatchCandidatesOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchParsedFullNameGeoIn.md b/docs/BatchParsedFullNameGeoIn.md new file mode 100644 index 0000000..56c9db0 --- /dev/null +++ b/docs/BatchParsedFullNameGeoIn.md @@ -0,0 +1,10 @@ +# BatchParsedFullNameGeoIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[ParsedFullNameGeoIn]**](ParsedFullNameGeoIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchParsedFullNameIn.md b/docs/BatchParsedFullNameIn.md new file mode 100644 index 0000000..9df244d --- /dev/null +++ b/docs/BatchParsedFullNameIn.md @@ -0,0 +1,10 @@ +# BatchParsedFullNameIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[ParsedFullNameIn]**](ParsedFullNameIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchPersonalNameGeoOut.md b/docs/BatchPersonalNameGeoOut.md new file mode 100644 index 0000000..55c1a50 --- /dev/null +++ b/docs/BatchPersonalNameGeoOut.md @@ -0,0 +1,10 @@ +# BatchPersonalNameGeoOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[PersonalNameGeoOut]**](PersonalNameGeoOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BatchPersonalNameIn.md b/docs/BatchPersonalNameIn.md new file mode 100644 index 0000000..458f732 --- /dev/null +++ b/docs/BatchPersonalNameIn.md @@ -0,0 +1,10 @@ +# BatchPersonalNameIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**personal_names** | [**list[PersonalNameIn]**](PersonalNameIn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BillingHistoryOut.md b/docs/BillingHistoryOut.md new file mode 100644 index 0000000..282d5d6 --- /dev/null +++ b/docs/BillingHistoryOut.md @@ -0,0 +1,11 @@ +# BillingHistoryOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stripe_invoices** | [**list[InvoiceOut]**](InvoiceOut.md) | | [optional] +**corporate_invoices** | [**list[InvoiceOut]**](InvoiceOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BillingInfoInOut.md b/docs/BillingInfoInOut.md new file mode 100644 index 0000000..665b672 --- /dev/null +++ b/docs/BillingInfoInOut.md @@ -0,0 +1,20 @@ +# BillingInfoInOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billing_email** | **str** | | [optional] +**preferred_currency** | **str** | | [optional] +**customer_name** | **str** | | [optional] +**customer_phone** | **str** | | [optional] +**address_line1** | **str** | | [optional] +**address_line2** | **str** | | [optional] +**address_city** | **str** | | [optional] +**address_postal_code** | **str** | | [optional] +**address_state** | **str** | | [optional] +**address_country** | **str** | | [optional] +**vat_id** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ChineseApi.md b/docs/ChineseApi.md new file mode 100644 index 0000000..bef2f4b --- /dev/null +++ b/docs/ChineseApi.md @@ -0,0 +1,234 @@ +# openapi_client.ChineseApi + +All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**chinese_name_candidates**](ChineseApi.md#chinese_name_candidates) | **GET** /api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin} | Identify Chinese name candidates, based on the romanized name. +[**chinese_name_candidates_batch**](ChineseApi.md#chinese_name_candidates_batch) | **POST** /api2/json/chineseNameCandidatesBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). +[**chinese_name_candidates_gender_batch**](ChineseApi.md#chinese_name_candidates_gender_batch) | **POST** /api2/json/chineseNameCandidatesGenderBatch | Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). +[**chinese_name_gender_candidates**](ChineseApi.md#chinese_name_gender_candidates) | **GET** /api2/json/chineseNameGenderCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin}/{knownGender} | Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') + + +# **chinese_name_candidates** +> RomanizedNameOut chinese_name_candidates(chinese_surname_latin, chinese_given_name_latin) + +Identify Chinese name candidates, based on the romanized name. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.ChineseApi(openapi_client.ApiClient(configuration)) +chinese_surname_latin = 'chinese_surname_latin_example' # str | +chinese_given_name_latin = 'chinese_given_name_latin_example' # str | + +try: + # Identify Chinese name candidates, based on the romanized name. + api_response = api_instance.chinese_name_candidates(chinese_surname_latin, chinese_given_name_latin) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChineseApi->chinese_name_candidates: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chinese_surname_latin** | **str**| | + **chinese_given_name_latin** | **str**| | + +### Return type + +[**RomanizedNameOut**](RomanizedNameOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **chinese_name_candidates_batch** +> BatchNameMatchCandidatesOut chinese_name_candidates_batch(batch_first_last_name_in=batch_first_last_name_in) + +Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.ChineseApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_in = openapi_client.BatchFirstLastNameIn() # BatchFirstLastNameIn | A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + +try: + # Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). + api_response = api_instance.chinese_name_candidates_batch(batch_first_last_name_in=batch_first_last_name_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChineseApi->chinese_name_candidates_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_in** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname | [optional] + +### Return type + +[**BatchNameMatchCandidatesOut**](BatchNameMatchCandidatesOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **chinese_name_candidates_gender_batch** +> BatchNameMatchCandidatesOut chinese_name_candidates_gender_batch(batch_first_last_name_in=batch_first_last_name_in) + +Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.ChineseApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_in = openapi_client.BatchFirstLastNameIn() # BatchFirstLastNameIn | A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname (optional) + +try: + # Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). + api_response = api_instance.chinese_name_candidates_gender_batch(batch_first_last_name_in=batch_first_last_name_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChineseApi->chinese_name_candidates_gender_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_in** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname | [optional] + +### Return type + +[**BatchNameMatchCandidatesOut**](BatchNameMatchCandidatesOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **chinese_name_gender_candidates** +> RomanizedNameOut chinese_name_gender_candidates(chinese_surname_latin, chinese_given_name_latin, known_gender) + +Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.ChineseApi(openapi_client.ApiClient(configuration)) +chinese_surname_latin = 'chinese_surname_latin_example' # str | +chinese_given_name_latin = 'chinese_given_name_latin_example' # str | +known_gender = 'known_gender_example' # str | + +try: + # Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') + api_response = api_instance.chinese_name_gender_candidates(chinese_surname_latin, chinese_given_name_latin, known_gender) + pprint(api_response) +except ApiException as e: + print("Exception when calling ChineseApi->chinese_name_gender_candidates: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chinese_surname_latin** | **str**| | + **chinese_given_name_latin** | **str**| | + **known_gender** | **str**| | + +### Return type + +[**RomanizedNameOut**](RomanizedNameOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ClassifierMetricsOut.md b/docs/ClassifierMetricsOut.md new file mode 100644 index 0000000..b856352 --- /dev/null +++ b/docs/ClassifierMetricsOut.md @@ -0,0 +1,32 @@ +# ClassifierMetricsOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**learn_queue_size** | **int** | | [optional] +**buffer_size** | **int** | | [optional] +**pre_classify_queue_size** | **int** | | [optional] +**fact_keys_size** | **int** | | [optional] +**facts_learned** | **int** | | [optional] +**classify_durations_current** | **float** | | [optional] +**classify_durations_summary** | **float** | | [optional] +**learn_durations_current** | **float** | | [optional] +**learn_durations_summary** | **float** | | [optional] +**classifier_name** | **str** | | [optional] +**features_size** | **int** | | [optional] +**ai_vetted_estimate_total** | **int** | | [optional] +**ai_vetted_estimate_precision** | **float** | | [optional] +**ai_vetted_estimate_recall** | **float** | | [optional] +**ai_vetted_learn_total** | **int** | | [optional] +**ai_non_vetted_estimate_total** | **int** | | [optional] +**ai_non_vetted_estimate_precision** | **float** | | [optional] +**ai_non_vetted_estimate_recall** | **float** | | [optional] +**ai_non_vetted_learn_total** | **int** | | [optional] +**metric_time_stamp** | **int** | | [optional] +**ai_start_time** | **int** | | [optional] +**ai_vetted_expected_class_metrics** | [**list[ExpectedClassMetricsOut]**](ExpectedClassMetricsOut.md) | | [optional] +**ai_non_vetted_expected_class_metrics** | [**list[ExpectedClassMetricsOut]**](ExpectedClassMetricsOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CurrenciesOut.md b/docs/CurrenciesOut.md new file mode 100644 index 0000000..b1fea59 --- /dev/null +++ b/docs/CurrenciesOut.md @@ -0,0 +1,10 @@ +# CurrenciesOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currencies_iso3** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeployUIOut.md b/docs/DeployUIOut.md new file mode 100644 index 0000000..84c81ba --- /dev/null +++ b/docs/DeployUIOut.md @@ -0,0 +1,11 @@ +# DeployUIOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_message** | **str** | | [optional] +**succeeded** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExpectedClassMetricsOut.md b/docs/ExpectedClassMetricsOut.md new file mode 100644 index 0000000..3d64380 --- /dev/null +++ b/docs/ExpectedClassMetricsOut.md @@ -0,0 +1,15 @@ +# ExpectedClassMetricsOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**classifier_name** | **str** | | [optional] +**expected_class** | **str** | | [optional] +**ai_estimate_total** | **int** | | [optional] +**ai_estimate_precision** | **float** | | [optional] +**ai_estimate_recall** | **float** | | [optional] +**ai_learn_total** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameDiasporaedOut.md b/docs/FirstLastNameDiasporaedOut.md new file mode 100644 index 0000000..d3ed49f --- /dev/null +++ b/docs/FirstLastNameDiasporaedOut.md @@ -0,0 +1,16 @@ +# FirstLastNameDiasporaedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**score** | **float** | Compatibility to NamSor_v1 Origin score value | [optional] +**ethnicity_alt** | **str** | | [optional] +**ethnicity** | **str** | | [optional] +**country_iso2** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameGenderIn.md b/docs/FirstLastNameGenderIn.md new file mode 100644 index 0000000..b610508 --- /dev/null +++ b/docs/FirstLastNameGenderIn.md @@ -0,0 +1,13 @@ +# FirstLastNameGenderIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**gender** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameGenderedOut.md b/docs/FirstLastNameGenderedOut.md new file mode 100644 index 0000000..02c0167 --- /dev/null +++ b/docs/FirstLastNameGenderedOut.md @@ -0,0 +1,15 @@ +# FirstLastNameGenderedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**likely_gender** | **str** | Most likely gender | [optional] +**gender_scale** | **float** | Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value | [optional] +**score** | **float** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameGeoIn.md b/docs/FirstLastNameGeoIn.md new file mode 100644 index 0000000..88d131f --- /dev/null +++ b/docs/FirstLastNameGeoIn.md @@ -0,0 +1,13 @@ +# FirstLastNameGeoIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**country_iso2** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameGeoZippedIn.md b/docs/FirstLastNameGeoZippedIn.md new file mode 100644 index 0000000..658bd89 --- /dev/null +++ b/docs/FirstLastNameGeoZippedIn.md @@ -0,0 +1,14 @@ +# FirstLastNameGeoZippedIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**country_iso2** | **str** | | [optional] +**zip_code** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameIn.md b/docs/FirstLastNameIn.md new file mode 100644 index 0000000..fd684fd --- /dev/null +++ b/docs/FirstLastNameIn.md @@ -0,0 +1,12 @@ +# FirstLastNameIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameOriginedOut.md b/docs/FirstLastNameOriginedOut.md new file mode 100644 index 0000000..4383143 --- /dev/null +++ b/docs/FirstLastNameOriginedOut.md @@ -0,0 +1,18 @@ +# FirstLastNameOriginedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**country_origin** | **str** | Most likely country of Origin | [optional] +**country_origin_alt** | **str** | Second best alternative : country of Origin | [optional] +**score** | **float** | Compatibility to NamSor_v1 Origin score value | [optional] +**region_origin** | **str** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] +**top_region_origin** | **str** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] +**sub_region_origin** | **str** | Most likely region of Origin (based on countryOrigin ISO2 code) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNamePhoneCodedOut.md b/docs/FirstLastNamePhoneCodedOut.md new file mode 100644 index 0000000..3b5c682 --- /dev/null +++ b/docs/FirstLastNamePhoneCodedOut.md @@ -0,0 +1,24 @@ +# FirstLastNamePhoneCodedOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**international_phone_number_verified** | **str** | | [optional] +**phone_country_iso2_verified** | **str** | | [optional] +**phone_country_code** | **int** | | [optional] +**phone_country_code_alt** | **int** | | [optional] +**phone_country_iso2** | **str** | | [optional] +**phone_country_iso2_alt** | **str** | | [optional] +**origin_country_iso2** | **str** | | [optional] +**origin_country_iso2_alt** | **str** | | [optional] +**phone_number** | **str** | | [optional] +**verified** | **bool** | | [optional] +**score** | **float** | | [optional] +**country_iso2** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNamePhoneNumberIn.md b/docs/FirstLastNamePhoneNumberIn.md new file mode 100644 index 0000000..498803c --- /dev/null +++ b/docs/FirstLastNamePhoneNumberIn.md @@ -0,0 +1,13 @@ +# FirstLastNamePhoneNumberIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**phone_number** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FirstLastNameUSRaceEthnicityOut.md b/docs/FirstLastNameUSRaceEthnicityOut.md new file mode 100644 index 0000000..f2e4c7e --- /dev/null +++ b/docs/FirstLastNameUSRaceEthnicityOut.md @@ -0,0 +1,15 @@ +# FirstLastNameUSRaceEthnicityOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**race_ethnicity_alt** | **str** | | [optional] +**race_ethnicity** | **str** | | [optional] +**score** | **float** | Compatibility to NamSor_v1 Origin score value | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineObject.md b/docs/InlineObject.md new file mode 100644 index 0000000..0a8cc7d --- /dev/null +++ b/docs/InlineObject.md @@ -0,0 +1,11 @@ +# InlineObject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stripe_token** | **str** | | [optional] +**stripe_email** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InvoiceItemOut.md b/docs/InvoiceItemOut.md new file mode 100644 index 0000000..22f04db --- /dev/null +++ b/docs/InvoiceItemOut.md @@ -0,0 +1,20 @@ +# InvoiceItemOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**item_id** | **str** | | [optional] +**amount** | **int** | | [optional] +**currency** | **str** | | [optional] +**description** | **str** | | [optional] +**quantity** | **int** | | [optional] +**subscription** | **str** | | [optional] +**subscription_item** | **str** | | [optional] +**invoice_item_type** | **str** | | [optional] +**plan_nickname** | **str** | | [optional] +**plan_desc** | **str** | | [optional] +**plan_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InvoiceOut.md b/docs/InvoiceOut.md new file mode 100644 index 0000000..bc931ea --- /dev/null +++ b/docs/InvoiceOut.md @@ -0,0 +1,31 @@ +# InvoiceOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[InvoiceItemOut]**](InvoiceItemOut.md) | | [optional] +**user_id** | **str** | | [optional] +**invoice_id** | **str** | | [optional] +**is_striped** | **bool** | | [optional] +**stripe_customer_id** | **str** | | [optional] +**amount_due** | **int** | | [optional] +**amount_paid** | **int** | | [optional] +**amount_remaining** | **int** | | [optional] +**attempted** | **bool** | | [optional] +**currency** | **str** | | [optional] +**invoice_date** | **datetime** | | [optional] +**due_date** | **datetime** | | [optional] +**description** | **str** | | [optional] +**invoice_pdf** | **str** | | [optional] +**period_start** | **datetime** | | [optional] +**period_end** | **datetime** | | [optional] +**receipt_number** | **str** | | [optional] +**invoice_status** | **str** | | [optional] +**sub_total** | **int** | | [optional] +**tax** | **int** | | [optional] +**tax_percent** | **int** | | [optional] +**total** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NamSorCounterOut.md b/docs/NamSorCounterOut.md new file mode 100644 index 0000000..2dffcb8 --- /dev/null +++ b/docs/NamSorCounterOut.md @@ -0,0 +1,10 @@ +# NamSorCounterOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**counter** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NameMatchCandidateOut.md b/docs/NameMatchCandidateOut.md new file mode 100644 index 0000000..f38a30a --- /dev/null +++ b/docs/NameMatchCandidateOut.md @@ -0,0 +1,11 @@ +# NameMatchCandidateOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**candidate_name** | **str** | | [optional] +**probability** | **float** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NameMatchCandidatesOut.md b/docs/NameMatchCandidatesOut.md new file mode 100644 index 0000000..4b570da --- /dev/null +++ b/docs/NameMatchCandidatesOut.md @@ -0,0 +1,13 @@ +# NameMatchCandidatesOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**match_candidates** | [**list[NameMatchCandidateOut]**](NameMatchCandidateOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ParsedFullNameGeoIn.md b/docs/ParsedFullNameGeoIn.md new file mode 100644 index 0000000..8c8881a --- /dev/null +++ b/docs/ParsedFullNameGeoIn.md @@ -0,0 +1,16 @@ +# ParsedFullNameGeoIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**prefix_or_title** | **str** | | [optional] +**suffix** | **str** | | [optional] +**middle_name** | **str** | | [optional] +**country_iso2** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ParsedFullNameIn.md b/docs/ParsedFullNameIn.md new file mode 100644 index 0000000..218c5df --- /dev/null +++ b/docs/ParsedFullNameIn.md @@ -0,0 +1,15 @@ +# ParsedFullNameIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**prefix_or_title** | **str** | | [optional] +**suffix** | **str** | | [optional] +**middle_name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PersonalApi.md b/docs/PersonalApi.md new file mode 100644 index 0000000..1167aeb --- /dev/null +++ b/docs/PersonalApi.md @@ -0,0 +1,906 @@ +# openapi_client.PersonalApi + +All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**country**](PersonalApi.md#country) | **GET** /api2/json/country/{personalNameFull} | [USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. +[**country_batch**](PersonalApi.md#country_batch) | **POST** /api2/json/countryBatch | [USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. +[**diaspora**](PersonalApi.md#diaspora) | **GET** /api2/json/diaspora/{countryIso2}/{firstName}/{lastName} | [USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) +[**diaspora_batch**](PersonalApi.md#diaspora_batch) | **POST** /api2/json/diasporaBatch | [USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) +[**gender**](PersonalApi.md#gender) | **GET** /api2/json/gender/{firstName}/{lastName} | Infer the likely gender of a name. +[**gender_batch**](PersonalApi.md#gender_batch) | **POST** /api2/json/genderBatch | Infer the likely gender of up to 1000 names, detecting automatically the cultural context. +[**gender_geo**](PersonalApi.md#gender_geo) | **GET** /api2/json/genderGeo/{firstName}/{lastName}/{countryIso2} | Infer the likely gender of a name, given a local context (ISO2 country code). +[**gender_geo_batch**](PersonalApi.md#gender_geo_batch) | **POST** /api2/json/genderGeoBatch | Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). +[**origin**](PersonalApi.md#origin) | **GET** /api2/json/origin/{firstName}/{lastName} | [USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. +[**origin_batch**](PersonalApi.md#origin_batch) | **POST** /api2/json/originBatch | [USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. +[**parsed_gender_batch**](PersonalApi.md#parsed_gender_batch) | **POST** /api2/json/parsedGenderBatch | Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. +[**parsed_gender_geo_batch**](PersonalApi.md#parsed_gender_geo_batch) | **POST** /api2/json/parsedGenderGeoBatch | Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. +[**us_race_ethnicity**](PersonalApi.md#us_race_ethnicity) | **GET** /api2/json/usRaceEthnicity/{firstName}/{lastName} | [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. +[**us_race_ethnicity_batch**](PersonalApi.md#us_race_ethnicity_batch) | **POST** /api2/json/usRaceEthnicityBatch | [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. +[**us_race_ethnicity_zip5**](PersonalApi.md#us_race_ethnicity_zip5) | **GET** /api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code} | [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. +[**us_zip_race_ethnicity_batch**](PersonalApi.md#us_zip_race_ethnicity_batch) | **POST** /api2/json/usZipRaceEthnicityBatch | [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. + + +# **country** +> PersonalNameGeoOut country(personal_name_full) + +[USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +personal_name_full = 'personal_name_full_example' # str | + +try: + # [USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. + api_response = api_instance.country(personal_name_full) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->country: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **personal_name_full** | **str**| | + +### Return type + +[**PersonalNameGeoOut**](PersonalNameGeoOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **country_batch** +> BatchPersonalNameGeoOut country_batch(batch_personal_name_in=batch_personal_name_in) + +[USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_personal_name_in = openapi_client.BatchPersonalNameIn() # BatchPersonalNameIn | A list of personal names (optional) + +try: + # [USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. + api_response = api_instance.country_batch(batch_personal_name_in=batch_personal_name_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->country_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_personal_name_in** | [**BatchPersonalNameIn**](BatchPersonalNameIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchPersonalNameGeoOut**](BatchPersonalNameGeoOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **diaspora** +> FirstLastNameDiasporaedOut diaspora(country_iso2, first_name, last_name) + +[USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +country_iso2 = 'country_iso2_example' # str | +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | + +try: + # [USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) + api_response = api_instance.diaspora(country_iso2, first_name, last_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->diaspora: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **country_iso2** | **str**| | + **first_name** | **str**| | + **last_name** | **str**| | + +### Return type + +[**FirstLastNameDiasporaedOut**](FirstLastNameDiasporaedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **diaspora_batch** +> BatchFirstLastNameDiasporaedOut diaspora_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + +[USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_geo_in = openapi_client.BatchFirstLastNameGeoIn() # BatchFirstLastNameGeoIn | A list of personal names (optional) + +try: + # [USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) + api_response = api_instance.diaspora_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->diaspora_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_geo_in** | [**BatchFirstLastNameGeoIn**](BatchFirstLastNameGeoIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameDiasporaedOut**](BatchFirstLastNameDiasporaedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **gender** +> FirstLastNameGenderedOut gender(first_name, last_name) + +Infer the likely gender of a name. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | + +try: + # Infer the likely gender of a name. + api_response = api_instance.gender(first_name, last_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->gender: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + **last_name** | **str**| | + +### Return type + +[**FirstLastNameGenderedOut**](FirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **gender_batch** +> BatchFirstLastNameGenderedOut gender_batch(batch_first_last_name_in=batch_first_last_name_in) + +Infer the likely gender of up to 1000 names, detecting automatically the cultural context. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_in = openapi_client.BatchFirstLastNameIn() # BatchFirstLastNameIn | A list of personal names (optional) + +try: + # Infer the likely gender of up to 1000 names, detecting automatically the cultural context. + api_response = api_instance.gender_batch(batch_first_last_name_in=batch_first_last_name_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->gender_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_in** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameGenderedOut**](BatchFirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **gender_geo** +> FirstLastNameGenderedOut gender_geo(first_name, last_name, country_iso2) + +Infer the likely gender of a name, given a local context (ISO2 country code). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | +country_iso2 = 'country_iso2_example' # str | + +try: + # Infer the likely gender of a name, given a local context (ISO2 country code). + api_response = api_instance.gender_geo(first_name, last_name, country_iso2) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->gender_geo: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + **last_name** | **str**| | + **country_iso2** | **str**| | + +### Return type + +[**FirstLastNameGenderedOut**](FirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **gender_geo_batch** +> BatchFirstLastNameGenderedOut gender_geo_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + +Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_geo_in = openapi_client.BatchFirstLastNameGeoIn() # BatchFirstLastNameGeoIn | A list of names, with country code. (optional) + +try: + # Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). + api_response = api_instance.gender_geo_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->gender_geo_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_geo_in** | [**BatchFirstLastNameGeoIn**](BatchFirstLastNameGeoIn.md)| A list of names, with country code. | [optional] + +### Return type + +[**BatchFirstLastNameGenderedOut**](BatchFirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **origin** +> FirstLastNameOriginedOut origin(first_name, last_name) + +[USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | + +try: + # [USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. + api_response = api_instance.origin(first_name, last_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->origin: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + **last_name** | **str**| | + +### Return type + +[**FirstLastNameOriginedOut**](FirstLastNameOriginedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **origin_batch** +> BatchFirstLastNameOriginedOut origin_batch(batch_first_last_name_in=batch_first_last_name_in) + +[USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_in = openapi_client.BatchFirstLastNameIn() # BatchFirstLastNameIn | A list of personal names (optional) + +try: + # [USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. + api_response = api_instance.origin_batch(batch_first_last_name_in=batch_first_last_name_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->origin_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_in** | [**BatchFirstLastNameIn**](BatchFirstLastNameIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameOriginedOut**](BatchFirstLastNameOriginedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **parsed_gender_batch** +> BatchFirstLastNameGenderedOut parsed_gender_batch(batch_parsed_full_name_in=batch_parsed_full_name_in) + +Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_parsed_full_name_in = openapi_client.BatchParsedFullNameIn() # BatchParsedFullNameIn | A list of personal names (optional) + +try: + # Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. + api_response = api_instance.parsed_gender_batch(batch_parsed_full_name_in=batch_parsed_full_name_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->parsed_gender_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_parsed_full_name_in** | [**BatchParsedFullNameIn**](BatchParsedFullNameIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameGenderedOut**](BatchFirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **parsed_gender_geo_batch** +> BatchFirstLastNameGenderedOut parsed_gender_geo_batch(batch_parsed_full_name_geo_in=batch_parsed_full_name_geo_in) + +Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_parsed_full_name_geo_in = openapi_client.BatchParsedFullNameGeoIn() # BatchParsedFullNameGeoIn | A list of personal names (optional) + +try: + # Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. + api_response = api_instance.parsed_gender_geo_batch(batch_parsed_full_name_geo_in=batch_parsed_full_name_geo_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->parsed_gender_geo_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_parsed_full_name_geo_in** | [**BatchParsedFullNameGeoIn**](BatchParsedFullNameGeoIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameGenderedOut**](BatchFirstLastNameGenderedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **us_race_ethnicity** +> FirstLastNameUSRaceEthnicityOut us_race_ethnicity(first_name, last_name) + +[USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | + +try: + # [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. + api_response = api_instance.us_race_ethnicity(first_name, last_name) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->us_race_ethnicity: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + **last_name** | **str**| | + +### Return type + +[**FirstLastNameUSRaceEthnicityOut**](FirstLastNameUSRaceEthnicityOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **us_race_ethnicity_batch** +> BatchFirstLastNameUSRaceEthnicityOut us_race_ethnicity_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + +[USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_geo_in = openapi_client.BatchFirstLastNameGeoIn() # BatchFirstLastNameGeoIn | A list of personal names (optional) + +try: + # [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. + api_response = api_instance.us_race_ethnicity_batch(batch_first_last_name_geo_in=batch_first_last_name_geo_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->us_race_ethnicity_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_geo_in** | [**BatchFirstLastNameGeoIn**](BatchFirstLastNameGeoIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameUSRaceEthnicityOut**](BatchFirstLastNameUSRaceEthnicityOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **us_race_ethnicity_zip5** +> FirstLastNameUSRaceEthnicityOut us_race_ethnicity_zip5(first_name, last_name, zip5_code) + +[USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | +zip5_code = 'zip5_code_example' # str | + +try: + # [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. + api_response = api_instance.us_race_ethnicity_zip5(first_name, last_name, zip5_code) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->us_race_ethnicity_zip5: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + **last_name** | **str**| | + **zip5_code** | **str**| | + +### Return type + +[**FirstLastNameUSRaceEthnicityOut**](FirstLastNameUSRaceEthnicityOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **us_zip_race_ethnicity_batch** +> BatchFirstLastNameUSRaceEthnicityOut us_zip_race_ethnicity_batch(batch_first_last_name_geo_zipped_in=batch_first_last_name_geo_zipped_in) + +[USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.PersonalApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_geo_zipped_in = openapi_client.BatchFirstLastNameGeoZippedIn() # BatchFirstLastNameGeoZippedIn | A list of personal names (optional) + +try: + # [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. + api_response = api_instance.us_zip_race_ethnicity_batch(batch_first_last_name_geo_zipped_in=batch_first_last_name_geo_zipped_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling PersonalApi->us_zip_race_ethnicity_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_geo_zipped_in** | [**BatchFirstLastNameGeoZippedIn**](BatchFirstLastNameGeoZippedIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNameUSRaceEthnicityOut**](BatchFirstLastNameUSRaceEthnicityOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/PersonalNameGeoOut.md b/docs/PersonalNameGeoOut.md new file mode 100644 index 0000000..3305331 --- /dev/null +++ b/docs/PersonalNameGeoOut.md @@ -0,0 +1,17 @@ +# PersonalNameGeoOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] +**score** | **float** | | [optional] +**country** | **str** | | [optional] +**country_alt** | **str** | | [optional] +**region** | **str** | | [optional] +**top_region** | **str** | | [optional] +**sub_region** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PersonalNameIn.md b/docs/PersonalNameIn.md new file mode 100644 index 0000000..ad92b22 --- /dev/null +++ b/docs/PersonalNameIn.md @@ -0,0 +1,11 @@ +# PersonalNameIn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**name** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RomanizedNameOut.md b/docs/RomanizedNameOut.md new file mode 100644 index 0000000..0f28597 --- /dev/null +++ b/docs/RomanizedNameOut.md @@ -0,0 +1,17 @@ +# RomanizedNameOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**latin_name** | **str** | | [optional] +**original_name** | **str** | | [optional] +**source_language** | **str** | | [optional] +**target_language** | **str** | | [optional] +**source_script** | **str** | | [optional] +**target_script** | **str** | | [optional] +**score** | **float** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SocialApi.md b/docs/SocialApi.md new file mode 100644 index 0000000..f034b01 --- /dev/null +++ b/docs/SocialApi.md @@ -0,0 +1,122 @@ +# openapi_client.SocialApi + +All URIs are relative to *https://v2.namsor.com/NamSorAPIv2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**phone_prefix**](SocialApi.md#phone_prefix) | **GET** /api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber} | [USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. +[**phone_prefix_batch**](SocialApi.md#phone_prefix_batch) | **POST** /api2/json/phoneCodeBatch | [USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. + + +# **phone_prefix** +> FirstLastNamePhoneCodedOut phone_prefix(first_name, last_name, phone_number) + +[USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.SocialApi(openapi_client.ApiClient(configuration)) +first_name = 'first_name_example' # str | +last_name = 'last_name_example' # str | +phone_number = 'phone_number_example' # str | + +try: + # [USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. + api_response = api_instance.phone_prefix(first_name, last_name, phone_number) + pprint(api_response) +except ApiException as e: + print("Exception when calling SocialApi->phone_prefix: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first_name** | **str**| | + **last_name** | **str**| | + **phone_number** | **str**| | + +### Return type + +[**FirstLastNamePhoneCodedOut**](FirstLastNamePhoneCodedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **phone_prefix_batch** +> BatchFirstLastNamePhoneCodedOut phone_prefix_batch(batch_first_last_name_phone_number_in=batch_first_last_name_phone_number_in) + +[USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. + +### Example + +* Api Key Authentication (api_key): +```python +from __future__ import print_function +import time +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api_key +configuration = openapi_client.Configuration() +configuration.api_key['X-API-KEY'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-API-KEY'] = 'Bearer' + +# create an instance of the API class +api_instance = openapi_client.SocialApi(openapi_client.ApiClient(configuration)) +batch_first_last_name_phone_number_in = openapi_client.BatchFirstLastNamePhoneNumberIn() # BatchFirstLastNamePhoneNumberIn | A list of personal names (optional) + +try: + # [USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. + api_response = api_instance.phone_prefix_batch(batch_first_last_name_phone_number_in=batch_first_last_name_phone_number_in) + pprint(api_response) +except ApiException as e: + print("Exception when calling SocialApi->phone_prefix_batch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_first_last_name_phone_number_in** | [**BatchFirstLastNamePhoneNumberIn**](BatchFirstLastNamePhoneNumberIn.md)| A list of personal names | [optional] + +### Return type + +[**BatchFirstLastNamePhoneCodedOut**](BatchFirstLastNamePhoneCodedOut.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/SoftwareVersionOut.md b/docs/SoftwareVersionOut.md new file mode 100644 index 0000000..81dd9fb --- /dev/null +++ b/docs/SoftwareVersionOut.md @@ -0,0 +1,11 @@ +# SoftwareVersionOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**software_name_and_version** | **str** | | [optional] +**software_version** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SourceDetailedMetricsOut.md b/docs/SourceDetailedMetricsOut.md new file mode 100644 index 0000000..68fe1b2 --- /dev/null +++ b/docs/SourceDetailedMetricsOut.md @@ -0,0 +1,19 @@ +# SourceDetailedMetricsOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**classifier_name** | **str** | | [optional] +**source** | [**APIKeyOut**](APIKeyOut.md) | | [optional] +**ai_estimate_total** | **int** | | [optional] +**ai_estimate_precision** | **float** | | [optional] +**ai_estimate_recall** | **float** | | [optional] +**metric_time_stamp** | **int** | | [optional] +**ai_start_time** | **int** | | [optional] +**ai_learn_total** | **int** | | [optional] +**snapshot_date** | **int** | | [optional] +**expected_class_metrics** | [**list[ExpectedClassMetricsOut]**](ExpectedClassMetricsOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SourceMetricsOut.md b/docs/SourceMetricsOut.md new file mode 100644 index 0000000..ffd0451 --- /dev/null +++ b/docs/SourceMetricsOut.md @@ -0,0 +1,18 @@ +# SourceMetricsOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**classifier_name** | **str** | | [optional] +**source** | [**APIKeyOut**](APIKeyOut.md) | | [optional] +**ai_estimate_total** | **int** | | [optional] +**ai_estimate_precision** | **float** | | [optional] +**ai_estimate_recall** | **float** | | [optional] +**metric_time_stamp** | **int** | | [optional] +**ai_start_time** | **int** | | [optional] +**ai_learn_total** | **int** | | [optional] +**snapshot_date** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StripeCardOut.md b/docs/StripeCardOut.md new file mode 100644 index 0000000..b3b223e --- /dev/null +++ b/docs/StripeCardOut.md @@ -0,0 +1,15 @@ +# StripeCardOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_card** | **bool** | | [optional] +**source_id** | **str** | | [optional] +**exp_month** | **int** | | [optional] +**exp_year** | **int** | | [optional] +**last4** | **str** | | [optional] +**brand** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StripeCustomerOut.md b/docs/StripeCustomerOut.md new file mode 100644 index 0000000..748c69c --- /dev/null +++ b/docs/StripeCustomerOut.md @@ -0,0 +1,13 @@ +# StripeCustomerOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stripe_customer_id** | **str** | | [optional] +**source_country** | **str** | | [optional] +**source_currency** | **str** | | [optional] +**striped_cards** | [**list[StripeCardOut]**](StripeCardOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SystemMetricsOut.md b/docs/SystemMetricsOut.md new file mode 100644 index 0000000..06ce1ca --- /dev/null +++ b/docs/SystemMetricsOut.md @@ -0,0 +1,14 @@ +# SystemMetricsOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**classifier_metrics** | [**list[ClassifierMetricsOut]**](ClassifierMetricsOut.md) | | [optional] +**source_metrics** | [**list[SourceMetricsOut]**](SourceMetricsOut.md) | | [optional] +**total_mem** | **int** | | [optional] +**free_mem** | **int** | | [optional] +**max_mem** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserInfoOut.md b/docs/UserInfoOut.md new file mode 100644 index 0000000..47bd03d --- /dev/null +++ b/docs/UserInfoOut.md @@ -0,0 +1,24 @@ +# UserInfoOut + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uid** | **str** | | [optional] +**email** | **str** | | [optional] +**phone_number** | **str** | | [optional] +**email_verified** | **bool** | | [optional] +**display_name** | **str** | | [optional] +**photo_url** | **str** | | [optional] +**disabled** | **bool** | | [optional] +**first_known_ip_address** | **str** | | [optional] +**provider_id** | **str** | | [optional] +**time_stamp** | **int** | | [optional] +**verify_token** | **str** | | [optional] +**api_key** | **str** | | [optional] +**stripe_perishable_key** | **str** | | [optional] +**stripe_customer_id** | **str** | | [optional] +**other_infos** | [**list[UserInfoOut]**](UserInfoOut.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh new file mode 100755 index 0000000..2019084 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="namsor" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="namsor-python-sdk2" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py new file mode 100644 index 0000000..5dc1c25 --- /dev/null +++ b/openapi_client/__init__.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +# flake8: noqa + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +__version__ = "1.0.0" + +# import apis into sdk package +from com.namsor.sdk2.api.admin_api import AdminApi +from com.namsor.sdk2.api.chinese_api import ChineseApi +from com.namsor.sdk2.api.personal_api import PersonalApi +from com.namsor.sdk2.api.social_api import SocialApi + +# import ApiClient +from openapi_client.api_client import ApiClient +from openapi_client.configuration import Configuration +# import models into sdk package +from openapi_client.com.namsor.sdk2.model.api_billing_period_usage_out import APIBillingPeriodUsageOut +from openapi_client.com.namsor.sdk2.model.api_counter_v2_out import APICounterV2Out +from openapi_client.com.namsor.sdk2.model.api_key_out import APIKeyOut +from openapi_client.com.namsor.sdk2.model.api_period_usage_out import APIPeriodUsageOut +from openapi_client.com.namsor.sdk2.model.api_plan_out import APIPlanOut +from openapi_client.com.namsor.sdk2.model.api_plan_subscription_out import APIPlanSubscriptionOut +from openapi_client.com.namsor.sdk2.model.api_plans_out import APIPlansOut +from openapi_client.com.namsor.sdk2.model.api_service_out import APIServiceOut +from openapi_client.com.namsor.sdk2.model.api_services_out import APIServicesOut +from openapi_client.com.namsor.sdk2.model.api_usage_aggregated_out import APIUsageAggregatedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_diasporaed_out import BatchFirstLastNameDiasporaedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_gender_in import BatchFirstLastNameGenderIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_gendered_out import BatchFirstLastNameGenderedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_geo_in import BatchFirstLastNameGeoIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_geo_zipped_in import BatchFirstLastNameGeoZippedIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_in import BatchFirstLastNameIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_origined_out import BatchFirstLastNameOriginedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_phone_coded_out import BatchFirstLastNamePhoneCodedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_phone_number_in import BatchFirstLastNamePhoneNumberIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_us_race_ethnicity_out import BatchFirstLastNameUSRaceEthnicityOut +from openapi_client.com.namsor.sdk2.model.batch_name_match_candidates_out import BatchNameMatchCandidatesOut +from openapi_client.com.namsor.sdk2.model.batch_parsed_full_name_geo_in import BatchParsedFullNameGeoIn +from openapi_client.com.namsor.sdk2.model.batch_parsed_full_name_in import BatchParsedFullNameIn +from openapi_client.com.namsor.sdk2.model.batch_personal_name_geo_out import BatchPersonalNameGeoOut +from openapi_client.com.namsor.sdk2.model.batch_personal_name_in import BatchPersonalNameIn +from openapi_client.com.namsor.sdk2.model.billing_history_out import BillingHistoryOut +from openapi_client.com.namsor.sdk2.model.billing_info_in_out import BillingInfoInOut +from openapi_client.com.namsor.sdk2.model.classifier_metrics_out import ClassifierMetricsOut +from openapi_client.com.namsor.sdk2.model.currencies_out import CurrenciesOut +from openapi_client.com.namsor.sdk2.model.deploy_ui_out import DeployUIOut +from openapi_client.com.namsor.sdk2.model.expected_class_metrics_out import ExpectedClassMetricsOut +from openapi_client.com.namsor.sdk2.model.first_last_name_diasporaed_out import FirstLastNameDiasporaedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_gender_in import FirstLastNameGenderIn +from openapi_client.com.namsor.sdk2.model.first_last_name_gendered_out import FirstLastNameGenderedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_geo_in import FirstLastNameGeoIn +from openapi_client.com.namsor.sdk2.model.first_last_name_geo_zipped_in import FirstLastNameGeoZippedIn +from openapi_client.com.namsor.sdk2.model.first_last_name_in import FirstLastNameIn +from openapi_client.com.namsor.sdk2.model.first_last_name_origined_out import FirstLastNameOriginedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_phone_coded_out import FirstLastNamePhoneCodedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_phone_number_in import FirstLastNamePhoneNumberIn +from openapi_client.com.namsor.sdk2.model.first_last_name_us_race_ethnicity_out import FirstLastNameUSRaceEthnicityOut +from openapi_client.com.namsor.sdk2.model.inline_object import InlineObject +from openapi_client.com.namsor.sdk2.model.invoice_item_out import InvoiceItemOut +from openapi_client.com.namsor.sdk2.model.invoice_out import InvoiceOut +from openapi_client.com.namsor.sdk2.model.nam_sor_counter_out import NamSorCounterOut +from openapi_client.com.namsor.sdk2.model.name_match_candidate_out import NameMatchCandidateOut +from openapi_client.com.namsor.sdk2.model.name_match_candidates_out import NameMatchCandidatesOut +from openapi_client.com.namsor.sdk2.model.parsed_full_name_geo_in import ParsedFullNameGeoIn +from openapi_client.com.namsor.sdk2.model.parsed_full_name_in import ParsedFullNameIn +from openapi_client.com.namsor.sdk2.model.personal_name_geo_out import PersonalNameGeoOut +from openapi_client.com.namsor.sdk2.model.personal_name_in import PersonalNameIn +from openapi_client.com.namsor.sdk2.model.romanized_name_out import RomanizedNameOut +from openapi_client.com.namsor.sdk2.model.software_version_out import SoftwareVersionOut +from openapi_client.com.namsor.sdk2.model.source_detailed_metrics_out import SourceDetailedMetricsOut +from openapi_client.com.namsor.sdk2.model.source_metrics_out import SourceMetricsOut +from openapi_client.com.namsor.sdk2.model.stripe_card_out import StripeCardOut +from openapi_client.com.namsor.sdk2.model.stripe_customer_out import StripeCustomerOut +from openapi_client.com.namsor.sdk2.model.system_metrics_out import SystemMetricsOut +from openapi_client.com.namsor.sdk2.model.user_info_out import UserInfoOut diff --git a/openapi_client/api_client.py b/openapi_client/api_client.py new file mode 100644 index 0000000..907c617 --- /dev/null +++ b/openapi_client/api_client.py @@ -0,0 +1,635 @@ +# coding: utf-8 +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from openapi_client.configuration import Configuration +import openapi_client.com.namsor.sdk2.model +from openapi_client import rest + + +class ApiClient(object): + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + _pool = None + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + self.pool_threads = pool_threads + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/1.0.0/python' + + def __del__(self): + if self._pool: + self._pool.close() + self._pool.join() + self._pool = None + + @property + def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ + if self._pool is None: + self._pool = ThreadPool(self.pool_threads) + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.configuration.host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.openapi_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(openapi_client.com.namsor.sdk2.model, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if not klass.openapi_types and not hasattr(klass, + 'get_real_child_model'): + return data + + kwargs = {} + if klass.openapi_types is not None: + for attr, attr_type in six.iteritems(klass.openapi_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/openapi_client/com.namsor.sdk2.api/__init__.py b/openapi_client/com.namsor.sdk2.api/__init__.py new file mode 100644 index 0000000..b653b94 --- /dev/null +++ b/openapi_client/com.namsor.sdk2.api/__init__.py @@ -0,0 +1,9 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from com.namsor.sdk2.api.admin_api import AdminApi +from com.namsor.sdk2.api.chinese_api import ChineseApi +from com.namsor.sdk2.api.personal_api import PersonalApi +from com.namsor.sdk2.api.social_api import SocialApi diff --git a/openapi_client/com.namsor.sdk2.model/__init__.py b/openapi_client/com.namsor.sdk2.model/__init__.py new file mode 100644 index 0000000..2c3a6ea --- /dev/null +++ b/openapi_client/com.namsor.sdk2.model/__init__.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +# flake8: noqa +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +# import models into model package +from openapi_client.com.namsor.sdk2.model.api_billing_period_usage_out import APIBillingPeriodUsageOut +from openapi_client.com.namsor.sdk2.model.api_counter_v2_out import APICounterV2Out +from openapi_client.com.namsor.sdk2.model.api_key_out import APIKeyOut +from openapi_client.com.namsor.sdk2.model.api_period_usage_out import APIPeriodUsageOut +from openapi_client.com.namsor.sdk2.model.api_plan_out import APIPlanOut +from openapi_client.com.namsor.sdk2.model.api_plan_subscription_out import APIPlanSubscriptionOut +from openapi_client.com.namsor.sdk2.model.api_plans_out import APIPlansOut +from openapi_client.com.namsor.sdk2.model.api_service_out import APIServiceOut +from openapi_client.com.namsor.sdk2.model.api_services_out import APIServicesOut +from openapi_client.com.namsor.sdk2.model.api_usage_aggregated_out import APIUsageAggregatedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_diasporaed_out import BatchFirstLastNameDiasporaedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_gender_in import BatchFirstLastNameGenderIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_gendered_out import BatchFirstLastNameGenderedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_geo_in import BatchFirstLastNameGeoIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_geo_zipped_in import BatchFirstLastNameGeoZippedIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_in import BatchFirstLastNameIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_origined_out import BatchFirstLastNameOriginedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_phone_coded_out import BatchFirstLastNamePhoneCodedOut +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_phone_number_in import BatchFirstLastNamePhoneNumberIn +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_us_race_ethnicity_out import BatchFirstLastNameUSRaceEthnicityOut +from openapi_client.com.namsor.sdk2.model.batch_name_match_candidates_out import BatchNameMatchCandidatesOut +from openapi_client.com.namsor.sdk2.model.batch_parsed_full_name_geo_in import BatchParsedFullNameGeoIn +from openapi_client.com.namsor.sdk2.model.batch_parsed_full_name_in import BatchParsedFullNameIn +from openapi_client.com.namsor.sdk2.model.batch_personal_name_geo_out import BatchPersonalNameGeoOut +from openapi_client.com.namsor.sdk2.model.batch_personal_name_in import BatchPersonalNameIn +from openapi_client.com.namsor.sdk2.model.billing_history_out import BillingHistoryOut +from openapi_client.com.namsor.sdk2.model.billing_info_in_out import BillingInfoInOut +from openapi_client.com.namsor.sdk2.model.classifier_metrics_out import ClassifierMetricsOut +from openapi_client.com.namsor.sdk2.model.currencies_out import CurrenciesOut +from openapi_client.com.namsor.sdk2.model.deploy_ui_out import DeployUIOut +from openapi_client.com.namsor.sdk2.model.expected_class_metrics_out import ExpectedClassMetricsOut +from openapi_client.com.namsor.sdk2.model.first_last_name_diasporaed_out import FirstLastNameDiasporaedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_gender_in import FirstLastNameGenderIn +from openapi_client.com.namsor.sdk2.model.first_last_name_gendered_out import FirstLastNameGenderedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_geo_in import FirstLastNameGeoIn +from openapi_client.com.namsor.sdk2.model.first_last_name_geo_zipped_in import FirstLastNameGeoZippedIn +from openapi_client.com.namsor.sdk2.model.first_last_name_in import FirstLastNameIn +from openapi_client.com.namsor.sdk2.model.first_last_name_origined_out import FirstLastNameOriginedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_phone_coded_out import FirstLastNamePhoneCodedOut +from openapi_client.com.namsor.sdk2.model.first_last_name_phone_number_in import FirstLastNamePhoneNumberIn +from openapi_client.com.namsor.sdk2.model.first_last_name_us_race_ethnicity_out import FirstLastNameUSRaceEthnicityOut +from openapi_client.com.namsor.sdk2.model.inline_object import InlineObject +from openapi_client.com.namsor.sdk2.model.invoice_item_out import InvoiceItemOut +from openapi_client.com.namsor.sdk2.model.invoice_out import InvoiceOut +from openapi_client.com.namsor.sdk2.model.nam_sor_counter_out import NamSorCounterOut +from openapi_client.com.namsor.sdk2.model.name_match_candidate_out import NameMatchCandidateOut +from openapi_client.com.namsor.sdk2.model.name_match_candidates_out import NameMatchCandidatesOut +from openapi_client.com.namsor.sdk2.model.parsed_full_name_geo_in import ParsedFullNameGeoIn +from openapi_client.com.namsor.sdk2.model.parsed_full_name_in import ParsedFullNameIn +from openapi_client.com.namsor.sdk2.model.personal_name_geo_out import PersonalNameGeoOut +from openapi_client.com.namsor.sdk2.model.personal_name_in import PersonalNameIn +from openapi_client.com.namsor.sdk2.model.romanized_name_out import RomanizedNameOut +from openapi_client.com.namsor.sdk2.model.software_version_out import SoftwareVersionOut +from openapi_client.com.namsor.sdk2.model.source_detailed_metrics_out import SourceDetailedMetricsOut +from openapi_client.com.namsor.sdk2.model.source_metrics_out import SourceMetricsOut +from openapi_client.com.namsor.sdk2.model.stripe_card_out import StripeCardOut +from openapi_client.com.namsor.sdk2.model.stripe_customer_out import StripeCustomerOut +from openapi_client.com.namsor.sdk2.model.system_metrics_out import SystemMetricsOut +from openapi_client.com.namsor.sdk2.model.user_info_out import UserInfoOut diff --git a/openapi_client/com/namsor/sdk2/api/admin_api.py b/openapi_client/com/namsor/sdk2/api/admin_api.py new file mode 100644 index 0000000..76f1041 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/api/admin_api.py @@ -0,0 +1,2892 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client.api_client import ApiClient + + +class AdminApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def api_usage(self, **kwargs): # noqa: E501 + """Print current API usage. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_usage(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.api_usage_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.api_usage_with_http_info(**kwargs) # noqa: E501 + return data + + def api_usage_with_http_info(self, **kwargs): # noqa: E501 + """Print current API usage. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_usage_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method api_usage" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/apiUsage', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPeriodUsageOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_usage_history(self, **kwargs): # noqa: E501 + """Print historical API usage. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_usage_history(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.api_usage_history_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.api_usage_history_with_http_info(**kwargs) # noqa: E501 + return data + + def api_usage_history_with_http_info(self, **kwargs): # noqa: E501 + """Print historical API usage. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_usage_history_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method api_usage_history" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/apiUsageHistory', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPeriodUsageOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_usage_history_aggregate(self, **kwargs): # noqa: E501 + """Print historical API usage (in an aggregated view, by service, by day/hour/min). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_usage_history_aggregate(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.api_usage_history_aggregate_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.api_usage_history_aggregate_with_http_info(**kwargs) # noqa: E501 + return data + + def api_usage_history_aggregate_with_http_info(self, **kwargs): # noqa: E501 + """Print historical API usage (in an aggregated view, by service, by day/hour/min). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_usage_history_aggregate_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method api_usage_history_aggregate" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/apiUsageHistoryAggregate', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPeriodUsageOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def available_plans(self, **kwargs): # noqa: E501 + """List all available plans in the default currency (usd). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.available_plans(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPlansOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.available_plans_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.available_plans_with_http_info(**kwargs) # noqa: E501 + return data + + def available_plans_with_http_info(self, **kwargs): # noqa: E501 + """List all available plans in the default currency (usd). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.available_plans_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPlansOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method available_plans" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/availablePlans', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPlansOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def available_plans1(self, token, **kwargs): # noqa: E501 + """List all available plans in the user's preferred currency. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.available_plans1(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIPlansOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.available_plans1_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.available_plans1_with_http_info(token, **kwargs) # noqa: E501 + return data + + def available_plans1_with_http_info(self, token, **kwargs): # noqa: E501 + """List all available plans in the user's preferred currency. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.available_plans1_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIPlansOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method available_plans1" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `available_plans1`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/availablePlans/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPlansOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def available_services(self, **kwargs): # noqa: E501 + """List of API services and usage cost in Units (default is 1=ONE Unit). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.available_services(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPlansOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.available_services_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.available_services_with_http_info(**kwargs) # noqa: E501 + return data + + def available_services_with_http_info(self, **kwargs): # noqa: E501 + """List of API services and usage cost in Units (default is 1=ONE Unit). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.available_services_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: APIPlansOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method available_services" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/apiServices', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPlansOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def billing_currencies(self, **kwargs): # noqa: E501 + """List possible currency options for billing (USD, EUR, GBP, ...) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.billing_currencies(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: CurrenciesOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.billing_currencies_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.billing_currencies_with_http_info(**kwargs) # noqa: E501 + return data + + def billing_currencies_with_http_info(self, **kwargs): # noqa: E501 + """List possible currency options for billing (USD, EUR, GBP, ...) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.billing_currencies_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: CurrenciesOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method billing_currencies" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/billingCurrencies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CurrenciesOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def billing_history(self, token, **kwargs): # noqa: E501 + """Read the history billing information (invoices paid via Stripe or manually). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.billing_history(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: BillingHistoryOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.billing_history_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.billing_history_with_http_info(token, **kwargs) # noqa: E501 + return data + + def billing_history_with_http_info(self, token, **kwargs): # noqa: E501 + """Read the history billing information (invoices paid via Stripe or manually). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.billing_history_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: BillingHistoryOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method billing_history" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `billing_history`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/billingHistory/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BillingHistoryOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def billing_info(self, token, **kwargs): # noqa: E501 + """Read the billing information (company name, address, phone, vat ID) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.billing_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: BillingInfoInOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.billing_info_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.billing_info_with_http_info(token, **kwargs) # noqa: E501 + return data + + def billing_info_with_http_info(self, token, **kwargs): # noqa: E501 + """Read the billing information (company name, address, phone, vat ID) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.billing_info_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: BillingInfoInOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method billing_info" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `billing_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/billingInfo/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BillingInfoInOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def charge(self, **kwargs): # noqa: E501 + """Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.charge(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param InlineObject inline_object: + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.charge_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.charge_with_http_info(**kwargs) # noqa: E501 + return data + + def charge_with_http_info(self, **kwargs): # noqa: E501 + """Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.charge_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param InlineObject inline_object: + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['inline_object'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method charge" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'inline_object' in local_var_params: + body_params = local_var_params['inline_object'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/charge', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def corporate_key(self, api_key, corporate, **kwargs): # noqa: E501 + """Setting an API Key to a corporate status. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.corporate_key(api_key, corporate, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str api_key: (required) + :param bool corporate: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.corporate_key_with_http_info(api_key, corporate, **kwargs) # noqa: E501 + else: + (data) = self.corporate_key_with_http_info(api_key, corporate, **kwargs) # noqa: E501 + return data + + def corporate_key_with_http_info(self, api_key, corporate, **kwargs): # noqa: E501 + """Setting an API Key to a corporate status. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.corporate_key_with_http_info(api_key, corporate, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str api_key: (required) + :param bool corporate: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['api_key', 'corporate'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method corporate_key" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'api_key' is set + if ('api_key' not in local_var_params or + local_var_params['api_key'] is None): + raise ValueError("Missing the required parameter `api_key` when calling `corporate_key`") # noqa: E501 + # verify the required parameter 'corporate' is set + if ('corporate' not in local_var_params or + local_var_params['corporate'] is None): + raise ValueError("Missing the required parameter `corporate` when calling `corporate_key`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'api_key' in local_var_params: + path_params['apiKey'] = local_var_params['api_key'] # noqa: E501 + if 'corporate' in local_var_params: + path_params['corporate'] = local_var_params['corporate'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/corporateKey/{apiKey}/{corporate}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def debug_level(self, logger, level, **kwargs): # noqa: E501 + """Update debug level for a classifier # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.debug_level(logger, level, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str logger: (required) + :param str level: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.debug_level_with_http_info(logger, level, **kwargs) # noqa: E501 + else: + (data) = self.debug_level_with_http_info(logger, level, **kwargs) # noqa: E501 + return data + + def debug_level_with_http_info(self, logger, level, **kwargs): # noqa: E501 + """Update debug level for a classifier # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.debug_level_with_http_info(logger, level, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str logger: (required) + :param str level: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['logger', 'level'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method debug_level" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'logger' is set + if ('logger' not in local_var_params or + local_var_params['logger'] is None): + raise ValueError("Missing the required parameter `logger` when calling `debug_level`") # noqa: E501 + # verify the required parameter 'level' is set + if ('level' not in local_var_params or + local_var_params['level'] is None): + raise ValueError("Missing the required parameter `level` when calling `debug_level`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'logger' in local_var_params: + path_params['logger'] = local_var_params['logger'] # noqa: E501 + if 'level' in local_var_params: + path_params['level'] = local_var_params['level'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/debugLevel/{logger}/{level}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def invalidate_cache(self, **kwargs): # noqa: E501 + """Invalidate system caches. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidate_cache(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.invalidate_cache_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.invalidate_cache_with_http_info(**kwargs) # noqa: E501 + return data + + def invalidate_cache_with_http_info(self, **kwargs): # noqa: E501 + """Invalidate system caches. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.invalidate_cache_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method invalidate_cache" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/invalidateCache', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def namsor_counter(self, **kwargs): # noqa: E501 + """Get the overall API counter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.namsor_counter(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: SoftwareVersionOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.namsor_counter_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.namsor_counter_with_http_info(**kwargs) # noqa: E501 + return data + + def namsor_counter_with_http_info(self, **kwargs): # noqa: E501 + """Get the overall API counter # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.namsor_counter_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: SoftwareVersionOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method namsor_counter" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/namsorCounter', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SoftwareVersionOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def payment_info(self, token, **kwargs): # noqa: E501 + """Get the Stripe payment information associated with the current google auth session token. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.payment_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.payment_info_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.payment_info_with_http_info(token, **kwargs) # noqa: E501 + return data + + def payment_info_with_http_info(self, token, **kwargs): # noqa: E501 + """Get the Stripe payment information associated with the current google auth session token. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.payment_info_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method payment_info" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `payment_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/paymentInfo/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def procure_key(self, token, **kwargs): # noqa: E501 + """Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.procure_key(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.procure_key_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.procure_key_with_http_info(token, **kwargs) # noqa: E501 + return data + + def procure_key_with_http_info(self, token, **kwargs): # noqa: E501 + """Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.procure_key_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method procure_key" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `procure_key`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/procureKey/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def redeploy_ui(self, **kwargs): # noqa: E501 + """Redeploy UI from current dev branch. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.redeploy_ui(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.redeploy_ui_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.redeploy_ui_with_http_info(**kwargs) # noqa: E501 + return data + + def redeploy_ui_with_http_info(self, **kwargs): # noqa: E501 + """Redeploy UI from current dev branch. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.redeploy_ui_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method redeploy_ui" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/redeployUI', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def remove_user_account(self, token, **kwargs): # noqa: E501 + """Subscribe to a give API plan, using the user's preferred or default currency. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_user_account(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIPlanSubscriptionOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.remove_user_account_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.remove_user_account_with_http_info(token, **kwargs) # noqa: E501 + return data + + def remove_user_account_with_http_info(self, token, **kwargs): # noqa: E501 + """Subscribe to a give API plan, using the user's preferred or default currency. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.remove_user_account_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIPlanSubscriptionOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method remove_user_account" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `remove_user_account`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/removeUserAccount/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPlanSubscriptionOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def shutdown(self, **kwargs): # noqa: E501 + """Stop learning and shutdown system. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.shutdown(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.shutdown_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.shutdown_with_http_info(**kwargs) # noqa: E501 + return data + + def shutdown_with_http_info(self, **kwargs): # noqa: E501 + """Stop learning and shutdown system. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.shutdown_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method shutdown" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/shutdown', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def software_version(self, **kwargs): # noqa: E501 + """Get the current software version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.software_version(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: SoftwareVersionOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.software_version_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.software_version_with_http_info(**kwargs) # noqa: E501 + return data + + def software_version_with_http_info(self, **kwargs): # noqa: E501 + """Get the current software version # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.software_version_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: SoftwareVersionOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method software_version" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/softwareVersion', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SoftwareVersionOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def source_stats(self, source, **kwargs): # noqa: E501 + """Print basic source statistics. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.source_stats(source, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: (required) + :return: SystemMetricsOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.source_stats_with_http_info(source, **kwargs) # noqa: E501 + else: + (data) = self.source_stats_with_http_info(source, **kwargs) # noqa: E501 + return data + + def source_stats_with_http_info(self, source, **kwargs): # noqa: E501 + """Print basic source statistics. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.source_stats_with_http_info(source, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: (required) + :return: SystemMetricsOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['source'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method source_stats" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'source' is set + if ('source' not in local_var_params or + local_var_params['source'] is None): + raise ValueError("Missing the required parameter `source` when calling `source_stats`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'source' in local_var_params: + path_params['source'] = local_var_params['source'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/sourceStats/{source}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SystemMetricsOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def stats(self, **kwargs): # noqa: E501 + """Print basic system statistics. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.stats(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: SystemMetricsOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.stats_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.stats_with_http_info(**kwargs) # noqa: E501 + return data + + def stats_with_http_info(self, **kwargs): # noqa: E501 + """Print basic system statistics. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.stats_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: SystemMetricsOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method stats" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/stats', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SystemMetricsOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def stripe_connect(self, **kwargs): # noqa: E501 + """Connects a Stripe Account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.stripe_connect(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str scope: + :param str code: + :param str error: + :param str error_description: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.stripe_connect_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.stripe_connect_with_http_info(**kwargs) # noqa: E501 + return data + + def stripe_connect_with_http_info(self, **kwargs): # noqa: E501 + """Connects a Stripe Account. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.stripe_connect_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str scope: + :param str code: + :param str error: + :param str error_description: + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['scope', 'code', 'error', 'error_description'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method stripe_connect" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'scope' in local_var_params: + query_params.append(('scope', local_var_params['scope'])) # noqa: E501 + if 'code' in local_var_params: + query_params.append(('code', local_var_params['code'])) # noqa: E501 + if 'error' in local_var_params: + query_params.append(('error', local_var_params['error'])) # noqa: E501 + if 'error_description' in local_var_params: + query_params.append(('error_description', local_var_params['error_description'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/stripeConnect', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def subscribe_plan(self, plan_name, token, **kwargs): # noqa: E501 + """Subscribe to a give API plan, using the user's preferred or default currency. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.subscribe_plan(plan_name, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str plan_name: (required) + :param str token: (required) + :return: APIPlanSubscriptionOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.subscribe_plan_with_http_info(plan_name, token, **kwargs) # noqa: E501 + else: + (data) = self.subscribe_plan_with_http_info(plan_name, token, **kwargs) # noqa: E501 + return data + + def subscribe_plan_with_http_info(self, plan_name, token, **kwargs): # noqa: E501 + """Subscribe to a give API plan, using the user's preferred or default currency. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.subscribe_plan_with_http_info(plan_name, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str plan_name: (required) + :param str token: (required) + :return: APIPlanSubscriptionOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['plan_name', 'token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method subscribe_plan" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'plan_name' is set + if ('plan_name' not in local_var_params or + local_var_params['plan_name'] is None): + raise ValueError("Missing the required parameter `plan_name` when calling `subscribe_plan`") # noqa: E501 + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `subscribe_plan`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'plan_name' in local_var_params: + path_params['planName'] = local_var_params['plan_name'] # noqa: E501 + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/subscribePlan/{planName}/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPlanSubscriptionOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_billing_info(self, token, **kwargs): # noqa: E501 + """Sets or update the billing information (company name, address, phone, vat ID) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_billing_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :param BillingInfoInOut billing_info_in_out: + :return: BillingInfoInOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_billing_info_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.update_billing_info_with_http_info(token, **kwargs) # noqa: E501 + return data + + def update_billing_info_with_http_info(self, token, **kwargs): # noqa: E501 + """Sets or update the billing information (company name, address, phone, vat ID) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_billing_info_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :param BillingInfoInOut billing_info_in_out: + :return: BillingInfoInOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token', 'billing_info_in_out'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_billing_info" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `update_billing_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'billing_info_in_out' in local_var_params: + body_params = local_var_params['billing_info_in_out'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json;charset=UTF-8']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/updateBillingInfo/{token}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BillingInfoInOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_limit(self, usage_limit, hard_or_soft, token, **kwargs): # noqa: E501 + """Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_limit(usage_limit, hard_or_soft, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int usage_limit: (required) + :param bool hard_or_soft: (required) + :param str token: (required) + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_limit_with_http_info(usage_limit, hard_or_soft, token, **kwargs) # noqa: E501 + else: + (data) = self.update_limit_with_http_info(usage_limit, hard_or_soft, token, **kwargs) # noqa: E501 + return data + + def update_limit_with_http_info(self, usage_limit, hard_or_soft, token, **kwargs): # noqa: E501 + """Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_limit_with_http_info(usage_limit, hard_or_soft, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int usage_limit: (required) + :param bool hard_or_soft: (required) + :param str token: (required) + :return: APIPeriodUsageOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['usage_limit', 'hard_or_soft', 'token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_limit" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'usage_limit' is set + if ('usage_limit' not in local_var_params or + local_var_params['usage_limit'] is None): + raise ValueError("Missing the required parameter `usage_limit` when calling `update_limit`") # noqa: E501 + # verify the required parameter 'hard_or_soft' is set + if ('hard_or_soft' not in local_var_params or + local_var_params['hard_or_soft'] is None): + raise ValueError("Missing the required parameter `hard_or_soft` when calling `update_limit`") # noqa: E501 + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `update_limit`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'usage_limit' in local_var_params: + path_params['usageLimit'] = local_var_params['usage_limit'] # noqa: E501 + if 'hard_or_soft' in local_var_params: + path_params['hardOrSoft'] = local_var_params['hard_or_soft'] # noqa: E501 + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/updateLimit/{usageLimit}/{hardOrSoft}/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIPeriodUsageOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_payment_default(self, defaut_source_id, token, **kwargs): # noqa: E501 + """Update the default Stripe card associated with the current google auth session token. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_payment_default(defaut_source_id, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str defaut_source_id: (required) + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_payment_default_with_http_info(defaut_source_id, token, **kwargs) # noqa: E501 + else: + (data) = self.update_payment_default_with_http_info(defaut_source_id, token, **kwargs) # noqa: E501 + return data + + def update_payment_default_with_http_info(self, defaut_source_id, token, **kwargs): # noqa: E501 + """Update the default Stripe card associated with the current google auth session token. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_payment_default_with_http_info(defaut_source_id, token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str defaut_source_id: (required) + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['defaut_source_id', 'token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_payment_default" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'defaut_source_id' is set + if ('defaut_source_id' not in local_var_params or + local_var_params['defaut_source_id'] is None): + raise ValueError("Missing the required parameter `defaut_source_id` when calling `update_payment_default`") # noqa: E501 + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `update_payment_default`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'defaut_source_id' in local_var_params: + path_params['defautSourceId'] = local_var_params['defaut_source_id'] # noqa: E501 + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/updatePaymentDefault/{defautSourceId}/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def user_info(self, token, **kwargs): # noqa: E501 + """Get the user profile associated with the current google auth session token. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.user_info_with_http_info(token, **kwargs) # noqa: E501 + else: + (data) = self.user_info_with_http_info(token, **kwargs) # noqa: E501 + return data + + def user_info_with_http_info(self, token, **kwargs): # noqa: E501 + """Get the user profile associated with the current google auth session token. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.user_info_with_http_info(token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method user_info" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'token' is set + if ('token' not in local_var_params or + local_var_params['token'] is None): + raise ValueError("Missing the required parameter `token` when calling `user_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'token' in local_var_params: + path_params['token'] = local_var_params['token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/userInfo/{token}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def verify_email(self, email_token, **kwargs): # noqa: E501 + """Verifies an email, based on token sent to that email # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.verify_email(email_token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str email_token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.verify_email_with_http_info(email_token, **kwargs) # noqa: E501 + else: + (data) = self.verify_email_with_http_info(email_token, **kwargs) # noqa: E501 + return data + + def verify_email_with_http_info(self, email_token, **kwargs): # noqa: E501 + """Verifies an email, based on token sent to that email # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.verify_email_with_http_info(email_token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str email_token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['email_token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method verify_email" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'email_token' is set + if ('email_token' not in local_var_params or + local_var_params['email_token'] is None): + raise ValueError("Missing the required parameter `email_token` when calling `verify_email`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'email_token' in local_var_params: + path_params['emailToken'] = local_var_params['email_token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/verifyEmail/{emailToken}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def verify_remove_email(self, email_token, **kwargs): # noqa: E501 + """Verifies an email, based on token sent to that email # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.verify_remove_email(email_token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str email_token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.verify_remove_email_with_http_info(email_token, **kwargs) # noqa: E501 + else: + (data) = self.verify_remove_email_with_http_info(email_token, **kwargs) # noqa: E501 + return data + + def verify_remove_email_with_http_info(self, email_token, **kwargs): # noqa: E501 + """Verifies an email, based on token sent to that email # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.verify_remove_email_with_http_info(email_token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str email_token: (required) + :return: APIKeyOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['email_token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method verify_remove_email" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'email_token' is set + if ('email_token' not in local_var_params or + local_var_params['email_token'] is None): + raise ValueError("Missing the required parameter `email_token` when calling `verify_remove_email`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'email_token' in local_var_params: + path_params['emailToken'] = local_var_params['email_token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/verifyRemoveEmail/{emailToken}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='APIKeyOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def vet(self, source, vetted, **kwargs): # noqa: E501 + """Vetting of a source. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vet(source, vetted, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: (required) + :param bool vetted: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.vet_with_http_info(source, vetted, **kwargs) # noqa: E501 + else: + (data) = self.vet_with_http_info(source, vetted, **kwargs) # noqa: E501 + return data + + def vet_with_http_info(self, source, vetted, **kwargs): # noqa: E501 + """Vetting of a source. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.vet_with_http_info(source, vetted, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str source: (required) + :param bool vetted: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['source', 'vetted'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method vet" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'source' is set + if ('source' not in local_var_params or + local_var_params['source'] is None): + raise ValueError("Missing the required parameter `source` when calling `vet`") # noqa: E501 + # verify the required parameter 'vetted' is set + if ('vetted' not in local_var_params or + local_var_params['vetted'] is None): + raise ValueError("Missing the required parameter `vetted` when calling `vet`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'source' in local_var_params: + path_params['source'] = local_var_params['source'] # noqa: E501 + if 'vetted' in local_var_params: + path_params['vetted'] = local_var_params['vetted'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/vetting/{source}/{vetted}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/openapi_client/com/namsor/sdk2/api/chinese_api.py b/openapi_client/com/namsor/sdk2/api/chinese_api.py new file mode 100644 index 0000000..394872f --- /dev/null +++ b/openapi_client/com/namsor/sdk2/api/chinese_api.py @@ -0,0 +1,434 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client.api_client import ApiClient + + +class ChineseApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def chinese_name_candidates(self, chinese_surname_latin, chinese_given_name_latin, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_candidates(chinese_surname_latin, chinese_given_name_latin, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str chinese_surname_latin: (required) + :param str chinese_given_name_latin: (required) + :return: RomanizedNameOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.chinese_name_candidates_with_http_info(chinese_surname_latin, chinese_given_name_latin, **kwargs) # noqa: E501 + else: + (data) = self.chinese_name_candidates_with_http_info(chinese_surname_latin, chinese_given_name_latin, **kwargs) # noqa: E501 + return data + + def chinese_name_candidates_with_http_info(self, chinese_surname_latin, chinese_given_name_latin, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_candidates_with_http_info(chinese_surname_latin, chinese_given_name_latin, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str chinese_surname_latin: (required) + :param str chinese_given_name_latin: (required) + :return: RomanizedNameOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['chinese_surname_latin', 'chinese_given_name_latin'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method chinese_name_candidates" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'chinese_surname_latin' is set + if ('chinese_surname_latin' not in local_var_params or + local_var_params['chinese_surname_latin'] is None): + raise ValueError("Missing the required parameter `chinese_surname_latin` when calling `chinese_name_candidates`") # noqa: E501 + # verify the required parameter 'chinese_given_name_latin' is set + if ('chinese_given_name_latin' not in local_var_params or + local_var_params['chinese_given_name_latin'] is None): + raise ValueError("Missing the required parameter `chinese_given_name_latin` when calling `chinese_name_candidates`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'chinese_surname_latin' in local_var_params: + path_params['chineseSurnameLatin'] = local_var_params['chinese_surname_latin'] # noqa: E501 + if 'chinese_given_name_latin' in local_var_params: + path_params['chineseGivenNameLatin'] = local_var_params['chinese_given_name_latin'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/chineseNameCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RomanizedNameOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def chinese_name_candidates_batch(self, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_candidates_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname + :return: BatchNameMatchCandidatesOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.chinese_name_candidates_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.chinese_name_candidates_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def chinese_name_candidates_batch_with_http_info(self, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_candidates_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname + :return: BatchNameMatchCandidatesOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method chinese_name_candidates_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/chineseNameCandidatesBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchNameMatchCandidatesOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def chinese_name_candidates_gender_batch(self, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_candidates_gender_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname + :return: BatchNameMatchCandidatesOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.chinese_name_candidates_gender_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.chinese_name_candidates_gender_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def chinese_name_candidates_gender_batch_with_http_info(self, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_candidates_gender_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal Chinese names in LATIN, firstName = chineseGivenName; lastName=chineseSurname + :return: BatchNameMatchCandidatesOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method chinese_name_candidates_gender_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/chineseNameCandidatesGenderBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchNameMatchCandidatesOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def chinese_name_gender_candidates(self, chinese_surname_latin, chinese_given_name_latin, known_gender, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_gender_candidates(chinese_surname_latin, chinese_given_name_latin, known_gender, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str chinese_surname_latin: (required) + :param str chinese_given_name_latin: (required) + :param str known_gender: (required) + :return: RomanizedNameOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.chinese_name_gender_candidates_with_http_info(chinese_surname_latin, chinese_given_name_latin, known_gender, **kwargs) # noqa: E501 + else: + (data) = self.chinese_name_gender_candidates_with_http_info(chinese_surname_latin, chinese_given_name_latin, known_gender, **kwargs) # noqa: E501 + return data + + def chinese_name_gender_candidates_with_http_info(self, chinese_surname_latin, chinese_given_name_latin, known_gender, **kwargs): # noqa: E501 + """Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.chinese_name_gender_candidates_with_http_info(chinese_surname_latin, chinese_given_name_latin, known_gender, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str chinese_surname_latin: (required) + :param str chinese_given_name_latin: (required) + :param str known_gender: (required) + :return: RomanizedNameOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['chinese_surname_latin', 'chinese_given_name_latin', 'known_gender'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method chinese_name_gender_candidates" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'chinese_surname_latin' is set + if ('chinese_surname_latin' not in local_var_params or + local_var_params['chinese_surname_latin'] is None): + raise ValueError("Missing the required parameter `chinese_surname_latin` when calling `chinese_name_gender_candidates`") # noqa: E501 + # verify the required parameter 'chinese_given_name_latin' is set + if ('chinese_given_name_latin' not in local_var_params or + local_var_params['chinese_given_name_latin'] is None): + raise ValueError("Missing the required parameter `chinese_given_name_latin` when calling `chinese_name_gender_candidates`") # noqa: E501 + # verify the required parameter 'known_gender' is set + if ('known_gender' not in local_var_params or + local_var_params['known_gender'] is None): + raise ValueError("Missing the required parameter `known_gender` when calling `chinese_name_gender_candidates`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'chinese_surname_latin' in local_var_params: + path_params['chineseSurnameLatin'] = local_var_params['chinese_surname_latin'] # noqa: E501 + if 'chinese_given_name_latin' in local_var_params: + path_params['chineseGivenNameLatin'] = local_var_params['chinese_given_name_latin'] # noqa: E501 + if 'known_gender' in local_var_params: + path_params['knownGender'] = local_var_params['known_gender'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/chineseNameGenderCandidates/{chineseSurnameLatin}/{chineseGivenNameLatin}/{knownGender}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='RomanizedNameOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/openapi_client/com/namsor/sdk2/api/personal_api.py b/openapi_client/com/namsor/sdk2/api/personal_api.py new file mode 100644 index 0000000..021ba3a --- /dev/null +++ b/openapi_client/com/namsor/sdk2/api/personal_api.py @@ -0,0 +1,1610 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client.api_client import ApiClient + + +class PersonalApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def country(self, personal_name_full, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.country(personal_name_full, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str personal_name_full: (required) + :return: PersonalNameGeoOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.country_with_http_info(personal_name_full, **kwargs) # noqa: E501 + else: + (data) = self.country_with_http_info(personal_name_full, **kwargs) # noqa: E501 + return data + + def country_with_http_info(self, personal_name_full, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.country_with_http_info(personal_name_full, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str personal_name_full: (required) + :return: PersonalNameGeoOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['personal_name_full'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method country" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'personal_name_full' is set + if ('personal_name_full' not in local_var_params or + local_var_params['personal_name_full'] is None): + raise ValueError("Missing the required parameter `personal_name_full` when calling `country`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'personal_name_full' in local_var_params: + path_params['personalNameFull'] = local_var_params['personal_name_full'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/country/{personalNameFull}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='PersonalNameGeoOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def country_batch(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.country_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchPersonalNameIn batch_personal_name_in: A list of personal names + :return: BatchPersonalNameGeoOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.country_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.country_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def country_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.country_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchPersonalNameIn batch_personal_name_in: A list of personal names + :return: BatchPersonalNameGeoOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_personal_name_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method country_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_personal_name_in' in local_var_params: + body_params = local_var_params['batch_personal_name_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/countryBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchPersonalNameGeoOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def diaspora(self, country_iso2, first_name, last_name, **kwargs): # noqa: E501 + """[USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.diaspora(country_iso2, first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str country_iso2: (required) + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameDiasporaedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.diaspora_with_http_info(country_iso2, first_name, last_name, **kwargs) # noqa: E501 + else: + (data) = self.diaspora_with_http_info(country_iso2, first_name, last_name, **kwargs) # noqa: E501 + return data + + def diaspora_with_http_info(self, country_iso2, first_name, last_name, **kwargs): # noqa: E501 + """[USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.diaspora_with_http_info(country_iso2, first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str country_iso2: (required) + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameDiasporaedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['country_iso2', 'first_name', 'last_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method diaspora" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'country_iso2' is set + if ('country_iso2' not in local_var_params or + local_var_params['country_iso2'] is None): + raise ValueError("Missing the required parameter `country_iso2` when calling `diaspora`") # noqa: E501 + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `diaspora`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `diaspora`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'country_iso2' in local_var_params: + path_params['countryIso2'] = local_var_params['country_iso2'] # noqa: E501 + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/diaspora/{countryIso2}/{firstName}/{lastName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameDiasporaedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def diaspora_batch(self, **kwargs): # noqa: E501 + """[USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.diaspora_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of personal names + :return: BatchFirstLastNameDiasporaedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.diaspora_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.diaspora_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def diaspora_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.diaspora_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of personal names + :return: BatchFirstLastNameDiasporaedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_geo_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method diaspora_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_geo_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_geo_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/diasporaBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameDiasporaedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def gender(self, first_name, last_name, **kwargs): # noqa: E501 + """Infer the likely gender of a name. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender(first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.gender_with_http_info(first_name, last_name, **kwargs) # noqa: E501 + else: + (data) = self.gender_with_http_info(first_name, last_name, **kwargs) # noqa: E501 + return data + + def gender_with_http_info(self, first_name, last_name, **kwargs): # noqa: E501 + """Infer the likely gender of a name. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_with_http_info(first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name', 'last_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method gender" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `gender`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `gender`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/gender/{firstName}/{lastName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def gender_batch(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal names + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.gender_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.gender_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def gender_batch_with_http_info(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal names + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method gender_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/genderBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def gender_geo(self, first_name, last_name, country_iso2, **kwargs): # noqa: E501 + """Infer the likely gender of a name, given a local context (ISO2 country code). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_geo(first_name, last_name, country_iso2, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :param str country_iso2: (required) + :return: FirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.gender_geo_with_http_info(first_name, last_name, country_iso2, **kwargs) # noqa: E501 + else: + (data) = self.gender_geo_with_http_info(first_name, last_name, country_iso2, **kwargs) # noqa: E501 + return data + + def gender_geo_with_http_info(self, first_name, last_name, country_iso2, **kwargs): # noqa: E501 + """Infer the likely gender of a name, given a local context (ISO2 country code). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_geo_with_http_info(first_name, last_name, country_iso2, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :param str country_iso2: (required) + :return: FirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name', 'last_name', 'country_iso2'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method gender_geo" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `gender_geo`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `gender_geo`") # noqa: E501 + # verify the required parameter 'country_iso2' is set + if ('country_iso2' not in local_var_params or + local_var_params['country_iso2'] is None): + raise ValueError("Missing the required parameter `country_iso2` when calling `gender_geo`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + if 'country_iso2' in local_var_params: + path_params['countryIso2'] = local_var_params['country_iso2'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/genderGeo/{firstName}/{lastName}/{countryIso2}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def gender_geo_batch(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_geo_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of names, with country code. + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.gender_geo_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.gender_geo_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def gender_geo_batch_with_http_info(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.gender_geo_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of names, with country code. + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_geo_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method gender_geo_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_geo_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_geo_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/genderGeoBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def origin(self, first_name, last_name, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.origin(first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameOriginedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.origin_with_http_info(first_name, last_name, **kwargs) # noqa: E501 + else: + (data) = self.origin_with_http_info(first_name, last_name, **kwargs) # noqa: E501 + return data + + def origin_with_http_info(self, first_name, last_name, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.origin_with_http_info(first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameOriginedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name', 'last_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method origin" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `origin`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `origin`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/origin/{firstName}/{lastName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameOriginedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def origin_batch(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.origin_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal names + :return: BatchFirstLastNameOriginedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.origin_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.origin_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def origin_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.origin_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameIn batch_first_last_name_in: A list of personal names + :return: BatchFirstLastNameOriginedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method origin_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/originBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameOriginedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def parsed_gender_batch(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.parsed_gender_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchParsedFullNameIn batch_parsed_full_name_in: A list of personal names + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.parsed_gender_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.parsed_gender_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def parsed_gender_batch_with_http_info(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.parsed_gender_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchParsedFullNameIn batch_parsed_full_name_in: A list of personal names + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_parsed_full_name_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method parsed_gender_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_parsed_full_name_in' in local_var_params: + body_params = local_var_params['batch_parsed_full_name_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/parsedGenderBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def parsed_gender_geo_batch(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.parsed_gender_geo_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchParsedFullNameGeoIn batch_parsed_full_name_geo_in: A list of personal names + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.parsed_gender_geo_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.parsed_gender_geo_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def parsed_gender_geo_batch_with_http_info(self, **kwargs): # noqa: E501 + """Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.parsed_gender_geo_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchParsedFullNameGeoIn batch_parsed_full_name_geo_in: A list of personal names + :return: BatchFirstLastNameGenderedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_parsed_full_name_geo_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method parsed_gender_geo_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_parsed_full_name_geo_in' in local_var_params: + body_params = local_var_params['batch_parsed_full_name_geo_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/parsedGenderGeoBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameGenderedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def us_race_ethnicity(self, first_name, last_name, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_race_ethnicity(first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.us_race_ethnicity_with_http_info(first_name, last_name, **kwargs) # noqa: E501 + else: + (data) = self.us_race_ethnicity_with_http_info(first_name, last_name, **kwargs) # noqa: E501 + return data + + def us_race_ethnicity_with_http_info(self, first_name, last_name, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_race_ethnicity_with_http_info(first_name, last_name, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :return: FirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name', 'last_name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method us_race_ethnicity" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `us_race_ethnicity`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `us_race_ethnicity`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/usRaceEthnicity/{firstName}/{lastName}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameUSRaceEthnicityOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def us_race_ethnicity_batch(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_race_ethnicity_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of personal names + :return: BatchFirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.us_race_ethnicity_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.us_race_ethnicity_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def us_race_ethnicity_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_race_ethnicity_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoIn batch_first_last_name_geo_in: A list of personal names + :return: BatchFirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_geo_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method us_race_ethnicity_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_geo_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_geo_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/usRaceEthnicityBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameUSRaceEthnicityOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def us_race_ethnicity_zip5(self, first_name, last_name, zip5_code, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_race_ethnicity_zip5(first_name, last_name, zip5_code, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :param str zip5_code: (required) + :return: FirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.us_race_ethnicity_zip5_with_http_info(first_name, last_name, zip5_code, **kwargs) # noqa: E501 + else: + (data) = self.us_race_ethnicity_zip5_with_http_info(first_name, last_name, zip5_code, **kwargs) # noqa: E501 + return data + + def us_race_ethnicity_zip5_with_http_info(self, first_name, last_name, zip5_code, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_race_ethnicity_zip5_with_http_info(first_name, last_name, zip5_code, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :param str zip5_code: (required) + :return: FirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name', 'last_name', 'zip5_code'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method us_race_ethnicity_zip5" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `us_race_ethnicity_zip5`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `us_race_ethnicity_zip5`") # noqa: E501 + # verify the required parameter 'zip5_code' is set + if ('zip5_code' not in local_var_params or + local_var_params['zip5_code'] is None): + raise ValueError("Missing the required parameter `zip5_code` when calling `us_race_ethnicity_zip5`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + if 'zip5_code' in local_var_params: + path_params['zip5Code'] = local_var_params['zip5_code'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/usRaceEthnicityZIP5/{firstName}/{lastName}/{zip5Code}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNameUSRaceEthnicityOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def us_zip_race_ethnicity_batch(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_zip_race_ethnicity_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoZippedIn batch_first_last_name_geo_zipped_in: A list of personal names + :return: BatchFirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.us_zip_race_ethnicity_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.us_zip_race_ethnicity_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def us_zip_race_ethnicity_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.us_zip_race_ethnicity_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNameGeoZippedIn batch_first_last_name_geo_zipped_in: A list of personal names + :return: BatchFirstLastNameUSRaceEthnicityOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_geo_zipped_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method us_zip_race_ethnicity_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_geo_zipped_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_geo_zipped_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/usZipRaceEthnicityBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNameUSRaceEthnicityOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/openapi_client/com/namsor/sdk2/api/social_api.py b/openapi_client/com/namsor/sdk2/api/social_api.py new file mode 100644 index 0000000..c6add8c --- /dev/null +++ b/openapi_client/com/namsor/sdk2/api/social_api.py @@ -0,0 +1,238 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from openapi_client.api_client import ApiClient + + +class SocialApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def phone_prefix(self, first_name, last_name, phone_number, **kwargs): # noqa: E501 + """[USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.phone_prefix(first_name, last_name, phone_number, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :param str phone_number: (required) + :return: FirstLastNamePhoneCodedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.phone_prefix_with_http_info(first_name, last_name, phone_number, **kwargs) # noqa: E501 + else: + (data) = self.phone_prefix_with_http_info(first_name, last_name, phone_number, **kwargs) # noqa: E501 + return data + + def phone_prefix_with_http_info(self, first_name, last_name, phone_number, **kwargs): # noqa: E501 + """[USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.phone_prefix_with_http_info(first_name, last_name, phone_number, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str first_name: (required) + :param str last_name: (required) + :param str phone_number: (required) + :return: FirstLastNamePhoneCodedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['first_name', 'last_name', 'phone_number'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method phone_prefix" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'first_name' is set + if ('first_name' not in local_var_params or + local_var_params['first_name'] is None): + raise ValueError("Missing the required parameter `first_name` when calling `phone_prefix`") # noqa: E501 + # verify the required parameter 'last_name' is set + if ('last_name' not in local_var_params or + local_var_params['last_name'] is None): + raise ValueError("Missing the required parameter `last_name` when calling `phone_prefix`") # noqa: E501 + # verify the required parameter 'phone_number' is set + if ('phone_number' not in local_var_params or + local_var_params['phone_number'] is None): + raise ValueError("Missing the required parameter `phone_number` when calling `phone_prefix`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'first_name' in local_var_params: + path_params['firstName'] = local_var_params['first_name'] # noqa: E501 + if 'last_name' in local_var_params: + path_params['lastName'] = local_var_params['last_name'] # noqa: E501 + if 'phone_number' in local_var_params: + path_params['phoneNumber'] = local_var_params['phone_number'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/phoneCode/{firstName}/{lastName}/{phoneNumber}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FirstLastNamePhoneCodedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def phone_prefix_batch(self, **kwargs): # noqa: E501 + """[USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.phone_prefix_batch(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNamePhoneNumberIn batch_first_last_name_phone_number_in: A list of personal names + :return: BatchFirstLastNamePhoneCodedOut + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.phone_prefix_batch_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.phone_prefix_batch_with_http_info(**kwargs) # noqa: E501 + return data + + def phone_prefix_batch_with_http_info(self, **kwargs): # noqa: E501 + """[USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.phone_prefix_batch_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param BatchFirstLastNamePhoneNumberIn batch_first_last_name_phone_number_in: A list of personal names + :return: BatchFirstLastNamePhoneCodedOut + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['batch_first_last_name_phone_number_in'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method phone_prefix_batch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'batch_first_last_name_phone_number_in' in local_var_params: + body_params = local_var_params['batch_first_last_name_phone_number_in'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api_key'] # noqa: E501 + + return self.api_client.call_api( + '/api2/json/phoneCodeBatch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='BatchFirstLastNamePhoneCodedOut', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/openapi_client/com/namsor/sdk2/model/api_billing_period_usage_out.py b/openapi_client/com/namsor/sdk2/model/api_billing_period_usage_out.py new file mode 100644 index 0000000..d23e9a2 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_billing_period_usage_out.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIBillingPeriodUsageOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'api_key': 'str', + 'subscription_started': 'int', + 'period_started': 'int', + 'period_ended': 'int', + 'stripe_current_period_end': 'int', + 'stripe_current_period_start': 'int', + 'billing_status': 'str', + 'usage': 'int', + 'soft_limit': 'int', + 'hard_limit': 'int' + } + + attribute_map = { + 'api_key': 'apiKey', + 'subscription_started': 'subscriptionStarted', + 'period_started': 'periodStarted', + 'period_ended': 'periodEnded', + 'stripe_current_period_end': 'stripeCurrentPeriodEnd', + 'stripe_current_period_start': 'stripeCurrentPeriodStart', + 'billing_status': 'billingStatus', + 'usage': 'usage', + 'soft_limit': 'softLimit', + 'hard_limit': 'hardLimit' + } + + def __init__(self, api_key=None, subscription_started=None, period_started=None, period_ended=None, stripe_current_period_end=None, stripe_current_period_start=None, billing_status=None, usage=None, soft_limit=None, hard_limit=None): # noqa: E501 + """APIBillingPeriodUsageOut - a model defined in OpenAPI""" # noqa: E501 + + self._api_key = None + self._subscription_started = None + self._period_started = None + self._period_ended = None + self._stripe_current_period_end = None + self._stripe_current_period_start = None + self._billing_status = None + self._usage = None + self._soft_limit = None + self._hard_limit = None + self.discriminator = None + + if api_key is not None: + self.api_key = api_key + if subscription_started is not None: + self.subscription_started = subscription_started + if period_started is not None: + self.period_started = period_started + if period_ended is not None: + self.period_ended = period_ended + if stripe_current_period_end is not None: + self.stripe_current_period_end = stripe_current_period_end + if stripe_current_period_start is not None: + self.stripe_current_period_start = stripe_current_period_start + if billing_status is not None: + self.billing_status = billing_status + if usage is not None: + self.usage = usage + if soft_limit is not None: + self.soft_limit = soft_limit + if hard_limit is not None: + self.hard_limit = hard_limit + + @property + def api_key(self): + """Gets the api_key of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The api_key of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: str + """ + return self._api_key + + @api_key.setter + def api_key(self, api_key): + """Sets the api_key of this APIBillingPeriodUsageOut. + + + :param api_key: The api_key of this APIBillingPeriodUsageOut. # noqa: E501 + :type: str + """ + + self._api_key = api_key + + @property + def subscription_started(self): + """Gets the subscription_started of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The subscription_started of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._subscription_started + + @subscription_started.setter + def subscription_started(self, subscription_started): + """Sets the subscription_started of this APIBillingPeriodUsageOut. + + + :param subscription_started: The subscription_started of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._subscription_started = subscription_started + + @property + def period_started(self): + """Gets the period_started of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The period_started of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._period_started + + @period_started.setter + def period_started(self, period_started): + """Sets the period_started of this APIBillingPeriodUsageOut. + + + :param period_started: The period_started of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._period_started = period_started + + @property + def period_ended(self): + """Gets the period_ended of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The period_ended of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._period_ended + + @period_ended.setter + def period_ended(self, period_ended): + """Sets the period_ended of this APIBillingPeriodUsageOut. + + + :param period_ended: The period_ended of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._period_ended = period_ended + + @property + def stripe_current_period_end(self): + """Gets the stripe_current_period_end of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The stripe_current_period_end of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._stripe_current_period_end + + @stripe_current_period_end.setter + def stripe_current_period_end(self, stripe_current_period_end): + """Sets the stripe_current_period_end of this APIBillingPeriodUsageOut. + + + :param stripe_current_period_end: The stripe_current_period_end of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._stripe_current_period_end = stripe_current_period_end + + @property + def stripe_current_period_start(self): + """Gets the stripe_current_period_start of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The stripe_current_period_start of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._stripe_current_period_start + + @stripe_current_period_start.setter + def stripe_current_period_start(self, stripe_current_period_start): + """Sets the stripe_current_period_start of this APIBillingPeriodUsageOut. + + + :param stripe_current_period_start: The stripe_current_period_start of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._stripe_current_period_start = stripe_current_period_start + + @property + def billing_status(self): + """Gets the billing_status of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The billing_status of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: str + """ + return self._billing_status + + @billing_status.setter + def billing_status(self, billing_status): + """Sets the billing_status of this APIBillingPeriodUsageOut. + + + :param billing_status: The billing_status of this APIBillingPeriodUsageOut. # noqa: E501 + :type: str + """ + + self._billing_status = billing_status + + @property + def usage(self): + """Gets the usage of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The usage of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._usage + + @usage.setter + def usage(self, usage): + """Sets the usage of this APIBillingPeriodUsageOut. + + + :param usage: The usage of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._usage = usage + + @property + def soft_limit(self): + """Gets the soft_limit of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The soft_limit of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._soft_limit + + @soft_limit.setter + def soft_limit(self, soft_limit): + """Sets the soft_limit of this APIBillingPeriodUsageOut. + + + :param soft_limit: The soft_limit of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._soft_limit = soft_limit + + @property + def hard_limit(self): + """Gets the hard_limit of this APIBillingPeriodUsageOut. # noqa: E501 + + + :return: The hard_limit of this APIBillingPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._hard_limit + + @hard_limit.setter + def hard_limit(self, hard_limit): + """Sets the hard_limit of this APIBillingPeriodUsageOut. + + + :param hard_limit: The hard_limit of this APIBillingPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._hard_limit = hard_limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIBillingPeriodUsageOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_counter_v2_out.py b/openapi_client/com/namsor/sdk2/model/api_counter_v2_out.py new file mode 100644 index 0000000..813e397 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_counter_v2_out.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APICounterV2Out(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'api_key': 'APIKeyOut', + 'api_service': 'str', + 'created_date_time': 'int', + 'total_usage': 'int', + 'last_flushed_date_time': 'int', + 'last_used_date_time': 'int', + 'service_features_usage': 'dict(str, int)' + } + + attribute_map = { + 'api_key': 'apiKey', + 'api_service': 'apiService', + 'created_date_time': 'createdDateTime', + 'total_usage': 'totalUsage', + 'last_flushed_date_time': 'lastFlushedDateTime', + 'last_used_date_time': 'lastUsedDateTime', + 'service_features_usage': 'serviceFeaturesUsage' + } + + def __init__(self, api_key=None, api_service=None, created_date_time=None, total_usage=None, last_flushed_date_time=None, last_used_date_time=None, service_features_usage=None): # noqa: E501 + """APICounterV2Out - a model defined in OpenAPI""" # noqa: E501 + + self._api_key = None + self._api_service = None + self._created_date_time = None + self._total_usage = None + self._last_flushed_date_time = None + self._last_used_date_time = None + self._service_features_usage = None + self.discriminator = None + + if api_key is not None: + self.api_key = api_key + if api_service is not None: + self.api_service = api_service + if created_date_time is not None: + self.created_date_time = created_date_time + if total_usage is not None: + self.total_usage = total_usage + if last_flushed_date_time is not None: + self.last_flushed_date_time = last_flushed_date_time + if last_used_date_time is not None: + self.last_used_date_time = last_used_date_time + if service_features_usage is not None: + self.service_features_usage = service_features_usage + + @property + def api_key(self): + """Gets the api_key of this APICounterV2Out. # noqa: E501 + + + :return: The api_key of this APICounterV2Out. # noqa: E501 + :rtype: APIKeyOut + """ + return self._api_key + + @api_key.setter + def api_key(self, api_key): + """Sets the api_key of this APICounterV2Out. + + + :param api_key: The api_key of this APICounterV2Out. # noqa: E501 + :type: APIKeyOut + """ + + self._api_key = api_key + + @property + def api_service(self): + """Gets the api_service of this APICounterV2Out. # noqa: E501 + + + :return: The api_service of this APICounterV2Out. # noqa: E501 + :rtype: str + """ + return self._api_service + + @api_service.setter + def api_service(self, api_service): + """Sets the api_service of this APICounterV2Out. + + + :param api_service: The api_service of this APICounterV2Out. # noqa: E501 + :type: str + """ + + self._api_service = api_service + + @property + def created_date_time(self): + """Gets the created_date_time of this APICounterV2Out. # noqa: E501 + + + :return: The created_date_time of this APICounterV2Out. # noqa: E501 + :rtype: int + """ + return self._created_date_time + + @created_date_time.setter + def created_date_time(self, created_date_time): + """Sets the created_date_time of this APICounterV2Out. + + + :param created_date_time: The created_date_time of this APICounterV2Out. # noqa: E501 + :type: int + """ + + self._created_date_time = created_date_time + + @property + def total_usage(self): + """Gets the total_usage of this APICounterV2Out. # noqa: E501 + + + :return: The total_usage of this APICounterV2Out. # noqa: E501 + :rtype: int + """ + return self._total_usage + + @total_usage.setter + def total_usage(self, total_usage): + """Sets the total_usage of this APICounterV2Out. + + + :param total_usage: The total_usage of this APICounterV2Out. # noqa: E501 + :type: int + """ + + self._total_usage = total_usage + + @property + def last_flushed_date_time(self): + """Gets the last_flushed_date_time of this APICounterV2Out. # noqa: E501 + + + :return: The last_flushed_date_time of this APICounterV2Out. # noqa: E501 + :rtype: int + """ + return self._last_flushed_date_time + + @last_flushed_date_time.setter + def last_flushed_date_time(self, last_flushed_date_time): + """Sets the last_flushed_date_time of this APICounterV2Out. + + + :param last_flushed_date_time: The last_flushed_date_time of this APICounterV2Out. # noqa: E501 + :type: int + """ + + self._last_flushed_date_time = last_flushed_date_time + + @property + def last_used_date_time(self): + """Gets the last_used_date_time of this APICounterV2Out. # noqa: E501 + + + :return: The last_used_date_time of this APICounterV2Out. # noqa: E501 + :rtype: int + """ + return self._last_used_date_time + + @last_used_date_time.setter + def last_used_date_time(self, last_used_date_time): + """Sets the last_used_date_time of this APICounterV2Out. + + + :param last_used_date_time: The last_used_date_time of this APICounterV2Out. # noqa: E501 + :type: int + """ + + self._last_used_date_time = last_used_date_time + + @property + def service_features_usage(self): + """Gets the service_features_usage of this APICounterV2Out. # noqa: E501 + + + :return: The service_features_usage of this APICounterV2Out. # noqa: E501 + :rtype: dict(str, int) + """ + return self._service_features_usage + + @service_features_usage.setter + def service_features_usage(self, service_features_usage): + """Sets the service_features_usage of this APICounterV2Out. + + + :param service_features_usage: The service_features_usage of this APICounterV2Out. # noqa: E501 + :type: dict(str, int) + """ + + self._service_features_usage = service_features_usage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APICounterV2Out): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_key_out.py b/openapi_client/com/namsor/sdk2/model/api_key_out.py new file mode 100644 index 0000000..b0b6167 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_key_out.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIKeyOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'api_key': 'str', + 'user_id': 'str', + 'admin': 'bool', + 'vetted': 'bool', + 'partner': 'bool', + 'striped': 'bool', + 'corporate': 'bool', + 'disabled': 'bool' + } + + attribute_map = { + 'api_key': 'apiKey', + 'user_id': 'userId', + 'admin': 'admin', + 'vetted': 'vetted', + 'partner': 'partner', + 'striped': 'striped', + 'corporate': 'corporate', + 'disabled': 'disabled' + } + + def __init__(self, api_key=None, user_id=None, admin=None, vetted=None, partner=None, striped=None, corporate=None, disabled=None): # noqa: E501 + """APIKeyOut - a model defined in OpenAPI""" # noqa: E501 + + self._api_key = None + self._user_id = None + self._admin = None + self._vetted = None + self._partner = None + self._striped = None + self._corporate = None + self._disabled = None + self.discriminator = None + + if api_key is not None: + self.api_key = api_key + if user_id is not None: + self.user_id = user_id + if admin is not None: + self.admin = admin + if vetted is not None: + self.vetted = vetted + if partner is not None: + self.partner = partner + if striped is not None: + self.striped = striped + if corporate is not None: + self.corporate = corporate + if disabled is not None: + self.disabled = disabled + + @property + def api_key(self): + """Gets the api_key of this APIKeyOut. # noqa: E501 + + + :return: The api_key of this APIKeyOut. # noqa: E501 + :rtype: str + """ + return self._api_key + + @api_key.setter + def api_key(self, api_key): + """Sets the api_key of this APIKeyOut. + + + :param api_key: The api_key of this APIKeyOut. # noqa: E501 + :type: str + """ + + self._api_key = api_key + + @property + def user_id(self): + """Gets the user_id of this APIKeyOut. # noqa: E501 + + + :return: The user_id of this APIKeyOut. # noqa: E501 + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this APIKeyOut. + + + :param user_id: The user_id of this APIKeyOut. # noqa: E501 + :type: str + """ + + self._user_id = user_id + + @property + def admin(self): + """Gets the admin of this APIKeyOut. # noqa: E501 + + + :return: The admin of this APIKeyOut. # noqa: E501 + :rtype: bool + """ + return self._admin + + @admin.setter + def admin(self, admin): + """Sets the admin of this APIKeyOut. + + + :param admin: The admin of this APIKeyOut. # noqa: E501 + :type: bool + """ + + self._admin = admin + + @property + def vetted(self): + """Gets the vetted of this APIKeyOut. # noqa: E501 + + + :return: The vetted of this APIKeyOut. # noqa: E501 + :rtype: bool + """ + return self._vetted + + @vetted.setter + def vetted(self, vetted): + """Sets the vetted of this APIKeyOut. + + + :param vetted: The vetted of this APIKeyOut. # noqa: E501 + :type: bool + """ + + self._vetted = vetted + + @property + def partner(self): + """Gets the partner of this APIKeyOut. # noqa: E501 + + + :return: The partner of this APIKeyOut. # noqa: E501 + :rtype: bool + """ + return self._partner + + @partner.setter + def partner(self, partner): + """Sets the partner of this APIKeyOut. + + + :param partner: The partner of this APIKeyOut. # noqa: E501 + :type: bool + """ + + self._partner = partner + + @property + def striped(self): + """Gets the striped of this APIKeyOut. # noqa: E501 + + + :return: The striped of this APIKeyOut. # noqa: E501 + :rtype: bool + """ + return self._striped + + @striped.setter + def striped(self, striped): + """Sets the striped of this APIKeyOut. + + + :param striped: The striped of this APIKeyOut. # noqa: E501 + :type: bool + """ + + self._striped = striped + + @property + def corporate(self): + """Gets the corporate of this APIKeyOut. # noqa: E501 + + + :return: The corporate of this APIKeyOut. # noqa: E501 + :rtype: bool + """ + return self._corporate + + @corporate.setter + def corporate(self, corporate): + """Sets the corporate of this APIKeyOut. + + + :param corporate: The corporate of this APIKeyOut. # noqa: E501 + :type: bool + """ + + self._corporate = corporate + + @property + def disabled(self): + """Gets the disabled of this APIKeyOut. # noqa: E501 + + + :return: The disabled of this APIKeyOut. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this APIKeyOut. + + + :param disabled: The disabled of this APIKeyOut. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIKeyOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_period_usage_out.py b/openapi_client/com/namsor/sdk2/model/api_period_usage_out.py new file mode 100644 index 0000000..81f9453 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_period_usage_out.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIPeriodUsageOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'subscription': 'APIPlanSubscriptionOut', + 'billing_period': 'APIBillingPeriodUsageOut', + 'overage_excl_tax': 'float', + 'overage_incl_tax': 'float', + 'overage_currency': 'str', + 'overage_quantity': 'int' + } + + attribute_map = { + 'subscription': 'subscription', + 'billing_period': 'billingPeriod', + 'overage_excl_tax': 'overageExclTax', + 'overage_incl_tax': 'overageInclTax', + 'overage_currency': 'overageCurrency', + 'overage_quantity': 'overageQuantity' + } + + def __init__(self, subscription=None, billing_period=None, overage_excl_tax=None, overage_incl_tax=None, overage_currency=None, overage_quantity=None): # noqa: E501 + """APIPeriodUsageOut - a model defined in OpenAPI""" # noqa: E501 + + self._subscription = None + self._billing_period = None + self._overage_excl_tax = None + self._overage_incl_tax = None + self._overage_currency = None + self._overage_quantity = None + self.discriminator = None + + if subscription is not None: + self.subscription = subscription + if billing_period is not None: + self.billing_period = billing_period + if overage_excl_tax is not None: + self.overage_excl_tax = overage_excl_tax + if overage_incl_tax is not None: + self.overage_incl_tax = overage_incl_tax + if overage_currency is not None: + self.overage_currency = overage_currency + if overage_quantity is not None: + self.overage_quantity = overage_quantity + + @property + def subscription(self): + """Gets the subscription of this APIPeriodUsageOut. # noqa: E501 + + + :return: The subscription of this APIPeriodUsageOut. # noqa: E501 + :rtype: APIPlanSubscriptionOut + """ + return self._subscription + + @subscription.setter + def subscription(self, subscription): + """Sets the subscription of this APIPeriodUsageOut. + + + :param subscription: The subscription of this APIPeriodUsageOut. # noqa: E501 + :type: APIPlanSubscriptionOut + """ + + self._subscription = subscription + + @property + def billing_period(self): + """Gets the billing_period of this APIPeriodUsageOut. # noqa: E501 + + + :return: The billing_period of this APIPeriodUsageOut. # noqa: E501 + :rtype: APIBillingPeriodUsageOut + """ + return self._billing_period + + @billing_period.setter + def billing_period(self, billing_period): + """Sets the billing_period of this APIPeriodUsageOut. + + + :param billing_period: The billing_period of this APIPeriodUsageOut. # noqa: E501 + :type: APIBillingPeriodUsageOut + """ + + self._billing_period = billing_period + + @property + def overage_excl_tax(self): + """Gets the overage_excl_tax of this APIPeriodUsageOut. # noqa: E501 + + + :return: The overage_excl_tax of this APIPeriodUsageOut. # noqa: E501 + :rtype: float + """ + return self._overage_excl_tax + + @overage_excl_tax.setter + def overage_excl_tax(self, overage_excl_tax): + """Sets the overage_excl_tax of this APIPeriodUsageOut. + + + :param overage_excl_tax: The overage_excl_tax of this APIPeriodUsageOut. # noqa: E501 + :type: float + """ + + self._overage_excl_tax = overage_excl_tax + + @property + def overage_incl_tax(self): + """Gets the overage_incl_tax of this APIPeriodUsageOut. # noqa: E501 + + + :return: The overage_incl_tax of this APIPeriodUsageOut. # noqa: E501 + :rtype: float + """ + return self._overage_incl_tax + + @overage_incl_tax.setter + def overage_incl_tax(self, overage_incl_tax): + """Sets the overage_incl_tax of this APIPeriodUsageOut. + + + :param overage_incl_tax: The overage_incl_tax of this APIPeriodUsageOut. # noqa: E501 + :type: float + """ + + self._overage_incl_tax = overage_incl_tax + + @property + def overage_currency(self): + """Gets the overage_currency of this APIPeriodUsageOut. # noqa: E501 + + + :return: The overage_currency of this APIPeriodUsageOut. # noqa: E501 + :rtype: str + """ + return self._overage_currency + + @overage_currency.setter + def overage_currency(self, overage_currency): + """Sets the overage_currency of this APIPeriodUsageOut. + + + :param overage_currency: The overage_currency of this APIPeriodUsageOut. # noqa: E501 + :type: str + """ + + self._overage_currency = overage_currency + + @property + def overage_quantity(self): + """Gets the overage_quantity of this APIPeriodUsageOut. # noqa: E501 + + + :return: The overage_quantity of this APIPeriodUsageOut. # noqa: E501 + :rtype: int + """ + return self._overage_quantity + + @overage_quantity.setter + def overage_quantity(self, overage_quantity): + """Sets the overage_quantity of this APIPeriodUsageOut. + + + :param overage_quantity: The overage_quantity of this APIPeriodUsageOut. # noqa: E501 + :type: int + """ + + self._overage_quantity = overage_quantity + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIPeriodUsageOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_plan_out.py b/openapi_client/com/namsor/sdk2/model/api_plan_out.py new file mode 100644 index 0000000..16d425b --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_plan_out.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIPlanOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'plan_name': 'str', + 'plan_quota': 'int', + 'price': 'float', + 'price_overage': 'float' + } + + attribute_map = { + 'plan_name': 'planName', + 'plan_quota': 'planQuota', + 'price': 'price', + 'price_overage': 'priceOverage' + } + + def __init__(self, plan_name=None, plan_quota=None, price=None, price_overage=None): # noqa: E501 + """APIPlanOut - a model defined in OpenAPI""" # noqa: E501 + + self._plan_name = None + self._plan_quota = None + self._price = None + self._price_overage = None + self.discriminator = None + + if plan_name is not None: + self.plan_name = plan_name + if plan_quota is not None: + self.plan_quota = plan_quota + if price is not None: + self.price = price + if price_overage is not None: + self.price_overage = price_overage + + @property + def plan_name(self): + """Gets the plan_name of this APIPlanOut. # noqa: E501 + + + :return: The plan_name of this APIPlanOut. # noqa: E501 + :rtype: str + """ + return self._plan_name + + @plan_name.setter + def plan_name(self, plan_name): + """Sets the plan_name of this APIPlanOut. + + + :param plan_name: The plan_name of this APIPlanOut. # noqa: E501 + :type: str + """ + + self._plan_name = plan_name + + @property + def plan_quota(self): + """Gets the plan_quota of this APIPlanOut. # noqa: E501 + + + :return: The plan_quota of this APIPlanOut. # noqa: E501 + :rtype: int + """ + return self._plan_quota + + @plan_quota.setter + def plan_quota(self, plan_quota): + """Sets the plan_quota of this APIPlanOut. + + + :param plan_quota: The plan_quota of this APIPlanOut. # noqa: E501 + :type: int + """ + + self._plan_quota = plan_quota + + @property + def price(self): + """Gets the price of this APIPlanOut. # noqa: E501 + + + :return: The price of this APIPlanOut. # noqa: E501 + :rtype: float + """ + return self._price + + @price.setter + def price(self, price): + """Sets the price of this APIPlanOut. + + + :param price: The price of this APIPlanOut. # noqa: E501 + :type: float + """ + + self._price = price + + @property + def price_overage(self): + """Gets the price_overage of this APIPlanOut. # noqa: E501 + + + :return: The price_overage of this APIPlanOut. # noqa: E501 + :rtype: float + """ + return self._price_overage + + @price_overage.setter + def price_overage(self, price_overage): + """Sets the price_overage of this APIPlanOut. + + + :param price_overage: The price_overage of this APIPlanOut. # noqa: E501 + :type: float + """ + + self._price_overage = price_overage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIPlanOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_plan_subscription_out.py b/openapi_client/com/namsor/sdk2/model/api_plan_subscription_out.py new file mode 100644 index 0000000..9794603 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_plan_subscription_out.py @@ -0,0 +1,581 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIPlanSubscriptionOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'api_key': 'str', + 'plan_started': 'int', + 'prior_plan_started': 'int', + 'plan_ended': 'int', + 'tax_rate': 'float', + 'plan_name': 'str', + 'plan_base_fees_key': 'str', + 'plan_status': 'str', + 'plan_quota': 'int', + 'price_usd': 'float', + 'price_overage_usd': 'float', + 'price': 'float', + 'price_overage': 'float', + 'currency': 'str', + 'currency_factor': 'float', + 'stripe_customer_id': 'str', + 'stripe_status': 'str', + 'stripe_subscription': 'str', + 'user_id': 'str' + } + + attribute_map = { + 'api_key': 'apiKey', + 'plan_started': 'planStarted', + 'prior_plan_started': 'priorPlanStarted', + 'plan_ended': 'planEnded', + 'tax_rate': 'taxRate', + 'plan_name': 'planName', + 'plan_base_fees_key': 'planBaseFeesKey', + 'plan_status': 'planStatus', + 'plan_quota': 'planQuota', + 'price_usd': 'priceUSD', + 'price_overage_usd': 'priceOverageUSD', + 'price': 'price', + 'price_overage': 'priceOverage', + 'currency': 'currency', + 'currency_factor': 'currencyFactor', + 'stripe_customer_id': 'stripeCustomerId', + 'stripe_status': 'stripeStatus', + 'stripe_subscription': 'stripeSubscription', + 'user_id': 'userId' + } + + def __init__(self, api_key=None, plan_started=None, prior_plan_started=None, plan_ended=None, tax_rate=None, plan_name=None, plan_base_fees_key=None, plan_status=None, plan_quota=None, price_usd=None, price_overage_usd=None, price=None, price_overage=None, currency=None, currency_factor=None, stripe_customer_id=None, stripe_status=None, stripe_subscription=None, user_id=None): # noqa: E501 + """APIPlanSubscriptionOut - a model defined in OpenAPI""" # noqa: E501 + + self._api_key = None + self._plan_started = None + self._prior_plan_started = None + self._plan_ended = None + self._tax_rate = None + self._plan_name = None + self._plan_base_fees_key = None + self._plan_status = None + self._plan_quota = None + self._price_usd = None + self._price_overage_usd = None + self._price = None + self._price_overage = None + self._currency = None + self._currency_factor = None + self._stripe_customer_id = None + self._stripe_status = None + self._stripe_subscription = None + self._user_id = None + self.discriminator = None + + if api_key is not None: + self.api_key = api_key + if plan_started is not None: + self.plan_started = plan_started + if prior_plan_started is not None: + self.prior_plan_started = prior_plan_started + if plan_ended is not None: + self.plan_ended = plan_ended + if tax_rate is not None: + self.tax_rate = tax_rate + if plan_name is not None: + self.plan_name = plan_name + if plan_base_fees_key is not None: + self.plan_base_fees_key = plan_base_fees_key + if plan_status is not None: + self.plan_status = plan_status + if plan_quota is not None: + self.plan_quota = plan_quota + if price_usd is not None: + self.price_usd = price_usd + if price_overage_usd is not None: + self.price_overage_usd = price_overage_usd + if price is not None: + self.price = price + if price_overage is not None: + self.price_overage = price_overage + if currency is not None: + self.currency = currency + if currency_factor is not None: + self.currency_factor = currency_factor + if stripe_customer_id is not None: + self.stripe_customer_id = stripe_customer_id + if stripe_status is not None: + self.stripe_status = stripe_status + if stripe_subscription is not None: + self.stripe_subscription = stripe_subscription + if user_id is not None: + self.user_id = user_id + + @property + def api_key(self): + """Gets the api_key of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The api_key of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._api_key + + @api_key.setter + def api_key(self, api_key): + """Sets the api_key of this APIPlanSubscriptionOut. + + + :param api_key: The api_key of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._api_key = api_key + + @property + def plan_started(self): + """Gets the plan_started of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The plan_started of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: int + """ + return self._plan_started + + @plan_started.setter + def plan_started(self, plan_started): + """Sets the plan_started of this APIPlanSubscriptionOut. + + + :param plan_started: The plan_started of this APIPlanSubscriptionOut. # noqa: E501 + :type: int + """ + + self._plan_started = plan_started + + @property + def prior_plan_started(self): + """Gets the prior_plan_started of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The prior_plan_started of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: int + """ + return self._prior_plan_started + + @prior_plan_started.setter + def prior_plan_started(self, prior_plan_started): + """Sets the prior_plan_started of this APIPlanSubscriptionOut. + + + :param prior_plan_started: The prior_plan_started of this APIPlanSubscriptionOut. # noqa: E501 + :type: int + """ + + self._prior_plan_started = prior_plan_started + + @property + def plan_ended(self): + """Gets the plan_ended of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The plan_ended of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: int + """ + return self._plan_ended + + @plan_ended.setter + def plan_ended(self, plan_ended): + """Sets the plan_ended of this APIPlanSubscriptionOut. + + + :param plan_ended: The plan_ended of this APIPlanSubscriptionOut. # noqa: E501 + :type: int + """ + + self._plan_ended = plan_ended + + @property + def tax_rate(self): + """Gets the tax_rate of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The tax_rate of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: float + """ + return self._tax_rate + + @tax_rate.setter + def tax_rate(self, tax_rate): + """Sets the tax_rate of this APIPlanSubscriptionOut. + + + :param tax_rate: The tax_rate of this APIPlanSubscriptionOut. # noqa: E501 + :type: float + """ + + self._tax_rate = tax_rate + + @property + def plan_name(self): + """Gets the plan_name of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The plan_name of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._plan_name + + @plan_name.setter + def plan_name(self, plan_name): + """Sets the plan_name of this APIPlanSubscriptionOut. + + + :param plan_name: The plan_name of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._plan_name = plan_name + + @property + def plan_base_fees_key(self): + """Gets the plan_base_fees_key of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The plan_base_fees_key of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._plan_base_fees_key + + @plan_base_fees_key.setter + def plan_base_fees_key(self, plan_base_fees_key): + """Sets the plan_base_fees_key of this APIPlanSubscriptionOut. + + + :param plan_base_fees_key: The plan_base_fees_key of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._plan_base_fees_key = plan_base_fees_key + + @property + def plan_status(self): + """Gets the plan_status of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The plan_status of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._plan_status + + @plan_status.setter + def plan_status(self, plan_status): + """Sets the plan_status of this APIPlanSubscriptionOut. + + + :param plan_status: The plan_status of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._plan_status = plan_status + + @property + def plan_quota(self): + """Gets the plan_quota of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The plan_quota of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: int + """ + return self._plan_quota + + @plan_quota.setter + def plan_quota(self, plan_quota): + """Sets the plan_quota of this APIPlanSubscriptionOut. + + + :param plan_quota: The plan_quota of this APIPlanSubscriptionOut. # noqa: E501 + :type: int + """ + + self._plan_quota = plan_quota + + @property + def price_usd(self): + """Gets the price_usd of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The price_usd of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: float + """ + return self._price_usd + + @price_usd.setter + def price_usd(self, price_usd): + """Sets the price_usd of this APIPlanSubscriptionOut. + + + :param price_usd: The price_usd of this APIPlanSubscriptionOut. # noqa: E501 + :type: float + """ + + self._price_usd = price_usd + + @property + def price_overage_usd(self): + """Gets the price_overage_usd of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The price_overage_usd of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: float + """ + return self._price_overage_usd + + @price_overage_usd.setter + def price_overage_usd(self, price_overage_usd): + """Sets the price_overage_usd of this APIPlanSubscriptionOut. + + + :param price_overage_usd: The price_overage_usd of this APIPlanSubscriptionOut. # noqa: E501 + :type: float + """ + + self._price_overage_usd = price_overage_usd + + @property + def price(self): + """Gets the price of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The price of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: float + """ + return self._price + + @price.setter + def price(self, price): + """Sets the price of this APIPlanSubscriptionOut. + + + :param price: The price of this APIPlanSubscriptionOut. # noqa: E501 + :type: float + """ + + self._price = price + + @property + def price_overage(self): + """Gets the price_overage of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The price_overage of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: float + """ + return self._price_overage + + @price_overage.setter + def price_overage(self, price_overage): + """Sets the price_overage of this APIPlanSubscriptionOut. + + + :param price_overage: The price_overage of this APIPlanSubscriptionOut. # noqa: E501 + :type: float + """ + + self._price_overage = price_overage + + @property + def currency(self): + """Gets the currency of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The currency of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """Sets the currency of this APIPlanSubscriptionOut. + + + :param currency: The currency of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._currency = currency + + @property + def currency_factor(self): + """Gets the currency_factor of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The currency_factor of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: float + """ + return self._currency_factor + + @currency_factor.setter + def currency_factor(self, currency_factor): + """Sets the currency_factor of this APIPlanSubscriptionOut. + + + :param currency_factor: The currency_factor of this APIPlanSubscriptionOut. # noqa: E501 + :type: float + """ + + self._currency_factor = currency_factor + + @property + def stripe_customer_id(self): + """Gets the stripe_customer_id of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The stripe_customer_id of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._stripe_customer_id + + @stripe_customer_id.setter + def stripe_customer_id(self, stripe_customer_id): + """Sets the stripe_customer_id of this APIPlanSubscriptionOut. + + + :param stripe_customer_id: The stripe_customer_id of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._stripe_customer_id = stripe_customer_id + + @property + def stripe_status(self): + """Gets the stripe_status of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The stripe_status of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._stripe_status + + @stripe_status.setter + def stripe_status(self, stripe_status): + """Sets the stripe_status of this APIPlanSubscriptionOut. + + + :param stripe_status: The stripe_status of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._stripe_status = stripe_status + + @property + def stripe_subscription(self): + """Gets the stripe_subscription of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The stripe_subscription of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._stripe_subscription + + @stripe_subscription.setter + def stripe_subscription(self, stripe_subscription): + """Sets the stripe_subscription of this APIPlanSubscriptionOut. + + + :param stripe_subscription: The stripe_subscription of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._stripe_subscription = stripe_subscription + + @property + def user_id(self): + """Gets the user_id of this APIPlanSubscriptionOut. # noqa: E501 + + + :return: The user_id of this APIPlanSubscriptionOut. # noqa: E501 + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this APIPlanSubscriptionOut. + + + :param user_id: The user_id of this APIPlanSubscriptionOut. # noqa: E501 + :type: str + """ + + self._user_id = user_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIPlanSubscriptionOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_plans_out.py b/openapi_client/com/namsor/sdk2/model/api_plans_out.py new file mode 100644 index 0000000..627b9a3 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_plans_out.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIPlansOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'usage_ratio_for_dupplicates': 'int', + 'currency_iso3': 'str', + 'currency_symbol': 'str', + 'plans': 'list[APIPlanOut]' + } + + attribute_map = { + 'usage_ratio_for_dupplicates': 'usageRatioForDupplicates', + 'currency_iso3': 'currencyIso3', + 'currency_symbol': 'currencySymbol', + 'plans': 'plans' + } + + def __init__(self, usage_ratio_for_dupplicates=None, currency_iso3=None, currency_symbol=None, plans=None): # noqa: E501 + """APIPlansOut - a model defined in OpenAPI""" # noqa: E501 + + self._usage_ratio_for_dupplicates = None + self._currency_iso3 = None + self._currency_symbol = None + self._plans = None + self.discriminator = None + + if usage_ratio_for_dupplicates is not None: + self.usage_ratio_for_dupplicates = usage_ratio_for_dupplicates + if currency_iso3 is not None: + self.currency_iso3 = currency_iso3 + if currency_symbol is not None: + self.currency_symbol = currency_symbol + if plans is not None: + self.plans = plans + + @property + def usage_ratio_for_dupplicates(self): + """Gets the usage_ratio_for_dupplicates of this APIPlansOut. # noqa: E501 + + + :return: The usage_ratio_for_dupplicates of this APIPlansOut. # noqa: E501 + :rtype: int + """ + return self._usage_ratio_for_dupplicates + + @usage_ratio_for_dupplicates.setter + def usage_ratio_for_dupplicates(self, usage_ratio_for_dupplicates): + """Sets the usage_ratio_for_dupplicates of this APIPlansOut. + + + :param usage_ratio_for_dupplicates: The usage_ratio_for_dupplicates of this APIPlansOut. # noqa: E501 + :type: int + """ + + self._usage_ratio_for_dupplicates = usage_ratio_for_dupplicates + + @property + def currency_iso3(self): + """Gets the currency_iso3 of this APIPlansOut. # noqa: E501 + + + :return: The currency_iso3 of this APIPlansOut. # noqa: E501 + :rtype: str + """ + return self._currency_iso3 + + @currency_iso3.setter + def currency_iso3(self, currency_iso3): + """Sets the currency_iso3 of this APIPlansOut. + + + :param currency_iso3: The currency_iso3 of this APIPlansOut. # noqa: E501 + :type: str + """ + + self._currency_iso3 = currency_iso3 + + @property + def currency_symbol(self): + """Gets the currency_symbol of this APIPlansOut. # noqa: E501 + + + :return: The currency_symbol of this APIPlansOut. # noqa: E501 + :rtype: str + """ + return self._currency_symbol + + @currency_symbol.setter + def currency_symbol(self, currency_symbol): + """Sets the currency_symbol of this APIPlansOut. + + + :param currency_symbol: The currency_symbol of this APIPlansOut. # noqa: E501 + :type: str + """ + + self._currency_symbol = currency_symbol + + @property + def plans(self): + """Gets the plans of this APIPlansOut. # noqa: E501 + + + :return: The plans of this APIPlansOut. # noqa: E501 + :rtype: list[APIPlanOut] + """ + return self._plans + + @plans.setter + def plans(self, plans): + """Sets the plans of this APIPlansOut. + + + :param plans: The plans of this APIPlansOut. # noqa: E501 + :type: list[APIPlanOut] + """ + + self._plans = plans + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIPlansOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_service_out.py b/openapi_client/com/namsor/sdk2/model/api_service_out.py new file mode 100644 index 0000000..5341d19 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_service_out.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIServiceOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'service_name': 'str', + 'service_group': 'str', + 'cost_in_units': 'int' + } + + attribute_map = { + 'service_name': 'serviceName', + 'service_group': 'serviceGroup', + 'cost_in_units': 'costInUnits' + } + + def __init__(self, service_name=None, service_group=None, cost_in_units=None): # noqa: E501 + """APIServiceOut - a model defined in OpenAPI""" # noqa: E501 + + self._service_name = None + self._service_group = None + self._cost_in_units = None + self.discriminator = None + + if service_name is not None: + self.service_name = service_name + if service_group is not None: + self.service_group = service_group + if cost_in_units is not None: + self.cost_in_units = cost_in_units + + @property + def service_name(self): + """Gets the service_name of this APIServiceOut. # noqa: E501 + + + :return: The service_name of this APIServiceOut. # noqa: E501 + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """Sets the service_name of this APIServiceOut. + + + :param service_name: The service_name of this APIServiceOut. # noqa: E501 + :type: str + """ + + self._service_name = service_name + + @property + def service_group(self): + """Gets the service_group of this APIServiceOut. # noqa: E501 + + + :return: The service_group of this APIServiceOut. # noqa: E501 + :rtype: str + """ + return self._service_group + + @service_group.setter + def service_group(self, service_group): + """Sets the service_group of this APIServiceOut. + + + :param service_group: The service_group of this APIServiceOut. # noqa: E501 + :type: str + """ + + self._service_group = service_group + + @property + def cost_in_units(self): + """Gets the cost_in_units of this APIServiceOut. # noqa: E501 + + + :return: The cost_in_units of this APIServiceOut. # noqa: E501 + :rtype: int + """ + return self._cost_in_units + + @cost_in_units.setter + def cost_in_units(self, cost_in_units): + """Sets the cost_in_units of this APIServiceOut. + + + :param cost_in_units: The cost_in_units of this APIServiceOut. # noqa: E501 + :type: int + """ + + self._cost_in_units = cost_in_units + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIServiceOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_services_out.py b/openapi_client/com/namsor/sdk2/model/api_services_out.py new file mode 100644 index 0000000..fcbe5c9 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_services_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIServicesOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'api_services': 'list[APIServiceOut]' + } + + attribute_map = { + 'api_services': 'apiServices' + } + + def __init__(self, api_services=None): # noqa: E501 + """APIServicesOut - a model defined in OpenAPI""" # noqa: E501 + + self._api_services = None + self.discriminator = None + + if api_services is not None: + self.api_services = api_services + + @property + def api_services(self): + """Gets the api_services of this APIServicesOut. # noqa: E501 + + + :return: The api_services of this APIServicesOut. # noqa: E501 + :rtype: list[APIServiceOut] + """ + return self._api_services + + @api_services.setter + def api_services(self, api_services): + """Sets the api_services of this APIServicesOut. + + + :param api_services: The api_services of this APIServicesOut. # noqa: E501 + :type: list[APIServiceOut] + """ + + self._api_services = api_services + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIServicesOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/api_usage_aggregated_out.py b/openapi_client/com/namsor/sdk2/model/api_usage_aggregated_out.py new file mode 100644 index 0000000..8ee8794 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/api_usage_aggregated_out.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class APIUsageAggregatedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'time_unit': 'str', + 'period_start': 'int', + 'period_end': 'int', + 'total_usage': 'int', + 'history_truncated': 'bool', + 'data': 'list[list[int]]', + 'col_headers': 'list[str]', + 'row_headers': 'list[str]' + } + + attribute_map = { + 'time_unit': 'timeUnit', + 'period_start': 'periodStart', + 'period_end': 'periodEnd', + 'total_usage': 'totalUsage', + 'history_truncated': 'historyTruncated', + 'data': 'data', + 'col_headers': 'colHeaders', + 'row_headers': 'rowHeaders' + } + + def __init__(self, time_unit=None, period_start=None, period_end=None, total_usage=None, history_truncated=None, data=None, col_headers=None, row_headers=None): # noqa: E501 + """APIUsageAggregatedOut - a model defined in OpenAPI""" # noqa: E501 + + self._time_unit = None + self._period_start = None + self._period_end = None + self._total_usage = None + self._history_truncated = None + self._data = None + self._col_headers = None + self._row_headers = None + self.discriminator = None + + if time_unit is not None: + self.time_unit = time_unit + if period_start is not None: + self.period_start = period_start + if period_end is not None: + self.period_end = period_end + if total_usage is not None: + self.total_usage = total_usage + if history_truncated is not None: + self.history_truncated = history_truncated + if data is not None: + self.data = data + if col_headers is not None: + self.col_headers = col_headers + if row_headers is not None: + self.row_headers = row_headers + + @property + def time_unit(self): + """Gets the time_unit of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The time_unit of this APIUsageAggregatedOut. # noqa: E501 + :rtype: str + """ + return self._time_unit + + @time_unit.setter + def time_unit(self, time_unit): + """Sets the time_unit of this APIUsageAggregatedOut. + + + :param time_unit: The time_unit of this APIUsageAggregatedOut. # noqa: E501 + :type: str + """ + + self._time_unit = time_unit + + @property + def period_start(self): + """Gets the period_start of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The period_start of this APIUsageAggregatedOut. # noqa: E501 + :rtype: int + """ + return self._period_start + + @period_start.setter + def period_start(self, period_start): + """Sets the period_start of this APIUsageAggregatedOut. + + + :param period_start: The period_start of this APIUsageAggregatedOut. # noqa: E501 + :type: int + """ + + self._period_start = period_start + + @property + def period_end(self): + """Gets the period_end of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The period_end of this APIUsageAggregatedOut. # noqa: E501 + :rtype: int + """ + return self._period_end + + @period_end.setter + def period_end(self, period_end): + """Sets the period_end of this APIUsageAggregatedOut. + + + :param period_end: The period_end of this APIUsageAggregatedOut. # noqa: E501 + :type: int + """ + + self._period_end = period_end + + @property + def total_usage(self): + """Gets the total_usage of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The total_usage of this APIUsageAggregatedOut. # noqa: E501 + :rtype: int + """ + return self._total_usage + + @total_usage.setter + def total_usage(self, total_usage): + """Sets the total_usage of this APIUsageAggregatedOut. + + + :param total_usage: The total_usage of this APIUsageAggregatedOut. # noqa: E501 + :type: int + """ + + self._total_usage = total_usage + + @property + def history_truncated(self): + """Gets the history_truncated of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The history_truncated of this APIUsageAggregatedOut. # noqa: E501 + :rtype: bool + """ + return self._history_truncated + + @history_truncated.setter + def history_truncated(self, history_truncated): + """Sets the history_truncated of this APIUsageAggregatedOut. + + + :param history_truncated: The history_truncated of this APIUsageAggregatedOut. # noqa: E501 + :type: bool + """ + + self._history_truncated = history_truncated + + @property + def data(self): + """Gets the data of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The data of this APIUsageAggregatedOut. # noqa: E501 + :rtype: list[list[int]] + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this APIUsageAggregatedOut. + + + :param data: The data of this APIUsageAggregatedOut. # noqa: E501 + :type: list[list[int]] + """ + + self._data = data + + @property + def col_headers(self): + """Gets the col_headers of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The col_headers of this APIUsageAggregatedOut. # noqa: E501 + :rtype: list[str] + """ + return self._col_headers + + @col_headers.setter + def col_headers(self, col_headers): + """Sets the col_headers of this APIUsageAggregatedOut. + + + :param col_headers: The col_headers of this APIUsageAggregatedOut. # noqa: E501 + :type: list[str] + """ + + self._col_headers = col_headers + + @property + def row_headers(self): + """Gets the row_headers of this APIUsageAggregatedOut. # noqa: E501 + + + :return: The row_headers of this APIUsageAggregatedOut. # noqa: E501 + :rtype: list[str] + """ + return self._row_headers + + @row_headers.setter + def row_headers(self, row_headers): + """Sets the row_headers of this APIUsageAggregatedOut. + + + :param row_headers: The row_headers of this APIUsageAggregatedOut. # noqa: E501 + :type: list[str] + """ + + self._row_headers = row_headers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, APIUsageAggregatedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_diasporaed_out.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_diasporaed_out.py new file mode 100644 index 0000000..7f7fe88 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_diasporaed_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameDiasporaedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameDiasporaedOut]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameDiasporaedOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameDiasporaedOut. # noqa: E501 + :rtype: list[FirstLastNameDiasporaedOut] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameDiasporaedOut. + + + :param personal_names: The personal_names of this BatchFirstLastNameDiasporaedOut. # noqa: E501 + :type: list[FirstLastNameDiasporaedOut] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameDiasporaedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_gender_in.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_gender_in.py new file mode 100644 index 0000000..3dc8cc3 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_gender_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameGenderIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameGenderIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameGenderIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameGenderIn. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameGenderIn. # noqa: E501 + :rtype: list[FirstLastNameGenderIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameGenderIn. + + + :param personal_names: The personal_names of this BatchFirstLastNameGenderIn. # noqa: E501 + :type: list[FirstLastNameGenderIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameGenderIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_gendered_out.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_gendered_out.py new file mode 100644 index 0000000..2c63e52 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_gendered_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameGenderedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameGenderedOut]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameGenderedOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameGenderedOut. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameGenderedOut. # noqa: E501 + :rtype: list[FirstLastNameGenderedOut] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameGenderedOut. + + + :param personal_names: The personal_names of this BatchFirstLastNameGenderedOut. # noqa: E501 + :type: list[FirstLastNameGenderedOut] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameGenderedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_in.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_in.py new file mode 100644 index 0000000..cf23014 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameGeoIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameGeoIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameGeoIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameGeoIn. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameGeoIn. # noqa: E501 + :rtype: list[FirstLastNameGeoIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameGeoIn. + + + :param personal_names: The personal_names of this BatchFirstLastNameGeoIn. # noqa: E501 + :type: list[FirstLastNameGeoIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameGeoIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_zipped_in.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_zipped_in.py new file mode 100644 index 0000000..81fab5e --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_geo_zipped_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameGeoZippedIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameGeoZippedIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameGeoZippedIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameGeoZippedIn. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameGeoZippedIn. # noqa: E501 + :rtype: list[FirstLastNameGeoZippedIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameGeoZippedIn. + + + :param personal_names: The personal_names of this BatchFirstLastNameGeoZippedIn. # noqa: E501 + :type: list[FirstLastNameGeoZippedIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameGeoZippedIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_in.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_in.py new file mode 100644 index 0000000..394b70d --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameIn. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameIn. # noqa: E501 + :rtype: list[FirstLastNameIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameIn. + + + :param personal_names: The personal_names of this BatchFirstLastNameIn. # noqa: E501 + :type: list[FirstLastNameIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_origined_out.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_origined_out.py new file mode 100644 index 0000000..fd519c4 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_origined_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameOriginedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameOriginedOut]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameOriginedOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameOriginedOut. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameOriginedOut. # noqa: E501 + :rtype: list[FirstLastNameOriginedOut] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameOriginedOut. + + + :param personal_names: The personal_names of this BatchFirstLastNameOriginedOut. # noqa: E501 + :type: list[FirstLastNameOriginedOut] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameOriginedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_coded_out.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_coded_out.py new file mode 100644 index 0000000..00ea4c1 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_coded_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNamePhoneCodedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names_with_phone_numbers': 'list[FirstLastNamePhoneCodedOut]' + } + + attribute_map = { + 'personal_names_with_phone_numbers': 'personalNamesWithPhoneNumbers' + } + + def __init__(self, personal_names_with_phone_numbers=None): # noqa: E501 + """BatchFirstLastNamePhoneCodedOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names_with_phone_numbers = None + self.discriminator = None + + if personal_names_with_phone_numbers is not None: + self.personal_names_with_phone_numbers = personal_names_with_phone_numbers + + @property + def personal_names_with_phone_numbers(self): + """Gets the personal_names_with_phone_numbers of this BatchFirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The personal_names_with_phone_numbers of this BatchFirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: list[FirstLastNamePhoneCodedOut] + """ + return self._personal_names_with_phone_numbers + + @personal_names_with_phone_numbers.setter + def personal_names_with_phone_numbers(self, personal_names_with_phone_numbers): + """Sets the personal_names_with_phone_numbers of this BatchFirstLastNamePhoneCodedOut. + + + :param personal_names_with_phone_numbers: The personal_names_with_phone_numbers of this BatchFirstLastNamePhoneCodedOut. # noqa: E501 + :type: list[FirstLastNamePhoneCodedOut] + """ + + self._personal_names_with_phone_numbers = personal_names_with_phone_numbers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNamePhoneCodedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_number_in.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_number_in.py new file mode 100644 index 0000000..d5eb84c --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_phone_number_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNamePhoneNumberIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names_with_phone_numbers': 'list[FirstLastNamePhoneNumberIn]' + } + + attribute_map = { + 'personal_names_with_phone_numbers': 'personalNamesWithPhoneNumbers' + } + + def __init__(self, personal_names_with_phone_numbers=None): # noqa: E501 + """BatchFirstLastNamePhoneNumberIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names_with_phone_numbers = None + self.discriminator = None + + if personal_names_with_phone_numbers is not None: + self.personal_names_with_phone_numbers = personal_names_with_phone_numbers + + @property + def personal_names_with_phone_numbers(self): + """Gets the personal_names_with_phone_numbers of this BatchFirstLastNamePhoneNumberIn. # noqa: E501 + + + :return: The personal_names_with_phone_numbers of this BatchFirstLastNamePhoneNumberIn. # noqa: E501 + :rtype: list[FirstLastNamePhoneNumberIn] + """ + return self._personal_names_with_phone_numbers + + @personal_names_with_phone_numbers.setter + def personal_names_with_phone_numbers(self, personal_names_with_phone_numbers): + """Sets the personal_names_with_phone_numbers of this BatchFirstLastNamePhoneNumberIn. + + + :param personal_names_with_phone_numbers: The personal_names_with_phone_numbers of this BatchFirstLastNamePhoneNumberIn. # noqa: E501 + :type: list[FirstLastNamePhoneNumberIn] + """ + + self._personal_names_with_phone_numbers = personal_names_with_phone_numbers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNamePhoneNumberIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_first_last_name_us_race_ethnicity_out.py b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_us_race_ethnicity_out.py new file mode 100644 index 0000000..8977e3a --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_first_last_name_us_race_ethnicity_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchFirstLastNameUSRaceEthnicityOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[FirstLastNameUSRaceEthnicityOut]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchFirstLastNameUSRaceEthnicityOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchFirstLastNameUSRaceEthnicityOut. # noqa: E501 + + + :return: The personal_names of this BatchFirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: list[FirstLastNameUSRaceEthnicityOut] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchFirstLastNameUSRaceEthnicityOut. + + + :param personal_names: The personal_names of this BatchFirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: list[FirstLastNameUSRaceEthnicityOut] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchFirstLastNameUSRaceEthnicityOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_name_match_candidates_out.py b/openapi_client/com/namsor/sdk2/model/batch_name_match_candidates_out.py new file mode 100644 index 0000000..af02b07 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_name_match_candidates_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchNameMatchCandidatesOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'names_and_match_candidates': 'list[NameMatchCandidatesOut]' + } + + attribute_map = { + 'names_and_match_candidates': 'namesAndMatchCandidates' + } + + def __init__(self, names_and_match_candidates=None): # noqa: E501 + """BatchNameMatchCandidatesOut - a model defined in OpenAPI""" # noqa: E501 + + self._names_and_match_candidates = None + self.discriminator = None + + if names_and_match_candidates is not None: + self.names_and_match_candidates = names_and_match_candidates + + @property + def names_and_match_candidates(self): + """Gets the names_and_match_candidates of this BatchNameMatchCandidatesOut. # noqa: E501 + + + :return: The names_and_match_candidates of this BatchNameMatchCandidatesOut. # noqa: E501 + :rtype: list[NameMatchCandidatesOut] + """ + return self._names_and_match_candidates + + @names_and_match_candidates.setter + def names_and_match_candidates(self, names_and_match_candidates): + """Sets the names_and_match_candidates of this BatchNameMatchCandidatesOut. + + + :param names_and_match_candidates: The names_and_match_candidates of this BatchNameMatchCandidatesOut. # noqa: E501 + :type: list[NameMatchCandidatesOut] + """ + + self._names_and_match_candidates = names_and_match_candidates + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchNameMatchCandidatesOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_geo_in.py b/openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_geo_in.py new file mode 100644 index 0000000..4cd8c56 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_geo_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchParsedFullNameGeoIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[ParsedFullNameGeoIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchParsedFullNameGeoIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchParsedFullNameGeoIn. # noqa: E501 + + + :return: The personal_names of this BatchParsedFullNameGeoIn. # noqa: E501 + :rtype: list[ParsedFullNameGeoIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchParsedFullNameGeoIn. + + + :param personal_names: The personal_names of this BatchParsedFullNameGeoIn. # noqa: E501 + :type: list[ParsedFullNameGeoIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchParsedFullNameGeoIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_in.py b/openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_in.py new file mode 100644 index 0000000..74831e3 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_parsed_full_name_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchParsedFullNameIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[ParsedFullNameIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchParsedFullNameIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchParsedFullNameIn. # noqa: E501 + + + :return: The personal_names of this BatchParsedFullNameIn. # noqa: E501 + :rtype: list[ParsedFullNameIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchParsedFullNameIn. + + + :param personal_names: The personal_names of this BatchParsedFullNameIn. # noqa: E501 + :type: list[ParsedFullNameIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchParsedFullNameIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_personal_name_geo_out.py b/openapi_client/com/namsor/sdk2/model/batch_personal_name_geo_out.py new file mode 100644 index 0000000..285fd94 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_personal_name_geo_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchPersonalNameGeoOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[PersonalNameGeoOut]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchPersonalNameGeoOut - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchPersonalNameGeoOut. # noqa: E501 + + + :return: The personal_names of this BatchPersonalNameGeoOut. # noqa: E501 + :rtype: list[PersonalNameGeoOut] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchPersonalNameGeoOut. + + + :param personal_names: The personal_names of this BatchPersonalNameGeoOut. # noqa: E501 + :type: list[PersonalNameGeoOut] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchPersonalNameGeoOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/batch_personal_name_in.py b/openapi_client/com/namsor/sdk2/model/batch_personal_name_in.py new file mode 100644 index 0000000..8db70ed --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/batch_personal_name_in.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BatchPersonalNameIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'personal_names': 'list[PersonalNameIn]' + } + + attribute_map = { + 'personal_names': 'personalNames' + } + + def __init__(self, personal_names=None): # noqa: E501 + """BatchPersonalNameIn - a model defined in OpenAPI""" # noqa: E501 + + self._personal_names = None + self.discriminator = None + + if personal_names is not None: + self.personal_names = personal_names + + @property + def personal_names(self): + """Gets the personal_names of this BatchPersonalNameIn. # noqa: E501 + + + :return: The personal_names of this BatchPersonalNameIn. # noqa: E501 + :rtype: list[PersonalNameIn] + """ + return self._personal_names + + @personal_names.setter + def personal_names(self, personal_names): + """Sets the personal_names of this BatchPersonalNameIn. + + + :param personal_names: The personal_names of this BatchPersonalNameIn. # noqa: E501 + :type: list[PersonalNameIn] + """ + + self._personal_names = personal_names + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BatchPersonalNameIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/billing_history_out.py b/openapi_client/com/namsor/sdk2/model/billing_history_out.py new file mode 100644 index 0000000..d24e930 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/billing_history_out.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BillingHistoryOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stripe_invoices': 'list[InvoiceOut]', + 'corporate_invoices': 'list[InvoiceOut]' + } + + attribute_map = { + 'stripe_invoices': 'stripeInvoices', + 'corporate_invoices': 'corporateInvoices' + } + + def __init__(self, stripe_invoices=None, corporate_invoices=None): # noqa: E501 + """BillingHistoryOut - a model defined in OpenAPI""" # noqa: E501 + + self._stripe_invoices = None + self._corporate_invoices = None + self.discriminator = None + + if stripe_invoices is not None: + self.stripe_invoices = stripe_invoices + if corporate_invoices is not None: + self.corporate_invoices = corporate_invoices + + @property + def stripe_invoices(self): + """Gets the stripe_invoices of this BillingHistoryOut. # noqa: E501 + + + :return: The stripe_invoices of this BillingHistoryOut. # noqa: E501 + :rtype: list[InvoiceOut] + """ + return self._stripe_invoices + + @stripe_invoices.setter + def stripe_invoices(self, stripe_invoices): + """Sets the stripe_invoices of this BillingHistoryOut. + + + :param stripe_invoices: The stripe_invoices of this BillingHistoryOut. # noqa: E501 + :type: list[InvoiceOut] + """ + + self._stripe_invoices = stripe_invoices + + @property + def corporate_invoices(self): + """Gets the corporate_invoices of this BillingHistoryOut. # noqa: E501 + + + :return: The corporate_invoices of this BillingHistoryOut. # noqa: E501 + :rtype: list[InvoiceOut] + """ + return self._corporate_invoices + + @corporate_invoices.setter + def corporate_invoices(self, corporate_invoices): + """Sets the corporate_invoices of this BillingHistoryOut. + + + :param corporate_invoices: The corporate_invoices of this BillingHistoryOut. # noqa: E501 + :type: list[InvoiceOut] + """ + + self._corporate_invoices = corporate_invoices + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BillingHistoryOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/billing_info_in_out.py b/openapi_client/com/namsor/sdk2/model/billing_info_in_out.py new file mode 100644 index 0000000..776331a --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/billing_info_in_out.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BillingInfoInOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'billing_email': 'str', + 'preferred_currency': 'str', + 'customer_name': 'str', + 'customer_phone': 'str', + 'address_line1': 'str', + 'address_line2': 'str', + 'address_city': 'str', + 'address_postal_code': 'str', + 'address_state': 'str', + 'address_country': 'str', + 'vat_id': 'str' + } + + attribute_map = { + 'billing_email': 'billingEmail', + 'preferred_currency': 'preferredCurrency', + 'customer_name': 'customerName', + 'customer_phone': 'customerPhone', + 'address_line1': 'addressLine1', + 'address_line2': 'addressLine2', + 'address_city': 'addressCity', + 'address_postal_code': 'addressPostalCode', + 'address_state': 'addressState', + 'address_country': 'addressCountry', + 'vat_id': 'vatID' + } + + def __init__(self, billing_email=None, preferred_currency=None, customer_name=None, customer_phone=None, address_line1=None, address_line2=None, address_city=None, address_postal_code=None, address_state=None, address_country=None, vat_id=None): # noqa: E501 + """BillingInfoInOut - a model defined in OpenAPI""" # noqa: E501 + + self._billing_email = None + self._preferred_currency = None + self._customer_name = None + self._customer_phone = None + self._address_line1 = None + self._address_line2 = None + self._address_city = None + self._address_postal_code = None + self._address_state = None + self._address_country = None + self._vat_id = None + self.discriminator = None + + if billing_email is not None: + self.billing_email = billing_email + if preferred_currency is not None: + self.preferred_currency = preferred_currency + if customer_name is not None: + self.customer_name = customer_name + if customer_phone is not None: + self.customer_phone = customer_phone + if address_line1 is not None: + self.address_line1 = address_line1 + if address_line2 is not None: + self.address_line2 = address_line2 + if address_city is not None: + self.address_city = address_city + if address_postal_code is not None: + self.address_postal_code = address_postal_code + if address_state is not None: + self.address_state = address_state + if address_country is not None: + self.address_country = address_country + if vat_id is not None: + self.vat_id = vat_id + + @property + def billing_email(self): + """Gets the billing_email of this BillingInfoInOut. # noqa: E501 + + + :return: The billing_email of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._billing_email + + @billing_email.setter + def billing_email(self, billing_email): + """Sets the billing_email of this BillingInfoInOut. + + + :param billing_email: The billing_email of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._billing_email = billing_email + + @property + def preferred_currency(self): + """Gets the preferred_currency of this BillingInfoInOut. # noqa: E501 + + + :return: The preferred_currency of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._preferred_currency + + @preferred_currency.setter + def preferred_currency(self, preferred_currency): + """Sets the preferred_currency of this BillingInfoInOut. + + + :param preferred_currency: The preferred_currency of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._preferred_currency = preferred_currency + + @property + def customer_name(self): + """Gets the customer_name of this BillingInfoInOut. # noqa: E501 + + + :return: The customer_name of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._customer_name + + @customer_name.setter + def customer_name(self, customer_name): + """Sets the customer_name of this BillingInfoInOut. + + + :param customer_name: The customer_name of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._customer_name = customer_name + + @property + def customer_phone(self): + """Gets the customer_phone of this BillingInfoInOut. # noqa: E501 + + + :return: The customer_phone of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._customer_phone + + @customer_phone.setter + def customer_phone(self, customer_phone): + """Sets the customer_phone of this BillingInfoInOut. + + + :param customer_phone: The customer_phone of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._customer_phone = customer_phone + + @property + def address_line1(self): + """Gets the address_line1 of this BillingInfoInOut. # noqa: E501 + + + :return: The address_line1 of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._address_line1 + + @address_line1.setter + def address_line1(self, address_line1): + """Sets the address_line1 of this BillingInfoInOut. + + + :param address_line1: The address_line1 of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._address_line1 = address_line1 + + @property + def address_line2(self): + """Gets the address_line2 of this BillingInfoInOut. # noqa: E501 + + + :return: The address_line2 of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._address_line2 + + @address_line2.setter + def address_line2(self, address_line2): + """Sets the address_line2 of this BillingInfoInOut. + + + :param address_line2: The address_line2 of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._address_line2 = address_line2 + + @property + def address_city(self): + """Gets the address_city of this BillingInfoInOut. # noqa: E501 + + + :return: The address_city of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._address_city + + @address_city.setter + def address_city(self, address_city): + """Sets the address_city of this BillingInfoInOut. + + + :param address_city: The address_city of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._address_city = address_city + + @property + def address_postal_code(self): + """Gets the address_postal_code of this BillingInfoInOut. # noqa: E501 + + + :return: The address_postal_code of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._address_postal_code + + @address_postal_code.setter + def address_postal_code(self, address_postal_code): + """Sets the address_postal_code of this BillingInfoInOut. + + + :param address_postal_code: The address_postal_code of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._address_postal_code = address_postal_code + + @property + def address_state(self): + """Gets the address_state of this BillingInfoInOut. # noqa: E501 + + + :return: The address_state of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._address_state + + @address_state.setter + def address_state(self, address_state): + """Sets the address_state of this BillingInfoInOut. + + + :param address_state: The address_state of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._address_state = address_state + + @property + def address_country(self): + """Gets the address_country of this BillingInfoInOut. # noqa: E501 + + + :return: The address_country of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._address_country + + @address_country.setter + def address_country(self, address_country): + """Sets the address_country of this BillingInfoInOut. + + + :param address_country: The address_country of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._address_country = address_country + + @property + def vat_id(self): + """Gets the vat_id of this BillingInfoInOut. # noqa: E501 + + + :return: The vat_id of this BillingInfoInOut. # noqa: E501 + :rtype: str + """ + return self._vat_id + + @vat_id.setter + def vat_id(self, vat_id): + """Sets the vat_id of this BillingInfoInOut. + + + :param vat_id: The vat_id of this BillingInfoInOut. # noqa: E501 + :type: str + """ + + self._vat_id = vat_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BillingInfoInOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/classifier_metrics_out.py b/openapi_client/com/namsor/sdk2/model/classifier_metrics_out.py new file mode 100644 index 0000000..722f973 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/classifier_metrics_out.py @@ -0,0 +1,685 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ClassifierMetricsOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'learn_queue_size': 'int', + 'buffer_size': 'int', + 'pre_classify_queue_size': 'int', + 'fact_keys_size': 'int', + 'facts_learned': 'int', + 'classify_durations_current': 'float', + 'classify_durations_summary': 'float', + 'learn_durations_current': 'float', + 'learn_durations_summary': 'float', + 'classifier_name': 'str', + 'features_size': 'int', + 'ai_vetted_estimate_total': 'int', + 'ai_vetted_estimate_precision': 'float', + 'ai_vetted_estimate_recall': 'float', + 'ai_vetted_learn_total': 'int', + 'ai_non_vetted_estimate_total': 'int', + 'ai_non_vetted_estimate_precision': 'float', + 'ai_non_vetted_estimate_recall': 'float', + 'ai_non_vetted_learn_total': 'int', + 'metric_time_stamp': 'int', + 'ai_start_time': 'int', + 'ai_vetted_expected_class_metrics': 'list[ExpectedClassMetricsOut]', + 'ai_non_vetted_expected_class_metrics': 'list[ExpectedClassMetricsOut]' + } + + attribute_map = { + 'learn_queue_size': 'learnQueueSize', + 'buffer_size': 'bufferSize', + 'pre_classify_queue_size': 'preClassifyQueueSize', + 'fact_keys_size': 'factKeysSize', + 'facts_learned': 'factsLearned', + 'classify_durations_current': 'classifyDurationsCurrent', + 'classify_durations_summary': 'classifyDurationsSummary', + 'learn_durations_current': 'learnDurationsCurrent', + 'learn_durations_summary': 'learnDurationsSummary', + 'classifier_name': 'classifierName', + 'features_size': 'featuresSize', + 'ai_vetted_estimate_total': 'aiVettedEstimateTotal', + 'ai_vetted_estimate_precision': 'aiVettedEstimatePrecision', + 'ai_vetted_estimate_recall': 'aiVettedEstimateRecall', + 'ai_vetted_learn_total': 'aiVettedLearnTotal', + 'ai_non_vetted_estimate_total': 'aiNonVettedEstimateTotal', + 'ai_non_vetted_estimate_precision': 'aiNonVettedEstimatePrecision', + 'ai_non_vetted_estimate_recall': 'aiNonVettedEstimateRecall', + 'ai_non_vetted_learn_total': 'aiNonVettedLearnTotal', + 'metric_time_stamp': 'metricTimeStamp', + 'ai_start_time': 'aiStartTime', + 'ai_vetted_expected_class_metrics': 'aiVettedExpectedClassMetrics', + 'ai_non_vetted_expected_class_metrics': 'aiNonVettedExpectedClassMetrics' + } + + def __init__(self, learn_queue_size=None, buffer_size=None, pre_classify_queue_size=None, fact_keys_size=None, facts_learned=None, classify_durations_current=None, classify_durations_summary=None, learn_durations_current=None, learn_durations_summary=None, classifier_name=None, features_size=None, ai_vetted_estimate_total=None, ai_vetted_estimate_precision=None, ai_vetted_estimate_recall=None, ai_vetted_learn_total=None, ai_non_vetted_estimate_total=None, ai_non_vetted_estimate_precision=None, ai_non_vetted_estimate_recall=None, ai_non_vetted_learn_total=None, metric_time_stamp=None, ai_start_time=None, ai_vetted_expected_class_metrics=None, ai_non_vetted_expected_class_metrics=None): # noqa: E501 + """ClassifierMetricsOut - a model defined in OpenAPI""" # noqa: E501 + + self._learn_queue_size = None + self._buffer_size = None + self._pre_classify_queue_size = None + self._fact_keys_size = None + self._facts_learned = None + self._classify_durations_current = None + self._classify_durations_summary = None + self._learn_durations_current = None + self._learn_durations_summary = None + self._classifier_name = None + self._features_size = None + self._ai_vetted_estimate_total = None + self._ai_vetted_estimate_precision = None + self._ai_vetted_estimate_recall = None + self._ai_vetted_learn_total = None + self._ai_non_vetted_estimate_total = None + self._ai_non_vetted_estimate_precision = None + self._ai_non_vetted_estimate_recall = None + self._ai_non_vetted_learn_total = None + self._metric_time_stamp = None + self._ai_start_time = None + self._ai_vetted_expected_class_metrics = None + self._ai_non_vetted_expected_class_metrics = None + self.discriminator = None + + if learn_queue_size is not None: + self.learn_queue_size = learn_queue_size + if buffer_size is not None: + self.buffer_size = buffer_size + if pre_classify_queue_size is not None: + self.pre_classify_queue_size = pre_classify_queue_size + if fact_keys_size is not None: + self.fact_keys_size = fact_keys_size + if facts_learned is not None: + self.facts_learned = facts_learned + if classify_durations_current is not None: + self.classify_durations_current = classify_durations_current + if classify_durations_summary is not None: + self.classify_durations_summary = classify_durations_summary + if learn_durations_current is not None: + self.learn_durations_current = learn_durations_current + if learn_durations_summary is not None: + self.learn_durations_summary = learn_durations_summary + if classifier_name is not None: + self.classifier_name = classifier_name + if features_size is not None: + self.features_size = features_size + if ai_vetted_estimate_total is not None: + self.ai_vetted_estimate_total = ai_vetted_estimate_total + if ai_vetted_estimate_precision is not None: + self.ai_vetted_estimate_precision = ai_vetted_estimate_precision + if ai_vetted_estimate_recall is not None: + self.ai_vetted_estimate_recall = ai_vetted_estimate_recall + if ai_vetted_learn_total is not None: + self.ai_vetted_learn_total = ai_vetted_learn_total + if ai_non_vetted_estimate_total is not None: + self.ai_non_vetted_estimate_total = ai_non_vetted_estimate_total + if ai_non_vetted_estimate_precision is not None: + self.ai_non_vetted_estimate_precision = ai_non_vetted_estimate_precision + if ai_non_vetted_estimate_recall is not None: + self.ai_non_vetted_estimate_recall = ai_non_vetted_estimate_recall + if ai_non_vetted_learn_total is not None: + self.ai_non_vetted_learn_total = ai_non_vetted_learn_total + if metric_time_stamp is not None: + self.metric_time_stamp = metric_time_stamp + if ai_start_time is not None: + self.ai_start_time = ai_start_time + if ai_vetted_expected_class_metrics is not None: + self.ai_vetted_expected_class_metrics = ai_vetted_expected_class_metrics + if ai_non_vetted_expected_class_metrics is not None: + self.ai_non_vetted_expected_class_metrics = ai_non_vetted_expected_class_metrics + + @property + def learn_queue_size(self): + """Gets the learn_queue_size of this ClassifierMetricsOut. # noqa: E501 + + + :return: The learn_queue_size of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._learn_queue_size + + @learn_queue_size.setter + def learn_queue_size(self, learn_queue_size): + """Sets the learn_queue_size of this ClassifierMetricsOut. + + + :param learn_queue_size: The learn_queue_size of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._learn_queue_size = learn_queue_size + + @property + def buffer_size(self): + """Gets the buffer_size of this ClassifierMetricsOut. # noqa: E501 + + + :return: The buffer_size of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._buffer_size + + @buffer_size.setter + def buffer_size(self, buffer_size): + """Sets the buffer_size of this ClassifierMetricsOut. + + + :param buffer_size: The buffer_size of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._buffer_size = buffer_size + + @property + def pre_classify_queue_size(self): + """Gets the pre_classify_queue_size of this ClassifierMetricsOut. # noqa: E501 + + + :return: The pre_classify_queue_size of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._pre_classify_queue_size + + @pre_classify_queue_size.setter + def pre_classify_queue_size(self, pre_classify_queue_size): + """Sets the pre_classify_queue_size of this ClassifierMetricsOut. + + + :param pre_classify_queue_size: The pre_classify_queue_size of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._pre_classify_queue_size = pre_classify_queue_size + + @property + def fact_keys_size(self): + """Gets the fact_keys_size of this ClassifierMetricsOut. # noqa: E501 + + + :return: The fact_keys_size of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._fact_keys_size + + @fact_keys_size.setter + def fact_keys_size(self, fact_keys_size): + """Sets the fact_keys_size of this ClassifierMetricsOut. + + + :param fact_keys_size: The fact_keys_size of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._fact_keys_size = fact_keys_size + + @property + def facts_learned(self): + """Gets the facts_learned of this ClassifierMetricsOut. # noqa: E501 + + + :return: The facts_learned of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._facts_learned + + @facts_learned.setter + def facts_learned(self, facts_learned): + """Sets the facts_learned of this ClassifierMetricsOut. + + + :param facts_learned: The facts_learned of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._facts_learned = facts_learned + + @property + def classify_durations_current(self): + """Gets the classify_durations_current of this ClassifierMetricsOut. # noqa: E501 + + + :return: The classify_durations_current of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._classify_durations_current + + @classify_durations_current.setter + def classify_durations_current(self, classify_durations_current): + """Sets the classify_durations_current of this ClassifierMetricsOut. + + + :param classify_durations_current: The classify_durations_current of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._classify_durations_current = classify_durations_current + + @property + def classify_durations_summary(self): + """Gets the classify_durations_summary of this ClassifierMetricsOut. # noqa: E501 + + + :return: The classify_durations_summary of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._classify_durations_summary + + @classify_durations_summary.setter + def classify_durations_summary(self, classify_durations_summary): + """Sets the classify_durations_summary of this ClassifierMetricsOut. + + + :param classify_durations_summary: The classify_durations_summary of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._classify_durations_summary = classify_durations_summary + + @property + def learn_durations_current(self): + """Gets the learn_durations_current of this ClassifierMetricsOut. # noqa: E501 + + + :return: The learn_durations_current of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._learn_durations_current + + @learn_durations_current.setter + def learn_durations_current(self, learn_durations_current): + """Sets the learn_durations_current of this ClassifierMetricsOut. + + + :param learn_durations_current: The learn_durations_current of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._learn_durations_current = learn_durations_current + + @property + def learn_durations_summary(self): + """Gets the learn_durations_summary of this ClassifierMetricsOut. # noqa: E501 + + + :return: The learn_durations_summary of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._learn_durations_summary + + @learn_durations_summary.setter + def learn_durations_summary(self, learn_durations_summary): + """Sets the learn_durations_summary of this ClassifierMetricsOut. + + + :param learn_durations_summary: The learn_durations_summary of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._learn_durations_summary = learn_durations_summary + + @property + def classifier_name(self): + """Gets the classifier_name of this ClassifierMetricsOut. # noqa: E501 + + + :return: The classifier_name of this ClassifierMetricsOut. # noqa: E501 + :rtype: str + """ + return self._classifier_name + + @classifier_name.setter + def classifier_name(self, classifier_name): + """Sets the classifier_name of this ClassifierMetricsOut. + + + :param classifier_name: The classifier_name of this ClassifierMetricsOut. # noqa: E501 + :type: str + """ + + self._classifier_name = classifier_name + + @property + def features_size(self): + """Gets the features_size of this ClassifierMetricsOut. # noqa: E501 + + + :return: The features_size of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._features_size + + @features_size.setter + def features_size(self, features_size): + """Sets the features_size of this ClassifierMetricsOut. + + + :param features_size: The features_size of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._features_size = features_size + + @property + def ai_vetted_estimate_total(self): + """Gets the ai_vetted_estimate_total of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_vetted_estimate_total of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_vetted_estimate_total + + @ai_vetted_estimate_total.setter + def ai_vetted_estimate_total(self, ai_vetted_estimate_total): + """Sets the ai_vetted_estimate_total of this ClassifierMetricsOut. + + + :param ai_vetted_estimate_total: The ai_vetted_estimate_total of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_vetted_estimate_total = ai_vetted_estimate_total + + @property + def ai_vetted_estimate_precision(self): + """Gets the ai_vetted_estimate_precision of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_vetted_estimate_precision of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_vetted_estimate_precision + + @ai_vetted_estimate_precision.setter + def ai_vetted_estimate_precision(self, ai_vetted_estimate_precision): + """Sets the ai_vetted_estimate_precision of this ClassifierMetricsOut. + + + :param ai_vetted_estimate_precision: The ai_vetted_estimate_precision of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_vetted_estimate_precision = ai_vetted_estimate_precision + + @property + def ai_vetted_estimate_recall(self): + """Gets the ai_vetted_estimate_recall of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_vetted_estimate_recall of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_vetted_estimate_recall + + @ai_vetted_estimate_recall.setter + def ai_vetted_estimate_recall(self, ai_vetted_estimate_recall): + """Sets the ai_vetted_estimate_recall of this ClassifierMetricsOut. + + + :param ai_vetted_estimate_recall: The ai_vetted_estimate_recall of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_vetted_estimate_recall = ai_vetted_estimate_recall + + @property + def ai_vetted_learn_total(self): + """Gets the ai_vetted_learn_total of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_vetted_learn_total of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_vetted_learn_total + + @ai_vetted_learn_total.setter + def ai_vetted_learn_total(self, ai_vetted_learn_total): + """Sets the ai_vetted_learn_total of this ClassifierMetricsOut. + + + :param ai_vetted_learn_total: The ai_vetted_learn_total of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_vetted_learn_total = ai_vetted_learn_total + + @property + def ai_non_vetted_estimate_total(self): + """Gets the ai_non_vetted_estimate_total of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_non_vetted_estimate_total of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_non_vetted_estimate_total + + @ai_non_vetted_estimate_total.setter + def ai_non_vetted_estimate_total(self, ai_non_vetted_estimate_total): + """Sets the ai_non_vetted_estimate_total of this ClassifierMetricsOut. + + + :param ai_non_vetted_estimate_total: The ai_non_vetted_estimate_total of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_non_vetted_estimate_total = ai_non_vetted_estimate_total + + @property + def ai_non_vetted_estimate_precision(self): + """Gets the ai_non_vetted_estimate_precision of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_non_vetted_estimate_precision of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_non_vetted_estimate_precision + + @ai_non_vetted_estimate_precision.setter + def ai_non_vetted_estimate_precision(self, ai_non_vetted_estimate_precision): + """Sets the ai_non_vetted_estimate_precision of this ClassifierMetricsOut. + + + :param ai_non_vetted_estimate_precision: The ai_non_vetted_estimate_precision of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_non_vetted_estimate_precision = ai_non_vetted_estimate_precision + + @property + def ai_non_vetted_estimate_recall(self): + """Gets the ai_non_vetted_estimate_recall of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_non_vetted_estimate_recall of this ClassifierMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_non_vetted_estimate_recall + + @ai_non_vetted_estimate_recall.setter + def ai_non_vetted_estimate_recall(self, ai_non_vetted_estimate_recall): + """Sets the ai_non_vetted_estimate_recall of this ClassifierMetricsOut. + + + :param ai_non_vetted_estimate_recall: The ai_non_vetted_estimate_recall of this ClassifierMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_non_vetted_estimate_recall = ai_non_vetted_estimate_recall + + @property + def ai_non_vetted_learn_total(self): + """Gets the ai_non_vetted_learn_total of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_non_vetted_learn_total of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_non_vetted_learn_total + + @ai_non_vetted_learn_total.setter + def ai_non_vetted_learn_total(self, ai_non_vetted_learn_total): + """Sets the ai_non_vetted_learn_total of this ClassifierMetricsOut. + + + :param ai_non_vetted_learn_total: The ai_non_vetted_learn_total of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_non_vetted_learn_total = ai_non_vetted_learn_total + + @property + def metric_time_stamp(self): + """Gets the metric_time_stamp of this ClassifierMetricsOut. # noqa: E501 + + + :return: The metric_time_stamp of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._metric_time_stamp + + @metric_time_stamp.setter + def metric_time_stamp(self, metric_time_stamp): + """Sets the metric_time_stamp of this ClassifierMetricsOut. + + + :param metric_time_stamp: The metric_time_stamp of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._metric_time_stamp = metric_time_stamp + + @property + def ai_start_time(self): + """Gets the ai_start_time of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_start_time of this ClassifierMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_start_time + + @ai_start_time.setter + def ai_start_time(self, ai_start_time): + """Sets the ai_start_time of this ClassifierMetricsOut. + + + :param ai_start_time: The ai_start_time of this ClassifierMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_start_time = ai_start_time + + @property + def ai_vetted_expected_class_metrics(self): + """Gets the ai_vetted_expected_class_metrics of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_vetted_expected_class_metrics of this ClassifierMetricsOut. # noqa: E501 + :rtype: list[ExpectedClassMetricsOut] + """ + return self._ai_vetted_expected_class_metrics + + @ai_vetted_expected_class_metrics.setter + def ai_vetted_expected_class_metrics(self, ai_vetted_expected_class_metrics): + """Sets the ai_vetted_expected_class_metrics of this ClassifierMetricsOut. + + + :param ai_vetted_expected_class_metrics: The ai_vetted_expected_class_metrics of this ClassifierMetricsOut. # noqa: E501 + :type: list[ExpectedClassMetricsOut] + """ + + self._ai_vetted_expected_class_metrics = ai_vetted_expected_class_metrics + + @property + def ai_non_vetted_expected_class_metrics(self): + """Gets the ai_non_vetted_expected_class_metrics of this ClassifierMetricsOut. # noqa: E501 + + + :return: The ai_non_vetted_expected_class_metrics of this ClassifierMetricsOut. # noqa: E501 + :rtype: list[ExpectedClassMetricsOut] + """ + return self._ai_non_vetted_expected_class_metrics + + @ai_non_vetted_expected_class_metrics.setter + def ai_non_vetted_expected_class_metrics(self, ai_non_vetted_expected_class_metrics): + """Sets the ai_non_vetted_expected_class_metrics of this ClassifierMetricsOut. + + + :param ai_non_vetted_expected_class_metrics: The ai_non_vetted_expected_class_metrics of this ClassifierMetricsOut. # noqa: E501 + :type: list[ExpectedClassMetricsOut] + """ + + self._ai_non_vetted_expected_class_metrics = ai_non_vetted_expected_class_metrics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClassifierMetricsOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/currencies_out.py b/openapi_client/com/namsor/sdk2/model/currencies_out.py new file mode 100644 index 0000000..e398ec9 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/currencies_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CurrenciesOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'currencies_iso3': 'list[str]' + } + + attribute_map = { + 'currencies_iso3': 'currenciesIso3' + } + + def __init__(self, currencies_iso3=None): # noqa: E501 + """CurrenciesOut - a model defined in OpenAPI""" # noqa: E501 + + self._currencies_iso3 = None + self.discriminator = None + + if currencies_iso3 is not None: + self.currencies_iso3 = currencies_iso3 + + @property + def currencies_iso3(self): + """Gets the currencies_iso3 of this CurrenciesOut. # noqa: E501 + + + :return: The currencies_iso3 of this CurrenciesOut. # noqa: E501 + :rtype: list[str] + """ + return self._currencies_iso3 + + @currencies_iso3.setter + def currencies_iso3(self, currencies_iso3): + """Sets the currencies_iso3 of this CurrenciesOut. + + + :param currencies_iso3: The currencies_iso3 of this CurrenciesOut. # noqa: E501 + :type: list[str] + """ + + self._currencies_iso3 = currencies_iso3 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CurrenciesOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/deploy_ui_out.py b/openapi_client/com/namsor/sdk2/model/deploy_ui_out.py new file mode 100644 index 0000000..547f41d --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/deploy_ui_out.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DeployUIOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'error_message': 'str', + 'succeeded': 'bool' + } + + attribute_map = { + 'error_message': 'errorMessage', + 'succeeded': 'succeeded' + } + + def __init__(self, error_message=None, succeeded=None): # noqa: E501 + """DeployUIOut - a model defined in OpenAPI""" # noqa: E501 + + self._error_message = None + self._succeeded = None + self.discriminator = None + + if error_message is not None: + self.error_message = error_message + if succeeded is not None: + self.succeeded = succeeded + + @property + def error_message(self): + """Gets the error_message of this DeployUIOut. # noqa: E501 + + + :return: The error_message of this DeployUIOut. # noqa: E501 + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """Sets the error_message of this DeployUIOut. + + + :param error_message: The error_message of this DeployUIOut. # noqa: E501 + :type: str + """ + + self._error_message = error_message + + @property + def succeeded(self): + """Gets the succeeded of this DeployUIOut. # noqa: E501 + + + :return: The succeeded of this DeployUIOut. # noqa: E501 + :rtype: bool + """ + return self._succeeded + + @succeeded.setter + def succeeded(self, succeeded): + """Sets the succeeded of this DeployUIOut. + + + :param succeeded: The succeeded of this DeployUIOut. # noqa: E501 + :type: bool + """ + + self._succeeded = succeeded + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeployUIOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/expected_class_metrics_out.py b/openapi_client/com/namsor/sdk2/model/expected_class_metrics_out.py new file mode 100644 index 0000000..a161a7d --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/expected_class_metrics_out.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ExpectedClassMetricsOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'classifier_name': 'str', + 'expected_class': 'str', + 'ai_estimate_total': 'int', + 'ai_estimate_precision': 'float', + 'ai_estimate_recall': 'float', + 'ai_learn_total': 'int' + } + + attribute_map = { + 'classifier_name': 'classifierName', + 'expected_class': 'expectedClass', + 'ai_estimate_total': 'aiEstimateTotal', + 'ai_estimate_precision': 'aiEstimatePrecision', + 'ai_estimate_recall': 'aiEstimateRecall', + 'ai_learn_total': 'aiLearnTotal' + } + + def __init__(self, classifier_name=None, expected_class=None, ai_estimate_total=None, ai_estimate_precision=None, ai_estimate_recall=None, ai_learn_total=None): # noqa: E501 + """ExpectedClassMetricsOut - a model defined in OpenAPI""" # noqa: E501 + + self._classifier_name = None + self._expected_class = None + self._ai_estimate_total = None + self._ai_estimate_precision = None + self._ai_estimate_recall = None + self._ai_learn_total = None + self.discriminator = None + + if classifier_name is not None: + self.classifier_name = classifier_name + if expected_class is not None: + self.expected_class = expected_class + if ai_estimate_total is not None: + self.ai_estimate_total = ai_estimate_total + if ai_estimate_precision is not None: + self.ai_estimate_precision = ai_estimate_precision + if ai_estimate_recall is not None: + self.ai_estimate_recall = ai_estimate_recall + if ai_learn_total is not None: + self.ai_learn_total = ai_learn_total + + @property + def classifier_name(self): + """Gets the classifier_name of this ExpectedClassMetricsOut. # noqa: E501 + + + :return: The classifier_name of this ExpectedClassMetricsOut. # noqa: E501 + :rtype: str + """ + return self._classifier_name + + @classifier_name.setter + def classifier_name(self, classifier_name): + """Sets the classifier_name of this ExpectedClassMetricsOut. + + + :param classifier_name: The classifier_name of this ExpectedClassMetricsOut. # noqa: E501 + :type: str + """ + + self._classifier_name = classifier_name + + @property + def expected_class(self): + """Gets the expected_class of this ExpectedClassMetricsOut. # noqa: E501 + + + :return: The expected_class of this ExpectedClassMetricsOut. # noqa: E501 + :rtype: str + """ + return self._expected_class + + @expected_class.setter + def expected_class(self, expected_class): + """Sets the expected_class of this ExpectedClassMetricsOut. + + + :param expected_class: The expected_class of this ExpectedClassMetricsOut. # noqa: E501 + :type: str + """ + + self._expected_class = expected_class + + @property + def ai_estimate_total(self): + """Gets the ai_estimate_total of this ExpectedClassMetricsOut. # noqa: E501 + + + :return: The ai_estimate_total of this ExpectedClassMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_estimate_total + + @ai_estimate_total.setter + def ai_estimate_total(self, ai_estimate_total): + """Sets the ai_estimate_total of this ExpectedClassMetricsOut. + + + :param ai_estimate_total: The ai_estimate_total of this ExpectedClassMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_estimate_total = ai_estimate_total + + @property + def ai_estimate_precision(self): + """Gets the ai_estimate_precision of this ExpectedClassMetricsOut. # noqa: E501 + + + :return: The ai_estimate_precision of this ExpectedClassMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_estimate_precision + + @ai_estimate_precision.setter + def ai_estimate_precision(self, ai_estimate_precision): + """Sets the ai_estimate_precision of this ExpectedClassMetricsOut. + + + :param ai_estimate_precision: The ai_estimate_precision of this ExpectedClassMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_estimate_precision = ai_estimate_precision + + @property + def ai_estimate_recall(self): + """Gets the ai_estimate_recall of this ExpectedClassMetricsOut. # noqa: E501 + + + :return: The ai_estimate_recall of this ExpectedClassMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_estimate_recall + + @ai_estimate_recall.setter + def ai_estimate_recall(self, ai_estimate_recall): + """Sets the ai_estimate_recall of this ExpectedClassMetricsOut. + + + :param ai_estimate_recall: The ai_estimate_recall of this ExpectedClassMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_estimate_recall = ai_estimate_recall + + @property + def ai_learn_total(self): + """Gets the ai_learn_total of this ExpectedClassMetricsOut. # noqa: E501 + + + :return: The ai_learn_total of this ExpectedClassMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_learn_total + + @ai_learn_total.setter + def ai_learn_total(self, ai_learn_total): + """Sets the ai_learn_total of this ExpectedClassMetricsOut. + + + :param ai_learn_total: The ai_learn_total of this ExpectedClassMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_learn_total = ai_learn_total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ExpectedClassMetricsOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_diasporaed_out.py b/openapi_client/com/namsor/sdk2/model/first_last_name_diasporaed_out.py new file mode 100644 index 0000000..fc988ce --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_diasporaed_out.py @@ -0,0 +1,271 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameDiasporaedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'score': 'float', + 'ethnicity_alt': 'str', + 'ethnicity': 'str', + 'country_iso2': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'score': 'score', + 'ethnicity_alt': 'ethnicityAlt', + 'ethnicity': 'ethnicity', + 'country_iso2': 'countryIso2' + } + + def __init__(self, id=None, first_name=None, last_name=None, score=None, ethnicity_alt=None, ethnicity=None, country_iso2=None): # noqa: E501 + """FirstLastNameDiasporaedOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._score = None + self._ethnicity_alt = None + self._ethnicity = None + self._country_iso2 = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if score is not None: + self.score = score + if ethnicity_alt is not None: + self.ethnicity_alt = ethnicity_alt + if ethnicity is not None: + self.ethnicity = ethnicity + if country_iso2 is not None: + self.country_iso2 = country_iso2 + + @property + def id(self): + """Gets the id of this FirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The id of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameDiasporaedOut. + + + :param id: The id of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The first_name of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameDiasporaedOut. + + + :param first_name: The first_name of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The last_name of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameDiasporaedOut. + + + :param last_name: The last_name of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def score(self): + """Gets the score of this FirstLastNameDiasporaedOut. # noqa: E501 + + Compatibility to NamSor_v1 Origin score value # noqa: E501 + + :return: The score of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this FirstLastNameDiasporaedOut. + + Compatibility to NamSor_v1 Origin score value # noqa: E501 + + :param score: The score of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: float + """ + + self._score = score + + @property + def ethnicity_alt(self): + """Gets the ethnicity_alt of this FirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The ethnicity_alt of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: str + """ + return self._ethnicity_alt + + @ethnicity_alt.setter + def ethnicity_alt(self, ethnicity_alt): + """Sets the ethnicity_alt of this FirstLastNameDiasporaedOut. + + + :param ethnicity_alt: The ethnicity_alt of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: str + """ + + self._ethnicity_alt = ethnicity_alt + + @property + def ethnicity(self): + """Gets the ethnicity of this FirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The ethnicity of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: str + """ + return self._ethnicity + + @ethnicity.setter + def ethnicity(self, ethnicity): + """Sets the ethnicity of this FirstLastNameDiasporaedOut. + + + :param ethnicity: The ethnicity of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: str + """ + + self._ethnicity = ethnicity + + @property + def country_iso2(self): + """Gets the country_iso2 of this FirstLastNameDiasporaedOut. # noqa: E501 + + + :return: The country_iso2 of this FirstLastNameDiasporaedOut. # noqa: E501 + :rtype: str + """ + return self._country_iso2 + + @country_iso2.setter + def country_iso2(self, country_iso2): + """Sets the country_iso2 of this FirstLastNameDiasporaedOut. + + + :param country_iso2: The country_iso2 of this FirstLastNameDiasporaedOut. # noqa: E501 + :type: str + """ + + self._country_iso2 = country_iso2 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameDiasporaedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_gender_in.py b/openapi_client/com/namsor/sdk2/model/first_last_name_gender_in.py new file mode 100644 index 0000000..d45bfff --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_gender_in.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameGenderIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'gender': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'gender': 'gender' + } + + def __init__(self, id=None, first_name=None, last_name=None, gender=None): # noqa: E501 + """FirstLastNameGenderIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._gender = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if gender is not None: + self.gender = gender + + @property + def id(self): + """Gets the id of this FirstLastNameGenderIn. # noqa: E501 + + + :return: The id of this FirstLastNameGenderIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameGenderIn. + + + :param id: The id of this FirstLastNameGenderIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameGenderIn. # noqa: E501 + + + :return: The first_name of this FirstLastNameGenderIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameGenderIn. + + + :param first_name: The first_name of this FirstLastNameGenderIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameGenderIn. # noqa: E501 + + + :return: The last_name of this FirstLastNameGenderIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameGenderIn. + + + :param last_name: The last_name of this FirstLastNameGenderIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def gender(self): + """Gets the gender of this FirstLastNameGenderIn. # noqa: E501 + + + :return: The gender of this FirstLastNameGenderIn. # noqa: E501 + :rtype: str + """ + return self._gender + + @gender.setter + def gender(self, gender): + """Sets the gender of this FirstLastNameGenderIn. + + + :param gender: The gender of this FirstLastNameGenderIn. # noqa: E501 + :type: str + """ + + self._gender = gender + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameGenderIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_gendered_out.py b/openapi_client/com/namsor/sdk2/model/first_last_name_gendered_out.py new file mode 100644 index 0000000..13d0dd3 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_gendered_out.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameGenderedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'likely_gender': 'str', + 'gender_scale': 'float', + 'score': 'float' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'likely_gender': 'likelyGender', + 'gender_scale': 'genderScale', + 'score': 'score' + } + + def __init__(self, id=None, first_name=None, last_name=None, likely_gender=None, gender_scale=None, score=None): # noqa: E501 + """FirstLastNameGenderedOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._likely_gender = None + self._gender_scale = None + self._score = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if likely_gender is not None: + self.likely_gender = likely_gender + if gender_scale is not None: + self.gender_scale = gender_scale + if score is not None: + self.score = score + + @property + def id(self): + """Gets the id of this FirstLastNameGenderedOut. # noqa: E501 + + + :return: The id of this FirstLastNameGenderedOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameGenderedOut. + + + :param id: The id of this FirstLastNameGenderedOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameGenderedOut. # noqa: E501 + + + :return: The first_name of this FirstLastNameGenderedOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameGenderedOut. + + + :param first_name: The first_name of this FirstLastNameGenderedOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameGenderedOut. # noqa: E501 + + + :return: The last_name of this FirstLastNameGenderedOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameGenderedOut. + + + :param last_name: The last_name of this FirstLastNameGenderedOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def likely_gender(self): + """Gets the likely_gender of this FirstLastNameGenderedOut. # noqa: E501 + + Most likely gender # noqa: E501 + + :return: The likely_gender of this FirstLastNameGenderedOut. # noqa: E501 + :rtype: str + """ + return self._likely_gender + + @likely_gender.setter + def likely_gender(self, likely_gender): + """Sets the likely_gender of this FirstLastNameGenderedOut. + + Most likely gender # noqa: E501 + + :param likely_gender: The likely_gender of this FirstLastNameGenderedOut. # noqa: E501 + :type: str + """ + allowed_values = ["male", "female", "unknown"] # noqa: E501 + if likely_gender not in allowed_values: + raise ValueError( + "Invalid value for `likely_gender` ({0}), must be one of {1}" # noqa: E501 + .format(likely_gender, allowed_values) + ) + + self._likely_gender = likely_gender + + @property + def gender_scale(self): + """Gets the gender_scale of this FirstLastNameGenderedOut. # noqa: E501 + + Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value # noqa: E501 + + :return: The gender_scale of this FirstLastNameGenderedOut. # noqa: E501 + :rtype: float + """ + return self._gender_scale + + @gender_scale.setter + def gender_scale(self, gender_scale): + """Sets the gender_scale of this FirstLastNameGenderedOut. + + Compatibility to NamSor_v1 Gender Scale M[-1..U..+1]F value # noqa: E501 + + :param gender_scale: The gender_scale of this FirstLastNameGenderedOut. # noqa: E501 + :type: float + """ + + self._gender_scale = gender_scale + + @property + def score(self): + """Gets the score of this FirstLastNameGenderedOut. # noqa: E501 + + + :return: The score of this FirstLastNameGenderedOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this FirstLastNameGenderedOut. + + + :param score: The score of this FirstLastNameGenderedOut. # noqa: E501 + :type: float + """ + + self._score = score + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameGenderedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_geo_in.py b/openapi_client/com/namsor/sdk2/model/first_last_name_geo_in.py new file mode 100644 index 0000000..01a79c5 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_geo_in.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameGeoIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'country_iso2': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'country_iso2': 'countryIso2' + } + + def __init__(self, id=None, first_name=None, last_name=None, country_iso2=None): # noqa: E501 + """FirstLastNameGeoIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._country_iso2 = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if country_iso2 is not None: + self.country_iso2 = country_iso2 + + @property + def id(self): + """Gets the id of this FirstLastNameGeoIn. # noqa: E501 + + + :return: The id of this FirstLastNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameGeoIn. + + + :param id: The id of this FirstLastNameGeoIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameGeoIn. # noqa: E501 + + + :return: The first_name of this FirstLastNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameGeoIn. + + + :param first_name: The first_name of this FirstLastNameGeoIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameGeoIn. # noqa: E501 + + + :return: The last_name of this FirstLastNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameGeoIn. + + + :param last_name: The last_name of this FirstLastNameGeoIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def country_iso2(self): + """Gets the country_iso2 of this FirstLastNameGeoIn. # noqa: E501 + + + :return: The country_iso2 of this FirstLastNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._country_iso2 + + @country_iso2.setter + def country_iso2(self, country_iso2): + """Sets the country_iso2 of this FirstLastNameGeoIn. + + + :param country_iso2: The country_iso2 of this FirstLastNameGeoIn. # noqa: E501 + :type: str + """ + + self._country_iso2 = country_iso2 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameGeoIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_geo_zipped_in.py b/openapi_client/com/namsor/sdk2/model/first_last_name_geo_zipped_in.py new file mode 100644 index 0000000..e9ca399 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_geo_zipped_in.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameGeoZippedIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'country_iso2': 'str', + 'zip_code': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'country_iso2': 'countryIso2', + 'zip_code': 'zipCode' + } + + def __init__(self, id=None, first_name=None, last_name=None, country_iso2=None, zip_code=None): # noqa: E501 + """FirstLastNameGeoZippedIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._country_iso2 = None + self._zip_code = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if country_iso2 is not None: + self.country_iso2 = country_iso2 + if zip_code is not None: + self.zip_code = zip_code + + @property + def id(self): + """Gets the id of this FirstLastNameGeoZippedIn. # noqa: E501 + + + :return: The id of this FirstLastNameGeoZippedIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameGeoZippedIn. + + + :param id: The id of this FirstLastNameGeoZippedIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameGeoZippedIn. # noqa: E501 + + + :return: The first_name of this FirstLastNameGeoZippedIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameGeoZippedIn. + + + :param first_name: The first_name of this FirstLastNameGeoZippedIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameGeoZippedIn. # noqa: E501 + + + :return: The last_name of this FirstLastNameGeoZippedIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameGeoZippedIn. + + + :param last_name: The last_name of this FirstLastNameGeoZippedIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def country_iso2(self): + """Gets the country_iso2 of this FirstLastNameGeoZippedIn. # noqa: E501 + + + :return: The country_iso2 of this FirstLastNameGeoZippedIn. # noqa: E501 + :rtype: str + """ + return self._country_iso2 + + @country_iso2.setter + def country_iso2(self, country_iso2): + """Sets the country_iso2 of this FirstLastNameGeoZippedIn. + + + :param country_iso2: The country_iso2 of this FirstLastNameGeoZippedIn. # noqa: E501 + :type: str + """ + + self._country_iso2 = country_iso2 + + @property + def zip_code(self): + """Gets the zip_code of this FirstLastNameGeoZippedIn. # noqa: E501 + + + :return: The zip_code of this FirstLastNameGeoZippedIn. # noqa: E501 + :rtype: str + """ + return self._zip_code + + @zip_code.setter + def zip_code(self, zip_code): + """Sets the zip_code of this FirstLastNameGeoZippedIn. + + + :param zip_code: The zip_code of this FirstLastNameGeoZippedIn. # noqa: E501 + :type: str + """ + + self._zip_code = zip_code + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameGeoZippedIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_in.py b/openapi_client/com/namsor/sdk2/model/first_last_name_in.py new file mode 100644 index 0000000..2bd80b6 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_in.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName' + } + + def __init__(self, id=None, first_name=None, last_name=None): # noqa: E501 + """FirstLastNameIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + + @property + def id(self): + """Gets the id of this FirstLastNameIn. # noqa: E501 + + + :return: The id of this FirstLastNameIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameIn. + + + :param id: The id of this FirstLastNameIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameIn. # noqa: E501 + + + :return: The first_name of this FirstLastNameIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameIn. + + + :param first_name: The first_name of this FirstLastNameIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameIn. # noqa: E501 + + + :return: The last_name of this FirstLastNameIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameIn. + + + :param last_name: The last_name of this FirstLastNameIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_origined_out.py b/openapi_client/com/namsor/sdk2/model/first_last_name_origined_out.py new file mode 100644 index 0000000..73fb1b7 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_origined_out.py @@ -0,0 +1,333 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameOriginedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'country_origin': 'str', + 'country_origin_alt': 'str', + 'score': 'float', + 'region_origin': 'str', + 'top_region_origin': 'str', + 'sub_region_origin': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'country_origin': 'countryOrigin', + 'country_origin_alt': 'countryOriginAlt', + 'score': 'score', + 'region_origin': 'regionOrigin', + 'top_region_origin': 'topRegionOrigin', + 'sub_region_origin': 'subRegionOrigin' + } + + def __init__(self, id=None, first_name=None, last_name=None, country_origin=None, country_origin_alt=None, score=None, region_origin=None, top_region_origin=None, sub_region_origin=None): # noqa: E501 + """FirstLastNameOriginedOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._country_origin = None + self._country_origin_alt = None + self._score = None + self._region_origin = None + self._top_region_origin = None + self._sub_region_origin = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if country_origin is not None: + self.country_origin = country_origin + if country_origin_alt is not None: + self.country_origin_alt = country_origin_alt + if score is not None: + self.score = score + if region_origin is not None: + self.region_origin = region_origin + if top_region_origin is not None: + self.top_region_origin = top_region_origin + if sub_region_origin is not None: + self.sub_region_origin = sub_region_origin + + @property + def id(self): + """Gets the id of this FirstLastNameOriginedOut. # noqa: E501 + + + :return: The id of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameOriginedOut. + + + :param id: The id of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameOriginedOut. # noqa: E501 + + + :return: The first_name of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameOriginedOut. + + + :param first_name: The first_name of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameOriginedOut. # noqa: E501 + + + :return: The last_name of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameOriginedOut. + + + :param last_name: The last_name of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def country_origin(self): + """Gets the country_origin of this FirstLastNameOriginedOut. # noqa: E501 + + Most likely country of Origin # noqa: E501 + + :return: The country_origin of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._country_origin + + @country_origin.setter + def country_origin(self, country_origin): + """Sets the country_origin of this FirstLastNameOriginedOut. + + Most likely country of Origin # noqa: E501 + + :param country_origin: The country_origin of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._country_origin = country_origin + + @property + def country_origin_alt(self): + """Gets the country_origin_alt of this FirstLastNameOriginedOut. # noqa: E501 + + Second best alternative : country of Origin # noqa: E501 + + :return: The country_origin_alt of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._country_origin_alt + + @country_origin_alt.setter + def country_origin_alt(self, country_origin_alt): + """Sets the country_origin_alt of this FirstLastNameOriginedOut. + + Second best alternative : country of Origin # noqa: E501 + + :param country_origin_alt: The country_origin_alt of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._country_origin_alt = country_origin_alt + + @property + def score(self): + """Gets the score of this FirstLastNameOriginedOut. # noqa: E501 + + Compatibility to NamSor_v1 Origin score value # noqa: E501 + + :return: The score of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this FirstLastNameOriginedOut. + + Compatibility to NamSor_v1 Origin score value # noqa: E501 + + :param score: The score of this FirstLastNameOriginedOut. # noqa: E501 + :type: float + """ + + self._score = score + + @property + def region_origin(self): + """Gets the region_origin of this FirstLastNameOriginedOut. # noqa: E501 + + Most likely region of Origin (based on countryOrigin ISO2 code) # noqa: E501 + + :return: The region_origin of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._region_origin + + @region_origin.setter + def region_origin(self, region_origin): + """Sets the region_origin of this FirstLastNameOriginedOut. + + Most likely region of Origin (based on countryOrigin ISO2 code) # noqa: E501 + + :param region_origin: The region_origin of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._region_origin = region_origin + + @property + def top_region_origin(self): + """Gets the top_region_origin of this FirstLastNameOriginedOut. # noqa: E501 + + Most likely region of Origin (based on countryOrigin ISO2 code) # noqa: E501 + + :return: The top_region_origin of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._top_region_origin + + @top_region_origin.setter + def top_region_origin(self, top_region_origin): + """Sets the top_region_origin of this FirstLastNameOriginedOut. + + Most likely region of Origin (based on countryOrigin ISO2 code) # noqa: E501 + + :param top_region_origin: The top_region_origin of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._top_region_origin = top_region_origin + + @property + def sub_region_origin(self): + """Gets the sub_region_origin of this FirstLastNameOriginedOut. # noqa: E501 + + Most likely region of Origin (based on countryOrigin ISO2 code) # noqa: E501 + + :return: The sub_region_origin of this FirstLastNameOriginedOut. # noqa: E501 + :rtype: str + """ + return self._sub_region_origin + + @sub_region_origin.setter + def sub_region_origin(self, sub_region_origin): + """Sets the sub_region_origin of this FirstLastNameOriginedOut. + + Most likely region of Origin (based on countryOrigin ISO2 code) # noqa: E501 + + :param sub_region_origin: The sub_region_origin of this FirstLastNameOriginedOut. # noqa: E501 + :type: str + """ + + self._sub_region_origin = sub_region_origin + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameOriginedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_phone_coded_out.py b/openapi_client/com/namsor/sdk2/model/first_last_name_phone_coded_out.py new file mode 100644 index 0000000..3086174 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_phone_coded_out.py @@ -0,0 +1,477 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNamePhoneCodedOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'international_phone_number_verified': 'str', + 'phone_country_iso2_verified': 'str', + 'phone_country_code': 'int', + 'phone_country_code_alt': 'int', + 'phone_country_iso2': 'str', + 'phone_country_iso2_alt': 'str', + 'origin_country_iso2': 'str', + 'origin_country_iso2_alt': 'str', + 'phone_number': 'str', + 'verified': 'bool', + 'score': 'float', + 'country_iso2': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'international_phone_number_verified': 'internationalPhoneNumberVerified', + 'phone_country_iso2_verified': 'phoneCountryIso2Verified', + 'phone_country_code': 'phoneCountryCode', + 'phone_country_code_alt': 'phoneCountryCodeAlt', + 'phone_country_iso2': 'phoneCountryIso2', + 'phone_country_iso2_alt': 'phoneCountryIso2Alt', + 'origin_country_iso2': 'originCountryIso2', + 'origin_country_iso2_alt': 'originCountryIso2Alt', + 'phone_number': 'phoneNumber', + 'verified': 'verified', + 'score': 'score', + 'country_iso2': 'countryIso2' + } + + def __init__(self, id=None, first_name=None, last_name=None, international_phone_number_verified=None, phone_country_iso2_verified=None, phone_country_code=None, phone_country_code_alt=None, phone_country_iso2=None, phone_country_iso2_alt=None, origin_country_iso2=None, origin_country_iso2_alt=None, phone_number=None, verified=None, score=None, country_iso2=None): # noqa: E501 + """FirstLastNamePhoneCodedOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._international_phone_number_verified = None + self._phone_country_iso2_verified = None + self._phone_country_code = None + self._phone_country_code_alt = None + self._phone_country_iso2 = None + self._phone_country_iso2_alt = None + self._origin_country_iso2 = None + self._origin_country_iso2_alt = None + self._phone_number = None + self._verified = None + self._score = None + self._country_iso2 = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if international_phone_number_verified is not None: + self.international_phone_number_verified = international_phone_number_verified + if phone_country_iso2_verified is not None: + self.phone_country_iso2_verified = phone_country_iso2_verified + if phone_country_code is not None: + self.phone_country_code = phone_country_code + if phone_country_code_alt is not None: + self.phone_country_code_alt = phone_country_code_alt + if phone_country_iso2 is not None: + self.phone_country_iso2 = phone_country_iso2 + if phone_country_iso2_alt is not None: + self.phone_country_iso2_alt = phone_country_iso2_alt + if origin_country_iso2 is not None: + self.origin_country_iso2 = origin_country_iso2 + if origin_country_iso2_alt is not None: + self.origin_country_iso2_alt = origin_country_iso2_alt + if phone_number is not None: + self.phone_number = phone_number + if verified is not None: + self.verified = verified + if score is not None: + self.score = score + if country_iso2 is not None: + self.country_iso2 = country_iso2 + + @property + def id(self): + """Gets the id of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The id of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNamePhoneCodedOut. + + + :param id: The id of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The first_name of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNamePhoneCodedOut. + + + :param first_name: The first_name of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The last_name of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNamePhoneCodedOut. + + + :param last_name: The last_name of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def international_phone_number_verified(self): + """Gets the international_phone_number_verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The international_phone_number_verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._international_phone_number_verified + + @international_phone_number_verified.setter + def international_phone_number_verified(self, international_phone_number_verified): + """Sets the international_phone_number_verified of this FirstLastNamePhoneCodedOut. + + + :param international_phone_number_verified: The international_phone_number_verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._international_phone_number_verified = international_phone_number_verified + + @property + def phone_country_iso2_verified(self): + """Gets the phone_country_iso2_verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The phone_country_iso2_verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._phone_country_iso2_verified + + @phone_country_iso2_verified.setter + def phone_country_iso2_verified(self, phone_country_iso2_verified): + """Sets the phone_country_iso2_verified of this FirstLastNamePhoneCodedOut. + + + :param phone_country_iso2_verified: The phone_country_iso2_verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._phone_country_iso2_verified = phone_country_iso2_verified + + @property + def phone_country_code(self): + """Gets the phone_country_code of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The phone_country_code of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: int + """ + return self._phone_country_code + + @phone_country_code.setter + def phone_country_code(self, phone_country_code): + """Sets the phone_country_code of this FirstLastNamePhoneCodedOut. + + + :param phone_country_code: The phone_country_code of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: int + """ + + self._phone_country_code = phone_country_code + + @property + def phone_country_code_alt(self): + """Gets the phone_country_code_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The phone_country_code_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: int + """ + return self._phone_country_code_alt + + @phone_country_code_alt.setter + def phone_country_code_alt(self, phone_country_code_alt): + """Sets the phone_country_code_alt of this FirstLastNamePhoneCodedOut. + + + :param phone_country_code_alt: The phone_country_code_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: int + """ + + self._phone_country_code_alt = phone_country_code_alt + + @property + def phone_country_iso2(self): + """Gets the phone_country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The phone_country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._phone_country_iso2 + + @phone_country_iso2.setter + def phone_country_iso2(self, phone_country_iso2): + """Sets the phone_country_iso2 of this FirstLastNamePhoneCodedOut. + + + :param phone_country_iso2: The phone_country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._phone_country_iso2 = phone_country_iso2 + + @property + def phone_country_iso2_alt(self): + """Gets the phone_country_iso2_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The phone_country_iso2_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._phone_country_iso2_alt + + @phone_country_iso2_alt.setter + def phone_country_iso2_alt(self, phone_country_iso2_alt): + """Sets the phone_country_iso2_alt of this FirstLastNamePhoneCodedOut. + + + :param phone_country_iso2_alt: The phone_country_iso2_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._phone_country_iso2_alt = phone_country_iso2_alt + + @property + def origin_country_iso2(self): + """Gets the origin_country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The origin_country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._origin_country_iso2 + + @origin_country_iso2.setter + def origin_country_iso2(self, origin_country_iso2): + """Sets the origin_country_iso2 of this FirstLastNamePhoneCodedOut. + + + :param origin_country_iso2: The origin_country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._origin_country_iso2 = origin_country_iso2 + + @property + def origin_country_iso2_alt(self): + """Gets the origin_country_iso2_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The origin_country_iso2_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._origin_country_iso2_alt + + @origin_country_iso2_alt.setter + def origin_country_iso2_alt(self, origin_country_iso2_alt): + """Sets the origin_country_iso2_alt of this FirstLastNamePhoneCodedOut. + + + :param origin_country_iso2_alt: The origin_country_iso2_alt of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._origin_country_iso2_alt = origin_country_iso2_alt + + @property + def phone_number(self): + """Gets the phone_number of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The phone_number of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """Sets the phone_number of this FirstLastNamePhoneCodedOut. + + + :param phone_number: The phone_number of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._phone_number = phone_number + + @property + def verified(self): + """Gets the verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: bool + """ + return self._verified + + @verified.setter + def verified(self, verified): + """Sets the verified of this FirstLastNamePhoneCodedOut. + + + :param verified: The verified of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: bool + """ + + self._verified = verified + + @property + def score(self): + """Gets the score of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The score of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this FirstLastNamePhoneCodedOut. + + + :param score: The score of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: float + """ + + self._score = score + + @property + def country_iso2(self): + """Gets the country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + + + :return: The country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + :rtype: str + """ + return self._country_iso2 + + @country_iso2.setter + def country_iso2(self, country_iso2): + """Sets the country_iso2 of this FirstLastNamePhoneCodedOut. + + + :param country_iso2: The country_iso2 of this FirstLastNamePhoneCodedOut. # noqa: E501 + :type: str + """ + + self._country_iso2 = country_iso2 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNamePhoneCodedOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_phone_number_in.py b/openapi_client/com/namsor/sdk2/model/first_last_name_phone_number_in.py new file mode 100644 index 0000000..d9728f2 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_phone_number_in.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNamePhoneNumberIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'phone_number': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'phone_number': 'phoneNumber' + } + + def __init__(self, id=None, first_name=None, last_name=None, phone_number=None): # noqa: E501 + """FirstLastNamePhoneNumberIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._phone_number = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if phone_number is not None: + self.phone_number = phone_number + + @property + def id(self): + """Gets the id of this FirstLastNamePhoneNumberIn. # noqa: E501 + + + :return: The id of this FirstLastNamePhoneNumberIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNamePhoneNumberIn. + + + :param id: The id of this FirstLastNamePhoneNumberIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNamePhoneNumberIn. # noqa: E501 + + + :return: The first_name of this FirstLastNamePhoneNumberIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNamePhoneNumberIn. + + + :param first_name: The first_name of this FirstLastNamePhoneNumberIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNamePhoneNumberIn. # noqa: E501 + + + :return: The last_name of this FirstLastNamePhoneNumberIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNamePhoneNumberIn. + + + :param last_name: The last_name of this FirstLastNamePhoneNumberIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def phone_number(self): + """Gets the phone_number of this FirstLastNamePhoneNumberIn. # noqa: E501 + + + :return: The phone_number of this FirstLastNamePhoneNumberIn. # noqa: E501 + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """Sets the phone_number of this FirstLastNamePhoneNumberIn. + + + :param phone_number: The phone_number of this FirstLastNamePhoneNumberIn. # noqa: E501 + :type: str + """ + + self._phone_number = phone_number + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNamePhoneNumberIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/first_last_name_us_race_ethnicity_out.py b/openapi_client/com/namsor/sdk2/model/first_last_name_us_race_ethnicity_out.py new file mode 100644 index 0000000..e61e874 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/first_last_name_us_race_ethnicity_out.py @@ -0,0 +1,245 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FirstLastNameUSRaceEthnicityOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'race_ethnicity_alt': 'str', + 'race_ethnicity': 'str', + 'score': 'float' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'race_ethnicity_alt': 'raceEthnicityAlt', + 'race_ethnicity': 'raceEthnicity', + 'score': 'score' + } + + def __init__(self, id=None, first_name=None, last_name=None, race_ethnicity_alt=None, race_ethnicity=None, score=None): # noqa: E501 + """FirstLastNameUSRaceEthnicityOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._race_ethnicity_alt = None + self._race_ethnicity = None + self._score = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if race_ethnicity_alt is not None: + self.race_ethnicity_alt = race_ethnicity_alt + if race_ethnicity is not None: + self.race_ethnicity = race_ethnicity + if score is not None: + self.score = score + + @property + def id(self): + """Gets the id of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + + + :return: The id of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this FirstLastNameUSRaceEthnicityOut. + + + :param id: The id of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + + + :return: The first_name of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this FirstLastNameUSRaceEthnicityOut. + + + :param first_name: The first_name of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + + + :return: The last_name of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this FirstLastNameUSRaceEthnicityOut. + + + :param last_name: The last_name of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def race_ethnicity_alt(self): + """Gets the race_ethnicity_alt of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + + + :return: The race_ethnicity_alt of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: str + """ + return self._race_ethnicity_alt + + @race_ethnicity_alt.setter + def race_ethnicity_alt(self, race_ethnicity_alt): + """Sets the race_ethnicity_alt of this FirstLastNameUSRaceEthnicityOut. + + + :param race_ethnicity_alt: The race_ethnicity_alt of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: str + """ + + self._race_ethnicity_alt = race_ethnicity_alt + + @property + def race_ethnicity(self): + """Gets the race_ethnicity of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + + + :return: The race_ethnicity of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: str + """ + return self._race_ethnicity + + @race_ethnicity.setter + def race_ethnicity(self, race_ethnicity): + """Sets the race_ethnicity of this FirstLastNameUSRaceEthnicityOut. + + + :param race_ethnicity: The race_ethnicity of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: str + """ + + self._race_ethnicity = race_ethnicity + + @property + def score(self): + """Gets the score of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + + Compatibility to NamSor_v1 Origin score value # noqa: E501 + + :return: The score of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this FirstLastNameUSRaceEthnicityOut. + + Compatibility to NamSor_v1 Origin score value # noqa: E501 + + :param score: The score of this FirstLastNameUSRaceEthnicityOut. # noqa: E501 + :type: float + """ + + self._score = score + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FirstLastNameUSRaceEthnicityOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/inline_object.py b/openapi_client/com/namsor/sdk2/model/inline_object.py new file mode 100644 index 0000000..5603ad6 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/inline_object.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineObject(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stripe_token': 'str', + 'stripe_email': 'str' + } + + attribute_map = { + 'stripe_token': 'stripeToken', + 'stripe_email': 'stripeEmail' + } + + def __init__(self, stripe_token=None, stripe_email=None): # noqa: E501 + """InlineObject - a model defined in OpenAPI""" # noqa: E501 + + self._stripe_token = None + self._stripe_email = None + self.discriminator = None + + if stripe_token is not None: + self.stripe_token = stripe_token + if stripe_email is not None: + self.stripe_email = stripe_email + + @property + def stripe_token(self): + """Gets the stripe_token of this InlineObject. # noqa: E501 + + + :return: The stripe_token of this InlineObject. # noqa: E501 + :rtype: str + """ + return self._stripe_token + + @stripe_token.setter + def stripe_token(self, stripe_token): + """Sets the stripe_token of this InlineObject. + + + :param stripe_token: The stripe_token of this InlineObject. # noqa: E501 + :type: str + """ + + self._stripe_token = stripe_token + + @property + def stripe_email(self): + """Gets the stripe_email of this InlineObject. # noqa: E501 + + + :return: The stripe_email of this InlineObject. # noqa: E501 + :rtype: str + """ + return self._stripe_email + + @stripe_email.setter + def stripe_email(self, stripe_email): + """Sets the stripe_email of this InlineObject. + + + :param stripe_email: The stripe_email of this InlineObject. # noqa: E501 + :type: str + """ + + self._stripe_email = stripe_email + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineObject): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/invoice_item_out.py b/openapi_client/com/namsor/sdk2/model/invoice_item_out.py new file mode 100644 index 0000000..de8663c --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/invoice_item_out.py @@ -0,0 +1,373 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InvoiceItemOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'item_id': 'str', + 'amount': 'int', + 'currency': 'str', + 'description': 'str', + 'quantity': 'int', + 'subscription': 'str', + 'subscription_item': 'str', + 'invoice_item_type': 'str', + 'plan_nickname': 'str', + 'plan_desc': 'str', + 'plan_name': 'str' + } + + attribute_map = { + 'item_id': 'itemId', + 'amount': 'amount', + 'currency': 'currency', + 'description': 'description', + 'quantity': 'quantity', + 'subscription': 'subscription', + 'subscription_item': 'subscriptionItem', + 'invoice_item_type': 'invoiceItemType', + 'plan_nickname': 'planNickname', + 'plan_desc': 'planDesc', + 'plan_name': 'planName' + } + + def __init__(self, item_id=None, amount=None, currency=None, description=None, quantity=None, subscription=None, subscription_item=None, invoice_item_type=None, plan_nickname=None, plan_desc=None, plan_name=None): # noqa: E501 + """InvoiceItemOut - a model defined in OpenAPI""" # noqa: E501 + + self._item_id = None + self._amount = None + self._currency = None + self._description = None + self._quantity = None + self._subscription = None + self._subscription_item = None + self._invoice_item_type = None + self._plan_nickname = None + self._plan_desc = None + self._plan_name = None + self.discriminator = None + + if item_id is not None: + self.item_id = item_id + if amount is not None: + self.amount = amount + if currency is not None: + self.currency = currency + if description is not None: + self.description = description + if quantity is not None: + self.quantity = quantity + if subscription is not None: + self.subscription = subscription + if subscription_item is not None: + self.subscription_item = subscription_item + if invoice_item_type is not None: + self.invoice_item_type = invoice_item_type + if plan_nickname is not None: + self.plan_nickname = plan_nickname + if plan_desc is not None: + self.plan_desc = plan_desc + if plan_name is not None: + self.plan_name = plan_name + + @property + def item_id(self): + """Gets the item_id of this InvoiceItemOut. # noqa: E501 + + + :return: The item_id of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._item_id + + @item_id.setter + def item_id(self, item_id): + """Sets the item_id of this InvoiceItemOut. + + + :param item_id: The item_id of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._item_id = item_id + + @property + def amount(self): + """Gets the amount of this InvoiceItemOut. # noqa: E501 + + + :return: The amount of this InvoiceItemOut. # noqa: E501 + :rtype: int + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this InvoiceItemOut. + + + :param amount: The amount of this InvoiceItemOut. # noqa: E501 + :type: int + """ + + self._amount = amount + + @property + def currency(self): + """Gets the currency of this InvoiceItemOut. # noqa: E501 + + + :return: The currency of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """Sets the currency of this InvoiceItemOut. + + + :param currency: The currency of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._currency = currency + + @property + def description(self): + """Gets the description of this InvoiceItemOut. # noqa: E501 + + + :return: The description of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InvoiceItemOut. + + + :param description: The description of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def quantity(self): + """Gets the quantity of this InvoiceItemOut. # noqa: E501 + + + :return: The quantity of this InvoiceItemOut. # noqa: E501 + :rtype: int + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """Sets the quantity of this InvoiceItemOut. + + + :param quantity: The quantity of this InvoiceItemOut. # noqa: E501 + :type: int + """ + + self._quantity = quantity + + @property + def subscription(self): + """Gets the subscription of this InvoiceItemOut. # noqa: E501 + + + :return: The subscription of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._subscription + + @subscription.setter + def subscription(self, subscription): + """Sets the subscription of this InvoiceItemOut. + + + :param subscription: The subscription of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._subscription = subscription + + @property + def subscription_item(self): + """Gets the subscription_item of this InvoiceItemOut. # noqa: E501 + + + :return: The subscription_item of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._subscription_item + + @subscription_item.setter + def subscription_item(self, subscription_item): + """Sets the subscription_item of this InvoiceItemOut. + + + :param subscription_item: The subscription_item of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._subscription_item = subscription_item + + @property + def invoice_item_type(self): + """Gets the invoice_item_type of this InvoiceItemOut. # noqa: E501 + + + :return: The invoice_item_type of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._invoice_item_type + + @invoice_item_type.setter + def invoice_item_type(self, invoice_item_type): + """Sets the invoice_item_type of this InvoiceItemOut. + + + :param invoice_item_type: The invoice_item_type of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._invoice_item_type = invoice_item_type + + @property + def plan_nickname(self): + """Gets the plan_nickname of this InvoiceItemOut. # noqa: E501 + + + :return: The plan_nickname of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._plan_nickname + + @plan_nickname.setter + def plan_nickname(self, plan_nickname): + """Sets the plan_nickname of this InvoiceItemOut. + + + :param plan_nickname: The plan_nickname of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._plan_nickname = plan_nickname + + @property + def plan_desc(self): + """Gets the plan_desc of this InvoiceItemOut. # noqa: E501 + + + :return: The plan_desc of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._plan_desc + + @plan_desc.setter + def plan_desc(self, plan_desc): + """Sets the plan_desc of this InvoiceItemOut. + + + :param plan_desc: The plan_desc of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._plan_desc = plan_desc + + @property + def plan_name(self): + """Gets the plan_name of this InvoiceItemOut. # noqa: E501 + + + :return: The plan_name of this InvoiceItemOut. # noqa: E501 + :rtype: str + """ + return self._plan_name + + @plan_name.setter + def plan_name(self, plan_name): + """Sets the plan_name of this InvoiceItemOut. + + + :param plan_name: The plan_name of this InvoiceItemOut. # noqa: E501 + :type: str + """ + + self._plan_name = plan_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InvoiceItemOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/invoice_out.py b/openapi_client/com/namsor/sdk2/model/invoice_out.py new file mode 100644 index 0000000..32646d5 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/invoice_out.py @@ -0,0 +1,659 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InvoiceOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'items': 'list[InvoiceItemOut]', + 'user_id': 'str', + 'invoice_id': 'str', + 'is_striped': 'bool', + 'stripe_customer_id': 'str', + 'amount_due': 'int', + 'amount_paid': 'int', + 'amount_remaining': 'int', + 'attempted': 'bool', + 'currency': 'str', + 'invoice_date': 'datetime', + 'due_date': 'datetime', + 'description': 'str', + 'invoice_pdf': 'str', + 'period_start': 'datetime', + 'period_end': 'datetime', + 'receipt_number': 'str', + 'invoice_status': 'str', + 'sub_total': 'int', + 'tax': 'int', + 'tax_percent': 'int', + 'total': 'int' + } + + attribute_map = { + 'items': 'items', + 'user_id': 'userId', + 'invoice_id': 'invoiceId', + 'is_striped': 'isStriped', + 'stripe_customer_id': 'stripeCustomerId', + 'amount_due': 'amountDue', + 'amount_paid': 'amountPaid', + 'amount_remaining': 'amountRemaining', + 'attempted': 'attempted', + 'currency': 'currency', + 'invoice_date': 'invoiceDate', + 'due_date': 'dueDate', + 'description': 'description', + 'invoice_pdf': 'invoicePdf', + 'period_start': 'periodStart', + 'period_end': 'periodEnd', + 'receipt_number': 'receiptNumber', + 'invoice_status': 'invoiceStatus', + 'sub_total': 'subTotal', + 'tax': 'tax', + 'tax_percent': 'taxPercent', + 'total': 'total' + } + + def __init__(self, items=None, user_id=None, invoice_id=None, is_striped=None, stripe_customer_id=None, amount_due=None, amount_paid=None, amount_remaining=None, attempted=None, currency=None, invoice_date=None, due_date=None, description=None, invoice_pdf=None, period_start=None, period_end=None, receipt_number=None, invoice_status=None, sub_total=None, tax=None, tax_percent=None, total=None): # noqa: E501 + """InvoiceOut - a model defined in OpenAPI""" # noqa: E501 + + self._items = None + self._user_id = None + self._invoice_id = None + self._is_striped = None + self._stripe_customer_id = None + self._amount_due = None + self._amount_paid = None + self._amount_remaining = None + self._attempted = None + self._currency = None + self._invoice_date = None + self._due_date = None + self._description = None + self._invoice_pdf = None + self._period_start = None + self._period_end = None + self._receipt_number = None + self._invoice_status = None + self._sub_total = None + self._tax = None + self._tax_percent = None + self._total = None + self.discriminator = None + + if items is not None: + self.items = items + if user_id is not None: + self.user_id = user_id + if invoice_id is not None: + self.invoice_id = invoice_id + if is_striped is not None: + self.is_striped = is_striped + if stripe_customer_id is not None: + self.stripe_customer_id = stripe_customer_id + if amount_due is not None: + self.amount_due = amount_due + if amount_paid is not None: + self.amount_paid = amount_paid + if amount_remaining is not None: + self.amount_remaining = amount_remaining + if attempted is not None: + self.attempted = attempted + if currency is not None: + self.currency = currency + if invoice_date is not None: + self.invoice_date = invoice_date + if due_date is not None: + self.due_date = due_date + if description is not None: + self.description = description + if invoice_pdf is not None: + self.invoice_pdf = invoice_pdf + if period_start is not None: + self.period_start = period_start + if period_end is not None: + self.period_end = period_end + if receipt_number is not None: + self.receipt_number = receipt_number + if invoice_status is not None: + self.invoice_status = invoice_status + if sub_total is not None: + self.sub_total = sub_total + if tax is not None: + self.tax = tax + if tax_percent is not None: + self.tax_percent = tax_percent + if total is not None: + self.total = total + + @property + def items(self): + """Gets the items of this InvoiceOut. # noqa: E501 + + + :return: The items of this InvoiceOut. # noqa: E501 + :rtype: list[InvoiceItemOut] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this InvoiceOut. + + + :param items: The items of this InvoiceOut. # noqa: E501 + :type: list[InvoiceItemOut] + """ + + self._items = items + + @property + def user_id(self): + """Gets the user_id of this InvoiceOut. # noqa: E501 + + + :return: The user_id of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """Sets the user_id of this InvoiceOut. + + + :param user_id: The user_id of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._user_id = user_id + + @property + def invoice_id(self): + """Gets the invoice_id of this InvoiceOut. # noqa: E501 + + + :return: The invoice_id of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._invoice_id + + @invoice_id.setter + def invoice_id(self, invoice_id): + """Sets the invoice_id of this InvoiceOut. + + + :param invoice_id: The invoice_id of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._invoice_id = invoice_id + + @property + def is_striped(self): + """Gets the is_striped of this InvoiceOut. # noqa: E501 + + + :return: The is_striped of this InvoiceOut. # noqa: E501 + :rtype: bool + """ + return self._is_striped + + @is_striped.setter + def is_striped(self, is_striped): + """Sets the is_striped of this InvoiceOut. + + + :param is_striped: The is_striped of this InvoiceOut. # noqa: E501 + :type: bool + """ + + self._is_striped = is_striped + + @property + def stripe_customer_id(self): + """Gets the stripe_customer_id of this InvoiceOut. # noqa: E501 + + + :return: The stripe_customer_id of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._stripe_customer_id + + @stripe_customer_id.setter + def stripe_customer_id(self, stripe_customer_id): + """Sets the stripe_customer_id of this InvoiceOut. + + + :param stripe_customer_id: The stripe_customer_id of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._stripe_customer_id = stripe_customer_id + + @property + def amount_due(self): + """Gets the amount_due of this InvoiceOut. # noqa: E501 + + + :return: The amount_due of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._amount_due + + @amount_due.setter + def amount_due(self, amount_due): + """Sets the amount_due of this InvoiceOut. + + + :param amount_due: The amount_due of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._amount_due = amount_due + + @property + def amount_paid(self): + """Gets the amount_paid of this InvoiceOut. # noqa: E501 + + + :return: The amount_paid of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._amount_paid + + @amount_paid.setter + def amount_paid(self, amount_paid): + """Sets the amount_paid of this InvoiceOut. + + + :param amount_paid: The amount_paid of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._amount_paid = amount_paid + + @property + def amount_remaining(self): + """Gets the amount_remaining of this InvoiceOut. # noqa: E501 + + + :return: The amount_remaining of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._amount_remaining + + @amount_remaining.setter + def amount_remaining(self, amount_remaining): + """Sets the amount_remaining of this InvoiceOut. + + + :param amount_remaining: The amount_remaining of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._amount_remaining = amount_remaining + + @property + def attempted(self): + """Gets the attempted of this InvoiceOut. # noqa: E501 + + + :return: The attempted of this InvoiceOut. # noqa: E501 + :rtype: bool + """ + return self._attempted + + @attempted.setter + def attempted(self, attempted): + """Sets the attempted of this InvoiceOut. + + + :param attempted: The attempted of this InvoiceOut. # noqa: E501 + :type: bool + """ + + self._attempted = attempted + + @property + def currency(self): + """Gets the currency of this InvoiceOut. # noqa: E501 + + + :return: The currency of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._currency + + @currency.setter + def currency(self, currency): + """Sets the currency of this InvoiceOut. + + + :param currency: The currency of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._currency = currency + + @property + def invoice_date(self): + """Gets the invoice_date of this InvoiceOut. # noqa: E501 + + + :return: The invoice_date of this InvoiceOut. # noqa: E501 + :rtype: datetime + """ + return self._invoice_date + + @invoice_date.setter + def invoice_date(self, invoice_date): + """Sets the invoice_date of this InvoiceOut. + + + :param invoice_date: The invoice_date of this InvoiceOut. # noqa: E501 + :type: datetime + """ + + self._invoice_date = invoice_date + + @property + def due_date(self): + """Gets the due_date of this InvoiceOut. # noqa: E501 + + + :return: The due_date of this InvoiceOut. # noqa: E501 + :rtype: datetime + """ + return self._due_date + + @due_date.setter + def due_date(self, due_date): + """Sets the due_date of this InvoiceOut. + + + :param due_date: The due_date of this InvoiceOut. # noqa: E501 + :type: datetime + """ + + self._due_date = due_date + + @property + def description(self): + """Gets the description of this InvoiceOut. # noqa: E501 + + + :return: The description of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this InvoiceOut. + + + :param description: The description of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def invoice_pdf(self): + """Gets the invoice_pdf of this InvoiceOut. # noqa: E501 + + + :return: The invoice_pdf of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._invoice_pdf + + @invoice_pdf.setter + def invoice_pdf(self, invoice_pdf): + """Sets the invoice_pdf of this InvoiceOut. + + + :param invoice_pdf: The invoice_pdf of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._invoice_pdf = invoice_pdf + + @property + def period_start(self): + """Gets the period_start of this InvoiceOut. # noqa: E501 + + + :return: The period_start of this InvoiceOut. # noqa: E501 + :rtype: datetime + """ + return self._period_start + + @period_start.setter + def period_start(self, period_start): + """Sets the period_start of this InvoiceOut. + + + :param period_start: The period_start of this InvoiceOut. # noqa: E501 + :type: datetime + """ + + self._period_start = period_start + + @property + def period_end(self): + """Gets the period_end of this InvoiceOut. # noqa: E501 + + + :return: The period_end of this InvoiceOut. # noqa: E501 + :rtype: datetime + """ + return self._period_end + + @period_end.setter + def period_end(self, period_end): + """Sets the period_end of this InvoiceOut. + + + :param period_end: The period_end of this InvoiceOut. # noqa: E501 + :type: datetime + """ + + self._period_end = period_end + + @property + def receipt_number(self): + """Gets the receipt_number of this InvoiceOut. # noqa: E501 + + + :return: The receipt_number of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._receipt_number + + @receipt_number.setter + def receipt_number(self, receipt_number): + """Sets the receipt_number of this InvoiceOut. + + + :param receipt_number: The receipt_number of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._receipt_number = receipt_number + + @property + def invoice_status(self): + """Gets the invoice_status of this InvoiceOut. # noqa: E501 + + + :return: The invoice_status of this InvoiceOut. # noqa: E501 + :rtype: str + """ + return self._invoice_status + + @invoice_status.setter + def invoice_status(self, invoice_status): + """Sets the invoice_status of this InvoiceOut. + + + :param invoice_status: The invoice_status of this InvoiceOut. # noqa: E501 + :type: str + """ + + self._invoice_status = invoice_status + + @property + def sub_total(self): + """Gets the sub_total of this InvoiceOut. # noqa: E501 + + + :return: The sub_total of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._sub_total + + @sub_total.setter + def sub_total(self, sub_total): + """Sets the sub_total of this InvoiceOut. + + + :param sub_total: The sub_total of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._sub_total = sub_total + + @property + def tax(self): + """Gets the tax of this InvoiceOut. # noqa: E501 + + + :return: The tax of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._tax + + @tax.setter + def tax(self, tax): + """Sets the tax of this InvoiceOut. + + + :param tax: The tax of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._tax = tax + + @property + def tax_percent(self): + """Gets the tax_percent of this InvoiceOut. # noqa: E501 + + + :return: The tax_percent of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._tax_percent + + @tax_percent.setter + def tax_percent(self, tax_percent): + """Sets the tax_percent of this InvoiceOut. + + + :param tax_percent: The tax_percent of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._tax_percent = tax_percent + + @property + def total(self): + """Gets the total of this InvoiceOut. # noqa: E501 + + + :return: The total of this InvoiceOut. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this InvoiceOut. + + + :param total: The total of this InvoiceOut. # noqa: E501 + :type: int + """ + + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InvoiceOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/nam_sor_counter_out.py b/openapi_client/com/namsor/sdk2/model/nam_sor_counter_out.py new file mode 100644 index 0000000..e56e16d --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/nam_sor_counter_out.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NamSorCounterOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'counter': 'int' + } + + attribute_map = { + 'counter': 'counter' + } + + def __init__(self, counter=None): # noqa: E501 + """NamSorCounterOut - a model defined in OpenAPI""" # noqa: E501 + + self._counter = None + self.discriminator = None + + if counter is not None: + self.counter = counter + + @property + def counter(self): + """Gets the counter of this NamSorCounterOut. # noqa: E501 + + + :return: The counter of this NamSorCounterOut. # noqa: E501 + :rtype: int + """ + return self._counter + + @counter.setter + def counter(self, counter): + """Sets the counter of this NamSorCounterOut. + + + :param counter: The counter of this NamSorCounterOut. # noqa: E501 + :type: int + """ + + self._counter = counter + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamSorCounterOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/name_match_candidate_out.py b/openapi_client/com/namsor/sdk2/model/name_match_candidate_out.py new file mode 100644 index 0000000..b340d4e --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/name_match_candidate_out.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NameMatchCandidateOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'candidate_name': 'str', + 'probability': 'float' + } + + attribute_map = { + 'candidate_name': 'candidateName', + 'probability': 'probability' + } + + def __init__(self, candidate_name=None, probability=None): # noqa: E501 + """NameMatchCandidateOut - a model defined in OpenAPI""" # noqa: E501 + + self._candidate_name = None + self._probability = None + self.discriminator = None + + if candidate_name is not None: + self.candidate_name = candidate_name + if probability is not None: + self.probability = probability + + @property + def candidate_name(self): + """Gets the candidate_name of this NameMatchCandidateOut. # noqa: E501 + + + :return: The candidate_name of this NameMatchCandidateOut. # noqa: E501 + :rtype: str + """ + return self._candidate_name + + @candidate_name.setter + def candidate_name(self, candidate_name): + """Sets the candidate_name of this NameMatchCandidateOut. + + + :param candidate_name: The candidate_name of this NameMatchCandidateOut. # noqa: E501 + :type: str + """ + + self._candidate_name = candidate_name + + @property + def probability(self): + """Gets the probability of this NameMatchCandidateOut. # noqa: E501 + + + :return: The probability of this NameMatchCandidateOut. # noqa: E501 + :rtype: float + """ + return self._probability + + @probability.setter + def probability(self, probability): + """Sets the probability of this NameMatchCandidateOut. + + + :param probability: The probability of this NameMatchCandidateOut. # noqa: E501 + :type: float + """ + + self._probability = probability + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NameMatchCandidateOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/name_match_candidates_out.py b/openapi_client/com/namsor/sdk2/model/name_match_candidates_out.py new file mode 100644 index 0000000..d2e70ba --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/name_match_candidates_out.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NameMatchCandidatesOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'match_candidates': 'list[NameMatchCandidateOut]' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'match_candidates': 'matchCandidates' + } + + def __init__(self, id=None, first_name=None, last_name=None, match_candidates=None): # noqa: E501 + """NameMatchCandidatesOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._match_candidates = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if match_candidates is not None: + self.match_candidates = match_candidates + + @property + def id(self): + """Gets the id of this NameMatchCandidatesOut. # noqa: E501 + + + :return: The id of this NameMatchCandidatesOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NameMatchCandidatesOut. + + + :param id: The id of this NameMatchCandidatesOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this NameMatchCandidatesOut. # noqa: E501 + + + :return: The first_name of this NameMatchCandidatesOut. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this NameMatchCandidatesOut. + + + :param first_name: The first_name of this NameMatchCandidatesOut. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this NameMatchCandidatesOut. # noqa: E501 + + + :return: The last_name of this NameMatchCandidatesOut. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this NameMatchCandidatesOut. + + + :param last_name: The last_name of this NameMatchCandidatesOut. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def match_candidates(self): + """Gets the match_candidates of this NameMatchCandidatesOut. # noqa: E501 + + + :return: The match_candidates of this NameMatchCandidatesOut. # noqa: E501 + :rtype: list[NameMatchCandidateOut] + """ + return self._match_candidates + + @match_candidates.setter + def match_candidates(self, match_candidates): + """Sets the match_candidates of this NameMatchCandidatesOut. + + + :param match_candidates: The match_candidates of this NameMatchCandidatesOut. # noqa: E501 + :type: list[NameMatchCandidateOut] + """ + + self._match_candidates = match_candidates + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NameMatchCandidatesOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/parsed_full_name_geo_in.py b/openapi_client/com/namsor/sdk2/model/parsed_full_name_geo_in.py new file mode 100644 index 0000000..e428224 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/parsed_full_name_geo_in.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ParsedFullNameGeoIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'prefix_or_title': 'str', + 'suffix': 'str', + 'middle_name': 'str', + 'country_iso2': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'prefix_or_title': 'prefixOrTitle', + 'suffix': 'suffix', + 'middle_name': 'middleName', + 'country_iso2': 'countryIso2' + } + + def __init__(self, id=None, first_name=None, last_name=None, prefix_or_title=None, suffix=None, middle_name=None, country_iso2=None): # noqa: E501 + """ParsedFullNameGeoIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._prefix_or_title = None + self._suffix = None + self._middle_name = None + self._country_iso2 = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if prefix_or_title is not None: + self.prefix_or_title = prefix_or_title + if suffix is not None: + self.suffix = suffix + if middle_name is not None: + self.middle_name = middle_name + if country_iso2 is not None: + self.country_iso2 = country_iso2 + + @property + def id(self): + """Gets the id of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The id of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ParsedFullNameGeoIn. + + + :param id: The id of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The first_name of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this ParsedFullNameGeoIn. + + + :param first_name: The first_name of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The last_name of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this ParsedFullNameGeoIn. + + + :param last_name: The last_name of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def prefix_or_title(self): + """Gets the prefix_or_title of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The prefix_or_title of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._prefix_or_title + + @prefix_or_title.setter + def prefix_or_title(self, prefix_or_title): + """Sets the prefix_or_title of this ParsedFullNameGeoIn. + + + :param prefix_or_title: The prefix_or_title of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._prefix_or_title = prefix_or_title + + @property + def suffix(self): + """Gets the suffix of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The suffix of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """Sets the suffix of this ParsedFullNameGeoIn. + + + :param suffix: The suffix of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._suffix = suffix + + @property + def middle_name(self): + """Gets the middle_name of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The middle_name of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._middle_name + + @middle_name.setter + def middle_name(self, middle_name): + """Sets the middle_name of this ParsedFullNameGeoIn. + + + :param middle_name: The middle_name of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._middle_name = middle_name + + @property + def country_iso2(self): + """Gets the country_iso2 of this ParsedFullNameGeoIn. # noqa: E501 + + + :return: The country_iso2 of this ParsedFullNameGeoIn. # noqa: E501 + :rtype: str + """ + return self._country_iso2 + + @country_iso2.setter + def country_iso2(self, country_iso2): + """Sets the country_iso2 of this ParsedFullNameGeoIn. + + + :param country_iso2: The country_iso2 of this ParsedFullNameGeoIn. # noqa: E501 + :type: str + """ + + self._country_iso2 = country_iso2 + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParsedFullNameGeoIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/parsed_full_name_in.py b/openapi_client/com/namsor/sdk2/model/parsed_full_name_in.py new file mode 100644 index 0000000..2a4e921 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/parsed_full_name_in.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ParsedFullNameIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'first_name': 'str', + 'last_name': 'str', + 'prefix_or_title': 'str', + 'suffix': 'str', + 'middle_name': 'str' + } + + attribute_map = { + 'id': 'id', + 'first_name': 'firstName', + 'last_name': 'lastName', + 'prefix_or_title': 'prefixOrTitle', + 'suffix': 'suffix', + 'middle_name': 'middleName' + } + + def __init__(self, id=None, first_name=None, last_name=None, prefix_or_title=None, suffix=None, middle_name=None): # noqa: E501 + """ParsedFullNameIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._first_name = None + self._last_name = None + self._prefix_or_title = None + self._suffix = None + self._middle_name = None + self.discriminator = None + + if id is not None: + self.id = id + if first_name is not None: + self.first_name = first_name + if last_name is not None: + self.last_name = last_name + if prefix_or_title is not None: + self.prefix_or_title = prefix_or_title + if suffix is not None: + self.suffix = suffix + if middle_name is not None: + self.middle_name = middle_name + + @property + def id(self): + """Gets the id of this ParsedFullNameIn. # noqa: E501 + + + :return: The id of this ParsedFullNameIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ParsedFullNameIn. + + + :param id: The id of this ParsedFullNameIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def first_name(self): + """Gets the first_name of this ParsedFullNameIn. # noqa: E501 + + + :return: The first_name of this ParsedFullNameIn. # noqa: E501 + :rtype: str + """ + return self._first_name + + @first_name.setter + def first_name(self, first_name): + """Sets the first_name of this ParsedFullNameIn. + + + :param first_name: The first_name of this ParsedFullNameIn. # noqa: E501 + :type: str + """ + + self._first_name = first_name + + @property + def last_name(self): + """Gets the last_name of this ParsedFullNameIn. # noqa: E501 + + + :return: The last_name of this ParsedFullNameIn. # noqa: E501 + :rtype: str + """ + return self._last_name + + @last_name.setter + def last_name(self, last_name): + """Sets the last_name of this ParsedFullNameIn. + + + :param last_name: The last_name of this ParsedFullNameIn. # noqa: E501 + :type: str + """ + + self._last_name = last_name + + @property + def prefix_or_title(self): + """Gets the prefix_or_title of this ParsedFullNameIn. # noqa: E501 + + + :return: The prefix_or_title of this ParsedFullNameIn. # noqa: E501 + :rtype: str + """ + return self._prefix_or_title + + @prefix_or_title.setter + def prefix_or_title(self, prefix_or_title): + """Sets the prefix_or_title of this ParsedFullNameIn. + + + :param prefix_or_title: The prefix_or_title of this ParsedFullNameIn. # noqa: E501 + :type: str + """ + + self._prefix_or_title = prefix_or_title + + @property + def suffix(self): + """Gets the suffix of this ParsedFullNameIn. # noqa: E501 + + + :return: The suffix of this ParsedFullNameIn. # noqa: E501 + :rtype: str + """ + return self._suffix + + @suffix.setter + def suffix(self, suffix): + """Sets the suffix of this ParsedFullNameIn. + + + :param suffix: The suffix of this ParsedFullNameIn. # noqa: E501 + :type: str + """ + + self._suffix = suffix + + @property + def middle_name(self): + """Gets the middle_name of this ParsedFullNameIn. # noqa: E501 + + + :return: The middle_name of this ParsedFullNameIn. # noqa: E501 + :rtype: str + """ + return self._middle_name + + @middle_name.setter + def middle_name(self, middle_name): + """Sets the middle_name of this ParsedFullNameIn. + + + :param middle_name: The middle_name of this ParsedFullNameIn. # noqa: E501 + :type: str + """ + + self._middle_name = middle_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ParsedFullNameIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/personal_name_geo_out.py b/openapi_client/com/namsor/sdk2/model/personal_name_geo_out.py new file mode 100644 index 0000000..bf6071b --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/personal_name_geo_out.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PersonalNameGeoOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'name': 'str', + 'score': 'float', + 'country': 'str', + 'country_alt': 'str', + 'region': 'str', + 'top_region': 'str', + 'sub_region': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'score': 'score', + 'country': 'country', + 'country_alt': 'countryAlt', + 'region': 'region', + 'top_region': 'topRegion', + 'sub_region': 'subRegion' + } + + def __init__(self, id=None, name=None, score=None, country=None, country_alt=None, region=None, top_region=None, sub_region=None): # noqa: E501 + """PersonalNameGeoOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._name = None + self._score = None + self._country = None + self._country_alt = None + self._region = None + self._top_region = None + self._sub_region = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if score is not None: + self.score = score + if country is not None: + self.country = country + if country_alt is not None: + self.country_alt = country_alt + if region is not None: + self.region = region + if top_region is not None: + self.top_region = top_region + if sub_region is not None: + self.sub_region = sub_region + + @property + def id(self): + """Gets the id of this PersonalNameGeoOut. # noqa: E501 + + + :return: The id of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PersonalNameGeoOut. + + + :param id: The id of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this PersonalNameGeoOut. # noqa: E501 + + + :return: The name of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PersonalNameGeoOut. + + + :param name: The name of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def score(self): + """Gets the score of this PersonalNameGeoOut. # noqa: E501 + + + :return: The score of this PersonalNameGeoOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this PersonalNameGeoOut. + + + :param score: The score of this PersonalNameGeoOut. # noqa: E501 + :type: float + """ + + self._score = score + + @property + def country(self): + """Gets the country of this PersonalNameGeoOut. # noqa: E501 + + + :return: The country of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._country + + @country.setter + def country(self, country): + """Sets the country of this PersonalNameGeoOut. + + + :param country: The country of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._country = country + + @property + def country_alt(self): + """Gets the country_alt of this PersonalNameGeoOut. # noqa: E501 + + + :return: The country_alt of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._country_alt + + @country_alt.setter + def country_alt(self, country_alt): + """Sets the country_alt of this PersonalNameGeoOut. + + + :param country_alt: The country_alt of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._country_alt = country_alt + + @property + def region(self): + """Gets the region of this PersonalNameGeoOut. # noqa: E501 + + + :return: The region of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this PersonalNameGeoOut. + + + :param region: The region of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._region = region + + @property + def top_region(self): + """Gets the top_region of this PersonalNameGeoOut. # noqa: E501 + + + :return: The top_region of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._top_region + + @top_region.setter + def top_region(self, top_region): + """Sets the top_region of this PersonalNameGeoOut. + + + :param top_region: The top_region of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._top_region = top_region + + @property + def sub_region(self): + """Gets the sub_region of this PersonalNameGeoOut. # noqa: E501 + + + :return: The sub_region of this PersonalNameGeoOut. # noqa: E501 + :rtype: str + """ + return self._sub_region + + @sub_region.setter + def sub_region(self, sub_region): + """Sets the sub_region of this PersonalNameGeoOut. + + + :param sub_region: The sub_region of this PersonalNameGeoOut. # noqa: E501 + :type: str + """ + + self._sub_region = sub_region + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PersonalNameGeoOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/personal_name_in.py b/openapi_client/com/namsor/sdk2/model/personal_name_in.py new file mode 100644 index 0000000..13149c9 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/personal_name_in.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PersonalNameIn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """PersonalNameIn - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this PersonalNameIn. # noqa: E501 + + + :return: The id of this PersonalNameIn. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PersonalNameIn. + + + :param id: The id of this PersonalNameIn. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this PersonalNameIn. # noqa: E501 + + + :return: The name of this PersonalNameIn. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PersonalNameIn. + + + :param name: The name of this PersonalNameIn. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PersonalNameIn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/romanized_name_out.py b/openapi_client/com/namsor/sdk2/model/romanized_name_out.py new file mode 100644 index 0000000..d940cc2 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/romanized_name_out.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RomanizedNameOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'latin_name': 'str', + 'original_name': 'str', + 'source_language': 'str', + 'target_language': 'str', + 'source_script': 'str', + 'target_script': 'str', + 'score': 'float' + } + + attribute_map = { + 'id': 'id', + 'latin_name': 'latinName', + 'original_name': 'originalName', + 'source_language': 'sourceLanguage', + 'target_language': 'targetLanguage', + 'source_script': 'sourceScript', + 'target_script': 'targetScript', + 'score': 'score' + } + + def __init__(self, id=None, latin_name=None, original_name=None, source_language=None, target_language=None, source_script=None, target_script=None, score=None): # noqa: E501 + """RomanizedNameOut - a model defined in OpenAPI""" # noqa: E501 + + self._id = None + self._latin_name = None + self._original_name = None + self._source_language = None + self._target_language = None + self._source_script = None + self._target_script = None + self._score = None + self.discriminator = None + + if id is not None: + self.id = id + if latin_name is not None: + self.latin_name = latin_name + if original_name is not None: + self.original_name = original_name + if source_language is not None: + self.source_language = source_language + if target_language is not None: + self.target_language = target_language + if source_script is not None: + self.source_script = source_script + if target_script is not None: + self.target_script = target_script + if score is not None: + self.score = score + + @property + def id(self): + """Gets the id of this RomanizedNameOut. # noqa: E501 + + + :return: The id of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this RomanizedNameOut. + + + :param id: The id of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def latin_name(self): + """Gets the latin_name of this RomanizedNameOut. # noqa: E501 + + + :return: The latin_name of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._latin_name + + @latin_name.setter + def latin_name(self, latin_name): + """Sets the latin_name of this RomanizedNameOut. + + + :param latin_name: The latin_name of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._latin_name = latin_name + + @property + def original_name(self): + """Gets the original_name of this RomanizedNameOut. # noqa: E501 + + + :return: The original_name of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._original_name + + @original_name.setter + def original_name(self, original_name): + """Sets the original_name of this RomanizedNameOut. + + + :param original_name: The original_name of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._original_name = original_name + + @property + def source_language(self): + """Gets the source_language of this RomanizedNameOut. # noqa: E501 + + + :return: The source_language of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._source_language + + @source_language.setter + def source_language(self, source_language): + """Sets the source_language of this RomanizedNameOut. + + + :param source_language: The source_language of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._source_language = source_language + + @property + def target_language(self): + """Gets the target_language of this RomanizedNameOut. # noqa: E501 + + + :return: The target_language of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._target_language + + @target_language.setter + def target_language(self, target_language): + """Sets the target_language of this RomanizedNameOut. + + + :param target_language: The target_language of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._target_language = target_language + + @property + def source_script(self): + """Gets the source_script of this RomanizedNameOut. # noqa: E501 + + + :return: The source_script of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._source_script + + @source_script.setter + def source_script(self, source_script): + """Sets the source_script of this RomanizedNameOut. + + + :param source_script: The source_script of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._source_script = source_script + + @property + def target_script(self): + """Gets the target_script of this RomanizedNameOut. # noqa: E501 + + + :return: The target_script of this RomanizedNameOut. # noqa: E501 + :rtype: str + """ + return self._target_script + + @target_script.setter + def target_script(self, target_script): + """Sets the target_script of this RomanizedNameOut. + + + :param target_script: The target_script of this RomanizedNameOut. # noqa: E501 + :type: str + """ + + self._target_script = target_script + + @property + def score(self): + """Gets the score of this RomanizedNameOut. # noqa: E501 + + + :return: The score of this RomanizedNameOut. # noqa: E501 + :rtype: float + """ + return self._score + + @score.setter + def score(self, score): + """Sets the score of this RomanizedNameOut. + + + :param score: The score of this RomanizedNameOut. # noqa: E501 + :type: float + """ + + self._score = score + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RomanizedNameOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/software_version_out.py b/openapi_client/com/namsor/sdk2/model/software_version_out.py new file mode 100644 index 0000000..5ee34ba --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/software_version_out.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SoftwareVersionOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'software_name_and_version': 'str', + 'software_version': 'list[int]' + } + + attribute_map = { + 'software_name_and_version': 'softwareNameAndVersion', + 'software_version': 'softwareVersion' + } + + def __init__(self, software_name_and_version=None, software_version=None): # noqa: E501 + """SoftwareVersionOut - a model defined in OpenAPI""" # noqa: E501 + + self._software_name_and_version = None + self._software_version = None + self.discriminator = None + + if software_name_and_version is not None: + self.software_name_and_version = software_name_and_version + if software_version is not None: + self.software_version = software_version + + @property + def software_name_and_version(self): + """Gets the software_name_and_version of this SoftwareVersionOut. # noqa: E501 + + + :return: The software_name_and_version of this SoftwareVersionOut. # noqa: E501 + :rtype: str + """ + return self._software_name_and_version + + @software_name_and_version.setter + def software_name_and_version(self, software_name_and_version): + """Sets the software_name_and_version of this SoftwareVersionOut. + + + :param software_name_and_version: The software_name_and_version of this SoftwareVersionOut. # noqa: E501 + :type: str + """ + + self._software_name_and_version = software_name_and_version + + @property + def software_version(self): + """Gets the software_version of this SoftwareVersionOut. # noqa: E501 + + + :return: The software_version of this SoftwareVersionOut. # noqa: E501 + :rtype: list[int] + """ + return self._software_version + + @software_version.setter + def software_version(self, software_version): + """Sets the software_version of this SoftwareVersionOut. + + + :param software_version: The software_version of this SoftwareVersionOut. # noqa: E501 + :type: list[int] + """ + + self._software_version = software_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SoftwareVersionOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/source_detailed_metrics_out.py b/openapi_client/com/namsor/sdk2/model/source_detailed_metrics_out.py new file mode 100644 index 0000000..28da833 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/source_detailed_metrics_out.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SourceDetailedMetricsOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'classifier_name': 'str', + 'source': 'APIKeyOut', + 'ai_estimate_total': 'int', + 'ai_estimate_precision': 'float', + 'ai_estimate_recall': 'float', + 'metric_time_stamp': 'int', + 'ai_start_time': 'int', + 'ai_learn_total': 'int', + 'snapshot_date': 'int', + 'expected_class_metrics': 'list[ExpectedClassMetricsOut]' + } + + attribute_map = { + 'classifier_name': 'classifierName', + 'source': 'source', + 'ai_estimate_total': 'aiEstimateTotal', + 'ai_estimate_precision': 'aiEstimatePrecision', + 'ai_estimate_recall': 'aiEstimateRecall', + 'metric_time_stamp': 'metricTimeStamp', + 'ai_start_time': 'aiStartTime', + 'ai_learn_total': 'aiLearnTotal', + 'snapshot_date': 'snapshotDate', + 'expected_class_metrics': 'expectedClassMetrics' + } + + def __init__(self, classifier_name=None, source=None, ai_estimate_total=None, ai_estimate_precision=None, ai_estimate_recall=None, metric_time_stamp=None, ai_start_time=None, ai_learn_total=None, snapshot_date=None, expected_class_metrics=None): # noqa: E501 + """SourceDetailedMetricsOut - a model defined in OpenAPI""" # noqa: E501 + + self._classifier_name = None + self._source = None + self._ai_estimate_total = None + self._ai_estimate_precision = None + self._ai_estimate_recall = None + self._metric_time_stamp = None + self._ai_start_time = None + self._ai_learn_total = None + self._snapshot_date = None + self._expected_class_metrics = None + self.discriminator = None + + if classifier_name is not None: + self.classifier_name = classifier_name + if source is not None: + self.source = source + if ai_estimate_total is not None: + self.ai_estimate_total = ai_estimate_total + if ai_estimate_precision is not None: + self.ai_estimate_precision = ai_estimate_precision + if ai_estimate_recall is not None: + self.ai_estimate_recall = ai_estimate_recall + if metric_time_stamp is not None: + self.metric_time_stamp = metric_time_stamp + if ai_start_time is not None: + self.ai_start_time = ai_start_time + if ai_learn_total is not None: + self.ai_learn_total = ai_learn_total + if snapshot_date is not None: + self.snapshot_date = snapshot_date + if expected_class_metrics is not None: + self.expected_class_metrics = expected_class_metrics + + @property + def classifier_name(self): + """Gets the classifier_name of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The classifier_name of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: str + """ + return self._classifier_name + + @classifier_name.setter + def classifier_name(self, classifier_name): + """Sets the classifier_name of this SourceDetailedMetricsOut. + + + :param classifier_name: The classifier_name of this SourceDetailedMetricsOut. # noqa: E501 + :type: str + """ + + self._classifier_name = classifier_name + + @property + def source(self): + """Gets the source of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The source of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: APIKeyOut + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this SourceDetailedMetricsOut. + + + :param source: The source of this SourceDetailedMetricsOut. # noqa: E501 + :type: APIKeyOut + """ + + self._source = source + + @property + def ai_estimate_total(self): + """Gets the ai_estimate_total of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The ai_estimate_total of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_estimate_total + + @ai_estimate_total.setter + def ai_estimate_total(self, ai_estimate_total): + """Sets the ai_estimate_total of this SourceDetailedMetricsOut. + + + :param ai_estimate_total: The ai_estimate_total of this SourceDetailedMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_estimate_total = ai_estimate_total + + @property + def ai_estimate_precision(self): + """Gets the ai_estimate_precision of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The ai_estimate_precision of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_estimate_precision + + @ai_estimate_precision.setter + def ai_estimate_precision(self, ai_estimate_precision): + """Sets the ai_estimate_precision of this SourceDetailedMetricsOut. + + + :param ai_estimate_precision: The ai_estimate_precision of this SourceDetailedMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_estimate_precision = ai_estimate_precision + + @property + def ai_estimate_recall(self): + """Gets the ai_estimate_recall of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The ai_estimate_recall of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_estimate_recall + + @ai_estimate_recall.setter + def ai_estimate_recall(self, ai_estimate_recall): + """Sets the ai_estimate_recall of this SourceDetailedMetricsOut. + + + :param ai_estimate_recall: The ai_estimate_recall of this SourceDetailedMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_estimate_recall = ai_estimate_recall + + @property + def metric_time_stamp(self): + """Gets the metric_time_stamp of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The metric_time_stamp of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: int + """ + return self._metric_time_stamp + + @metric_time_stamp.setter + def metric_time_stamp(self, metric_time_stamp): + """Sets the metric_time_stamp of this SourceDetailedMetricsOut. + + + :param metric_time_stamp: The metric_time_stamp of this SourceDetailedMetricsOut. # noqa: E501 + :type: int + """ + + self._metric_time_stamp = metric_time_stamp + + @property + def ai_start_time(self): + """Gets the ai_start_time of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The ai_start_time of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_start_time + + @ai_start_time.setter + def ai_start_time(self, ai_start_time): + """Sets the ai_start_time of this SourceDetailedMetricsOut. + + + :param ai_start_time: The ai_start_time of this SourceDetailedMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_start_time = ai_start_time + + @property + def ai_learn_total(self): + """Gets the ai_learn_total of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The ai_learn_total of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_learn_total + + @ai_learn_total.setter + def ai_learn_total(self, ai_learn_total): + """Sets the ai_learn_total of this SourceDetailedMetricsOut. + + + :param ai_learn_total: The ai_learn_total of this SourceDetailedMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_learn_total = ai_learn_total + + @property + def snapshot_date(self): + """Gets the snapshot_date of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The snapshot_date of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: int + """ + return self._snapshot_date + + @snapshot_date.setter + def snapshot_date(self, snapshot_date): + """Sets the snapshot_date of this SourceDetailedMetricsOut. + + + :param snapshot_date: The snapshot_date of this SourceDetailedMetricsOut. # noqa: E501 + :type: int + """ + + self._snapshot_date = snapshot_date + + @property + def expected_class_metrics(self): + """Gets the expected_class_metrics of this SourceDetailedMetricsOut. # noqa: E501 + + + :return: The expected_class_metrics of this SourceDetailedMetricsOut. # noqa: E501 + :rtype: list[ExpectedClassMetricsOut] + """ + return self._expected_class_metrics + + @expected_class_metrics.setter + def expected_class_metrics(self, expected_class_metrics): + """Sets the expected_class_metrics of this SourceDetailedMetricsOut. + + + :param expected_class_metrics: The expected_class_metrics of this SourceDetailedMetricsOut. # noqa: E501 + :type: list[ExpectedClassMetricsOut] + """ + + self._expected_class_metrics = expected_class_metrics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SourceDetailedMetricsOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/source_metrics_out.py b/openapi_client/com/namsor/sdk2/model/source_metrics_out.py new file mode 100644 index 0000000..0e6ad69 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/source_metrics_out.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SourceMetricsOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'classifier_name': 'str', + 'source': 'APIKeyOut', + 'ai_estimate_total': 'int', + 'ai_estimate_precision': 'float', + 'ai_estimate_recall': 'float', + 'metric_time_stamp': 'int', + 'ai_start_time': 'int', + 'ai_learn_total': 'int', + 'snapshot_date': 'int' + } + + attribute_map = { + 'classifier_name': 'classifierName', + 'source': 'source', + 'ai_estimate_total': 'aiEstimateTotal', + 'ai_estimate_precision': 'aiEstimatePrecision', + 'ai_estimate_recall': 'aiEstimateRecall', + 'metric_time_stamp': 'metricTimeStamp', + 'ai_start_time': 'aiStartTime', + 'ai_learn_total': 'aiLearnTotal', + 'snapshot_date': 'snapshotDate' + } + + def __init__(self, classifier_name=None, source=None, ai_estimate_total=None, ai_estimate_precision=None, ai_estimate_recall=None, metric_time_stamp=None, ai_start_time=None, ai_learn_total=None, snapshot_date=None): # noqa: E501 + """SourceMetricsOut - a model defined in OpenAPI""" # noqa: E501 + + self._classifier_name = None + self._source = None + self._ai_estimate_total = None + self._ai_estimate_precision = None + self._ai_estimate_recall = None + self._metric_time_stamp = None + self._ai_start_time = None + self._ai_learn_total = None + self._snapshot_date = None + self.discriminator = None + + if classifier_name is not None: + self.classifier_name = classifier_name + if source is not None: + self.source = source + if ai_estimate_total is not None: + self.ai_estimate_total = ai_estimate_total + if ai_estimate_precision is not None: + self.ai_estimate_precision = ai_estimate_precision + if ai_estimate_recall is not None: + self.ai_estimate_recall = ai_estimate_recall + if metric_time_stamp is not None: + self.metric_time_stamp = metric_time_stamp + if ai_start_time is not None: + self.ai_start_time = ai_start_time + if ai_learn_total is not None: + self.ai_learn_total = ai_learn_total + if snapshot_date is not None: + self.snapshot_date = snapshot_date + + @property + def classifier_name(self): + """Gets the classifier_name of this SourceMetricsOut. # noqa: E501 + + + :return: The classifier_name of this SourceMetricsOut. # noqa: E501 + :rtype: str + """ + return self._classifier_name + + @classifier_name.setter + def classifier_name(self, classifier_name): + """Sets the classifier_name of this SourceMetricsOut. + + + :param classifier_name: The classifier_name of this SourceMetricsOut. # noqa: E501 + :type: str + """ + + self._classifier_name = classifier_name + + @property + def source(self): + """Gets the source of this SourceMetricsOut. # noqa: E501 + + + :return: The source of this SourceMetricsOut. # noqa: E501 + :rtype: APIKeyOut + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this SourceMetricsOut. + + + :param source: The source of this SourceMetricsOut. # noqa: E501 + :type: APIKeyOut + """ + + self._source = source + + @property + def ai_estimate_total(self): + """Gets the ai_estimate_total of this SourceMetricsOut. # noqa: E501 + + + :return: The ai_estimate_total of this SourceMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_estimate_total + + @ai_estimate_total.setter + def ai_estimate_total(self, ai_estimate_total): + """Sets the ai_estimate_total of this SourceMetricsOut. + + + :param ai_estimate_total: The ai_estimate_total of this SourceMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_estimate_total = ai_estimate_total + + @property + def ai_estimate_precision(self): + """Gets the ai_estimate_precision of this SourceMetricsOut. # noqa: E501 + + + :return: The ai_estimate_precision of this SourceMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_estimate_precision + + @ai_estimate_precision.setter + def ai_estimate_precision(self, ai_estimate_precision): + """Sets the ai_estimate_precision of this SourceMetricsOut. + + + :param ai_estimate_precision: The ai_estimate_precision of this SourceMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_estimate_precision = ai_estimate_precision + + @property + def ai_estimate_recall(self): + """Gets the ai_estimate_recall of this SourceMetricsOut. # noqa: E501 + + + :return: The ai_estimate_recall of this SourceMetricsOut. # noqa: E501 + :rtype: float + """ + return self._ai_estimate_recall + + @ai_estimate_recall.setter + def ai_estimate_recall(self, ai_estimate_recall): + """Sets the ai_estimate_recall of this SourceMetricsOut. + + + :param ai_estimate_recall: The ai_estimate_recall of this SourceMetricsOut. # noqa: E501 + :type: float + """ + + self._ai_estimate_recall = ai_estimate_recall + + @property + def metric_time_stamp(self): + """Gets the metric_time_stamp of this SourceMetricsOut. # noqa: E501 + + + :return: The metric_time_stamp of this SourceMetricsOut. # noqa: E501 + :rtype: int + """ + return self._metric_time_stamp + + @metric_time_stamp.setter + def metric_time_stamp(self, metric_time_stamp): + """Sets the metric_time_stamp of this SourceMetricsOut. + + + :param metric_time_stamp: The metric_time_stamp of this SourceMetricsOut. # noqa: E501 + :type: int + """ + + self._metric_time_stamp = metric_time_stamp + + @property + def ai_start_time(self): + """Gets the ai_start_time of this SourceMetricsOut. # noqa: E501 + + + :return: The ai_start_time of this SourceMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_start_time + + @ai_start_time.setter + def ai_start_time(self, ai_start_time): + """Sets the ai_start_time of this SourceMetricsOut. + + + :param ai_start_time: The ai_start_time of this SourceMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_start_time = ai_start_time + + @property + def ai_learn_total(self): + """Gets the ai_learn_total of this SourceMetricsOut. # noqa: E501 + + + :return: The ai_learn_total of this SourceMetricsOut. # noqa: E501 + :rtype: int + """ + return self._ai_learn_total + + @ai_learn_total.setter + def ai_learn_total(self, ai_learn_total): + """Sets the ai_learn_total of this SourceMetricsOut. + + + :param ai_learn_total: The ai_learn_total of this SourceMetricsOut. # noqa: E501 + :type: int + """ + + self._ai_learn_total = ai_learn_total + + @property + def snapshot_date(self): + """Gets the snapshot_date of this SourceMetricsOut. # noqa: E501 + + + :return: The snapshot_date of this SourceMetricsOut. # noqa: E501 + :rtype: int + """ + return self._snapshot_date + + @snapshot_date.setter + def snapshot_date(self, snapshot_date): + """Sets the snapshot_date of this SourceMetricsOut. + + + :param snapshot_date: The snapshot_date of this SourceMetricsOut. # noqa: E501 + :type: int + """ + + self._snapshot_date = snapshot_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SourceMetricsOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/stripe_card_out.py b/openapi_client/com/namsor/sdk2/model/stripe_card_out.py new file mode 100644 index 0000000..4001ebe --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/stripe_card_out.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StripeCardOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'default_card': 'bool', + 'source_id': 'str', + 'exp_month': 'int', + 'exp_year': 'int', + 'last4': 'str', + 'brand': 'str' + } + + attribute_map = { + 'default_card': 'defaultCard', + 'source_id': 'sourceId', + 'exp_month': 'expMonth', + 'exp_year': 'expYear', + 'last4': 'last4', + 'brand': 'brand' + } + + def __init__(self, default_card=None, source_id=None, exp_month=None, exp_year=None, last4=None, brand=None): # noqa: E501 + """StripeCardOut - a model defined in OpenAPI""" # noqa: E501 + + self._default_card = None + self._source_id = None + self._exp_month = None + self._exp_year = None + self._last4 = None + self._brand = None + self.discriminator = None + + if default_card is not None: + self.default_card = default_card + if source_id is not None: + self.source_id = source_id + if exp_month is not None: + self.exp_month = exp_month + if exp_year is not None: + self.exp_year = exp_year + if last4 is not None: + self.last4 = last4 + if brand is not None: + self.brand = brand + + @property + def default_card(self): + """Gets the default_card of this StripeCardOut. # noqa: E501 + + + :return: The default_card of this StripeCardOut. # noqa: E501 + :rtype: bool + """ + return self._default_card + + @default_card.setter + def default_card(self, default_card): + """Sets the default_card of this StripeCardOut. + + + :param default_card: The default_card of this StripeCardOut. # noqa: E501 + :type: bool + """ + + self._default_card = default_card + + @property + def source_id(self): + """Gets the source_id of this StripeCardOut. # noqa: E501 + + + :return: The source_id of this StripeCardOut. # noqa: E501 + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """Sets the source_id of this StripeCardOut. + + + :param source_id: The source_id of this StripeCardOut. # noqa: E501 + :type: str + """ + + self._source_id = source_id + + @property + def exp_month(self): + """Gets the exp_month of this StripeCardOut. # noqa: E501 + + + :return: The exp_month of this StripeCardOut. # noqa: E501 + :rtype: int + """ + return self._exp_month + + @exp_month.setter + def exp_month(self, exp_month): + """Sets the exp_month of this StripeCardOut. + + + :param exp_month: The exp_month of this StripeCardOut. # noqa: E501 + :type: int + """ + + self._exp_month = exp_month + + @property + def exp_year(self): + """Gets the exp_year of this StripeCardOut. # noqa: E501 + + + :return: The exp_year of this StripeCardOut. # noqa: E501 + :rtype: int + """ + return self._exp_year + + @exp_year.setter + def exp_year(self, exp_year): + """Sets the exp_year of this StripeCardOut. + + + :param exp_year: The exp_year of this StripeCardOut. # noqa: E501 + :type: int + """ + + self._exp_year = exp_year + + @property + def last4(self): + """Gets the last4 of this StripeCardOut. # noqa: E501 + + + :return: The last4 of this StripeCardOut. # noqa: E501 + :rtype: str + """ + return self._last4 + + @last4.setter + def last4(self, last4): + """Sets the last4 of this StripeCardOut. + + + :param last4: The last4 of this StripeCardOut. # noqa: E501 + :type: str + """ + + self._last4 = last4 + + @property + def brand(self): + """Gets the brand of this StripeCardOut. # noqa: E501 + + + :return: The brand of this StripeCardOut. # noqa: E501 + :rtype: str + """ + return self._brand + + @brand.setter + def brand(self, brand): + """Sets the brand of this StripeCardOut. + + + :param brand: The brand of this StripeCardOut. # noqa: E501 + :type: str + """ + + self._brand = brand + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StripeCardOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/stripe_customer_out.py b/openapi_client/com/namsor/sdk2/model/stripe_customer_out.py new file mode 100644 index 0000000..966e271 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/stripe_customer_out.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class StripeCustomerOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'stripe_customer_id': 'str', + 'source_country': 'str', + 'source_currency': 'str', + 'striped_cards': 'list[StripeCardOut]' + } + + attribute_map = { + 'stripe_customer_id': 'stripeCustomerId', + 'source_country': 'sourceCountry', + 'source_currency': 'sourceCurrency', + 'striped_cards': 'stripedCards' + } + + def __init__(self, stripe_customer_id=None, source_country=None, source_currency=None, striped_cards=None): # noqa: E501 + """StripeCustomerOut - a model defined in OpenAPI""" # noqa: E501 + + self._stripe_customer_id = None + self._source_country = None + self._source_currency = None + self._striped_cards = None + self.discriminator = None + + if stripe_customer_id is not None: + self.stripe_customer_id = stripe_customer_id + if source_country is not None: + self.source_country = source_country + if source_currency is not None: + self.source_currency = source_currency + if striped_cards is not None: + self.striped_cards = striped_cards + + @property + def stripe_customer_id(self): + """Gets the stripe_customer_id of this StripeCustomerOut. # noqa: E501 + + + :return: The stripe_customer_id of this StripeCustomerOut. # noqa: E501 + :rtype: str + """ + return self._stripe_customer_id + + @stripe_customer_id.setter + def stripe_customer_id(self, stripe_customer_id): + """Sets the stripe_customer_id of this StripeCustomerOut. + + + :param stripe_customer_id: The stripe_customer_id of this StripeCustomerOut. # noqa: E501 + :type: str + """ + + self._stripe_customer_id = stripe_customer_id + + @property + def source_country(self): + """Gets the source_country of this StripeCustomerOut. # noqa: E501 + + + :return: The source_country of this StripeCustomerOut. # noqa: E501 + :rtype: str + """ + return self._source_country + + @source_country.setter + def source_country(self, source_country): + """Sets the source_country of this StripeCustomerOut. + + + :param source_country: The source_country of this StripeCustomerOut. # noqa: E501 + :type: str + """ + + self._source_country = source_country + + @property + def source_currency(self): + """Gets the source_currency of this StripeCustomerOut. # noqa: E501 + + + :return: The source_currency of this StripeCustomerOut. # noqa: E501 + :rtype: str + """ + return self._source_currency + + @source_currency.setter + def source_currency(self, source_currency): + """Sets the source_currency of this StripeCustomerOut. + + + :param source_currency: The source_currency of this StripeCustomerOut. # noqa: E501 + :type: str + """ + + self._source_currency = source_currency + + @property + def striped_cards(self): + """Gets the striped_cards of this StripeCustomerOut. # noqa: E501 + + + :return: The striped_cards of this StripeCustomerOut. # noqa: E501 + :rtype: list[StripeCardOut] + """ + return self._striped_cards + + @striped_cards.setter + def striped_cards(self, striped_cards): + """Sets the striped_cards of this StripeCustomerOut. + + + :param striped_cards: The striped_cards of this StripeCustomerOut. # noqa: E501 + :type: list[StripeCardOut] + """ + + self._striped_cards = striped_cards + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StripeCustomerOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/system_metrics_out.py b/openapi_client/com/namsor/sdk2/model/system_metrics_out.py new file mode 100644 index 0000000..31050ee --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/system_metrics_out.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SystemMetricsOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'classifier_metrics': 'list[ClassifierMetricsOut]', + 'source_metrics': 'list[SourceMetricsOut]', + 'total_mem': 'int', + 'free_mem': 'int', + 'max_mem': 'int' + } + + attribute_map = { + 'classifier_metrics': 'classifierMetrics', + 'source_metrics': 'sourceMetrics', + 'total_mem': 'totalMem', + 'free_mem': 'freeMem', + 'max_mem': 'maxMem' + } + + def __init__(self, classifier_metrics=None, source_metrics=None, total_mem=None, free_mem=None, max_mem=None): # noqa: E501 + """SystemMetricsOut - a model defined in OpenAPI""" # noqa: E501 + + self._classifier_metrics = None + self._source_metrics = None + self._total_mem = None + self._free_mem = None + self._max_mem = None + self.discriminator = None + + if classifier_metrics is not None: + self.classifier_metrics = classifier_metrics + if source_metrics is not None: + self.source_metrics = source_metrics + if total_mem is not None: + self.total_mem = total_mem + if free_mem is not None: + self.free_mem = free_mem + if max_mem is not None: + self.max_mem = max_mem + + @property + def classifier_metrics(self): + """Gets the classifier_metrics of this SystemMetricsOut. # noqa: E501 + + + :return: The classifier_metrics of this SystemMetricsOut. # noqa: E501 + :rtype: list[ClassifierMetricsOut] + """ + return self._classifier_metrics + + @classifier_metrics.setter + def classifier_metrics(self, classifier_metrics): + """Sets the classifier_metrics of this SystemMetricsOut. + + + :param classifier_metrics: The classifier_metrics of this SystemMetricsOut. # noqa: E501 + :type: list[ClassifierMetricsOut] + """ + + self._classifier_metrics = classifier_metrics + + @property + def source_metrics(self): + """Gets the source_metrics of this SystemMetricsOut. # noqa: E501 + + + :return: The source_metrics of this SystemMetricsOut. # noqa: E501 + :rtype: list[SourceMetricsOut] + """ + return self._source_metrics + + @source_metrics.setter + def source_metrics(self, source_metrics): + """Sets the source_metrics of this SystemMetricsOut. + + + :param source_metrics: The source_metrics of this SystemMetricsOut. # noqa: E501 + :type: list[SourceMetricsOut] + """ + + self._source_metrics = source_metrics + + @property + def total_mem(self): + """Gets the total_mem of this SystemMetricsOut. # noqa: E501 + + + :return: The total_mem of this SystemMetricsOut. # noqa: E501 + :rtype: int + """ + return self._total_mem + + @total_mem.setter + def total_mem(self, total_mem): + """Sets the total_mem of this SystemMetricsOut. + + + :param total_mem: The total_mem of this SystemMetricsOut. # noqa: E501 + :type: int + """ + + self._total_mem = total_mem + + @property + def free_mem(self): + """Gets the free_mem of this SystemMetricsOut. # noqa: E501 + + + :return: The free_mem of this SystemMetricsOut. # noqa: E501 + :rtype: int + """ + return self._free_mem + + @free_mem.setter + def free_mem(self, free_mem): + """Sets the free_mem of this SystemMetricsOut. + + + :param free_mem: The free_mem of this SystemMetricsOut. # noqa: E501 + :type: int + """ + + self._free_mem = free_mem + + @property + def max_mem(self): + """Gets the max_mem of this SystemMetricsOut. # noqa: E501 + + + :return: The max_mem of this SystemMetricsOut. # noqa: E501 + :rtype: int + """ + return self._max_mem + + @max_mem.setter + def max_mem(self, max_mem): + """Sets the max_mem of this SystemMetricsOut. + + + :param max_mem: The max_mem of this SystemMetricsOut. # noqa: E501 + :type: int + """ + + self._max_mem = max_mem + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SystemMetricsOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/com/namsor/sdk2/model/user_info_out.py b/openapi_client/com/namsor/sdk2/model/user_info_out.py new file mode 100644 index 0000000..8368400 --- /dev/null +++ b/openapi_client/com/namsor/sdk2/model/user_info_out.py @@ -0,0 +1,477 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class UserInfoOut(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'uid': 'str', + 'email': 'str', + 'phone_number': 'str', + 'email_verified': 'bool', + 'display_name': 'str', + 'photo_url': 'str', + 'disabled': 'bool', + 'first_known_ip_address': 'str', + 'provider_id': 'str', + 'time_stamp': 'int', + 'verify_token': 'str', + 'api_key': 'str', + 'stripe_perishable_key': 'str', + 'stripe_customer_id': 'str', + 'other_infos': 'list[UserInfoOut]' + } + + attribute_map = { + 'uid': 'uid', + 'email': 'email', + 'phone_number': 'phoneNumber', + 'email_verified': 'emailVerified', + 'display_name': 'displayName', + 'photo_url': 'photoUrl', + 'disabled': 'disabled', + 'first_known_ip_address': 'firstKnownIpAddress', + 'provider_id': 'providerId', + 'time_stamp': 'timeStamp', + 'verify_token': 'verifyToken', + 'api_key': 'apiKey', + 'stripe_perishable_key': 'stripePerishableKey', + 'stripe_customer_id': 'stripeCustomerId', + 'other_infos': 'otherInfos' + } + + def __init__(self, uid=None, email=None, phone_number=None, email_verified=None, display_name=None, photo_url=None, disabled=None, first_known_ip_address=None, provider_id=None, time_stamp=None, verify_token=None, api_key=None, stripe_perishable_key=None, stripe_customer_id=None, other_infos=None): # noqa: E501 + """UserInfoOut - a model defined in OpenAPI""" # noqa: E501 + + self._uid = None + self._email = None + self._phone_number = None + self._email_verified = None + self._display_name = None + self._photo_url = None + self._disabled = None + self._first_known_ip_address = None + self._provider_id = None + self._time_stamp = None + self._verify_token = None + self._api_key = None + self._stripe_perishable_key = None + self._stripe_customer_id = None + self._other_infos = None + self.discriminator = None + + if uid is not None: + self.uid = uid + if email is not None: + self.email = email + if phone_number is not None: + self.phone_number = phone_number + if email_verified is not None: + self.email_verified = email_verified + if display_name is not None: + self.display_name = display_name + if photo_url is not None: + self.photo_url = photo_url + if disabled is not None: + self.disabled = disabled + if first_known_ip_address is not None: + self.first_known_ip_address = first_known_ip_address + if provider_id is not None: + self.provider_id = provider_id + if time_stamp is not None: + self.time_stamp = time_stamp + if verify_token is not None: + self.verify_token = verify_token + if api_key is not None: + self.api_key = api_key + if stripe_perishable_key is not None: + self.stripe_perishable_key = stripe_perishable_key + if stripe_customer_id is not None: + self.stripe_customer_id = stripe_customer_id + if other_infos is not None: + self.other_infos = other_infos + + @property + def uid(self): + """Gets the uid of this UserInfoOut. # noqa: E501 + + + :return: The uid of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """Sets the uid of this UserInfoOut. + + + :param uid: The uid of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._uid = uid + + @property + def email(self): + """Gets the email of this UserInfoOut. # noqa: E501 + + + :return: The email of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this UserInfoOut. + + + :param email: The email of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def phone_number(self): + """Gets the phone_number of this UserInfoOut. # noqa: E501 + + + :return: The phone_number of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._phone_number + + @phone_number.setter + def phone_number(self, phone_number): + """Sets the phone_number of this UserInfoOut. + + + :param phone_number: The phone_number of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._phone_number = phone_number + + @property + def email_verified(self): + """Gets the email_verified of this UserInfoOut. # noqa: E501 + + + :return: The email_verified of this UserInfoOut. # noqa: E501 + :rtype: bool + """ + return self._email_verified + + @email_verified.setter + def email_verified(self, email_verified): + """Sets the email_verified of this UserInfoOut. + + + :param email_verified: The email_verified of this UserInfoOut. # noqa: E501 + :type: bool + """ + + self._email_verified = email_verified + + @property + def display_name(self): + """Gets the display_name of this UserInfoOut. # noqa: E501 + + + :return: The display_name of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this UserInfoOut. + + + :param display_name: The display_name of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._display_name = display_name + + @property + def photo_url(self): + """Gets the photo_url of this UserInfoOut. # noqa: E501 + + + :return: The photo_url of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._photo_url + + @photo_url.setter + def photo_url(self, photo_url): + """Sets the photo_url of this UserInfoOut. + + + :param photo_url: The photo_url of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._photo_url = photo_url + + @property + def disabled(self): + """Gets the disabled of this UserInfoOut. # noqa: E501 + + + :return: The disabled of this UserInfoOut. # noqa: E501 + :rtype: bool + """ + return self._disabled + + @disabled.setter + def disabled(self, disabled): + """Sets the disabled of this UserInfoOut. + + + :param disabled: The disabled of this UserInfoOut. # noqa: E501 + :type: bool + """ + + self._disabled = disabled + + @property + def first_known_ip_address(self): + """Gets the first_known_ip_address of this UserInfoOut. # noqa: E501 + + + :return: The first_known_ip_address of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._first_known_ip_address + + @first_known_ip_address.setter + def first_known_ip_address(self, first_known_ip_address): + """Sets the first_known_ip_address of this UserInfoOut. + + + :param first_known_ip_address: The first_known_ip_address of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._first_known_ip_address = first_known_ip_address + + @property + def provider_id(self): + """Gets the provider_id of this UserInfoOut. # noqa: E501 + + + :return: The provider_id of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._provider_id + + @provider_id.setter + def provider_id(self, provider_id): + """Sets the provider_id of this UserInfoOut. + + + :param provider_id: The provider_id of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._provider_id = provider_id + + @property + def time_stamp(self): + """Gets the time_stamp of this UserInfoOut. # noqa: E501 + + + :return: The time_stamp of this UserInfoOut. # noqa: E501 + :rtype: int + """ + return self._time_stamp + + @time_stamp.setter + def time_stamp(self, time_stamp): + """Sets the time_stamp of this UserInfoOut. + + + :param time_stamp: The time_stamp of this UserInfoOut. # noqa: E501 + :type: int + """ + + self._time_stamp = time_stamp + + @property + def verify_token(self): + """Gets the verify_token of this UserInfoOut. # noqa: E501 + + + :return: The verify_token of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._verify_token + + @verify_token.setter + def verify_token(self, verify_token): + """Sets the verify_token of this UserInfoOut. + + + :param verify_token: The verify_token of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._verify_token = verify_token + + @property + def api_key(self): + """Gets the api_key of this UserInfoOut. # noqa: E501 + + + :return: The api_key of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._api_key + + @api_key.setter + def api_key(self, api_key): + """Sets the api_key of this UserInfoOut. + + + :param api_key: The api_key of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._api_key = api_key + + @property + def stripe_perishable_key(self): + """Gets the stripe_perishable_key of this UserInfoOut. # noqa: E501 + + + :return: The stripe_perishable_key of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._stripe_perishable_key + + @stripe_perishable_key.setter + def stripe_perishable_key(self, stripe_perishable_key): + """Sets the stripe_perishable_key of this UserInfoOut. + + + :param stripe_perishable_key: The stripe_perishable_key of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._stripe_perishable_key = stripe_perishable_key + + @property + def stripe_customer_id(self): + """Gets the stripe_customer_id of this UserInfoOut. # noqa: E501 + + + :return: The stripe_customer_id of this UserInfoOut. # noqa: E501 + :rtype: str + """ + return self._stripe_customer_id + + @stripe_customer_id.setter + def stripe_customer_id(self, stripe_customer_id): + """Sets the stripe_customer_id of this UserInfoOut. + + + :param stripe_customer_id: The stripe_customer_id of this UserInfoOut. # noqa: E501 + :type: str + """ + + self._stripe_customer_id = stripe_customer_id + + @property + def other_infos(self): + """Gets the other_infos of this UserInfoOut. # noqa: E501 + + + :return: The other_infos of this UserInfoOut. # noqa: E501 + :rtype: list[UserInfoOut] + """ + return self._other_infos + + @other_infos.setter + def other_infos(self, other_infos): + """Sets the other_infos of this UserInfoOut. + + + :param other_infos: The other_infos of this UserInfoOut. # noqa: E501 + :type: list[UserInfoOut] + """ + + self._other_infos = other_infos + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UserInfoOut): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/openapi_client/configuration.py b/openapi_client/configuration.py new file mode 100644 index 0000000..7b7ac25 --- /dev/null +++ b/openapi_client/configuration.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None + + def __call__(cls): + if cls._default is None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) + + +class Configuration(six.with_metaclass(TypeWithDefault, object)): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech + Do not edit the class manually. + """ + + def __init__(self): + """Constructor""" + # Default Base url + self.host = "https://v2.namsor.com/NamSorAPIv2" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("openapi_client") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if (self.api_key.get(identifier) and + self.api_key_prefix.get(identifier)): + return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 + elif self.api_key.get(identifier): + return self.api_key[identifier] + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + 'api_key': + { + 'type': 'api_key', + 'in': 'header', + 'key': 'X-API-KEY', + 'value': self.get_api_key_with_prefix('X-API-KEY') + }, + + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 2.0.2-beta\n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/openapi_client/rest.py b/openapi_client/rest.py new file mode 100644 index 0000000..572f653 --- /dev/null +++ b/openapi_client/rest.py @@ -0,0 +1,323 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode + +try: + import urllib3 +except ImportError: + raise ImportError('OpenAPI Python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bafdc07 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/run-python.bash b/run-python.bash new file mode 100755 index 0000000..5daea5d --- /dev/null +++ b/run-python.bash @@ -0,0 +1,12 @@ +echo update openapi-generator +./bin/utils/openapi-generator-cli.sh +rm -Rf ./namsor/client/python/* +echo run openapi-generator +java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate --git-repo-id namsor-python-sdk2 --git-user-id namsor --skip-validate-spec --artifact-version 2.0.2 --group-id com.namsor --artifact-id namsor-sdk2 --invoker-package com.namsor.sdk2.invoke --model-package com.namsor.sdk2.model --api-package com.namsor.sdk2.api -i https://v2.namsor.com/NamSorAPIv2/api2/openapi.json -g python -o namsor/client/python +#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0.jar namsor-sdk2-1.0.0.jar +#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-javadoc.jar namsor-sdk2-1.0.0-javadoc.jar +#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-sources.jar namsor-sdk2-1.0.0-sources.jar +#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-tests.jar namsor-sdk2-1.0.0-tests.jar +cp -R /home/namsor/codegen/openapi-generator/namsor/client/python/* /home/namsor/codegen/namsor-python-sdk2/ +cp /home/namsor/codegen/openapi-generator/run-python.bash /home/namsor/codegen/namsor-python-sdk2/ + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..869398b --- /dev/null +++ b/setup.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "openapi-client" +VERSION = "1.0.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +setup( + name=NAME, + version=VERSION, + description="NamSor API v2", + author_email="contact@namsor.com", + url="", + keywords=["OpenAPI", "OpenAPI-Generator", "NamSor API v2"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + """ +) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..2702246 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_admin_api.py b/test/test_admin_api.py new file mode 100644 index 0000000..7efc44d --- /dev/null +++ b/test/test_admin_api.py @@ -0,0 +1,251 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from com.namsor.sdk2.api.admin_api import AdminApi # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAdminApi(unittest.TestCase): + """AdminApi unit test stubs""" + + def setUp(self): + self.api = com.namsor.sdk2.api.admin_api.AdminApi() # noqa: E501 + + def tearDown(self): + pass + + def test_api_usage(self): + """Test case for api_usage + + Print current API usage. # noqa: E501 + """ + pass + + def test_api_usage_history(self): + """Test case for api_usage_history + + Print historical API usage. # noqa: E501 + """ + pass + + def test_api_usage_history_aggregate(self): + """Test case for api_usage_history_aggregate + + Print historical API usage (in an aggregated view, by service, by day/hour/min). # noqa: E501 + """ + pass + + def test_available_plans(self): + """Test case for available_plans + + List all available plans in the default currency (usd). # noqa: E501 + """ + pass + + def test_available_plans1(self): + """Test case for available_plans1 + + List all available plans in the user's preferred currency. # noqa: E501 + """ + pass + + def test_available_services(self): + """Test case for available_services + + List of API services and usage cost in Units (default is 1=ONE Unit). # noqa: E501 + """ + pass + + def test_billing_currencies(self): + """Test case for billing_currencies + + List possible currency options for billing (USD, EUR, GBP, ...) # noqa: E501 + """ + pass + + def test_billing_history(self): + """Test case for billing_history + + Read the history billing information (invoices paid via Stripe or manually). # noqa: E501 + """ + pass + + def test_billing_info(self): + """Test case for billing_info + + Read the billing information (company name, address, phone, vat ID) # noqa: E501 + """ + pass + + def test_charge(self): + """Test case for charge + + Create a Stripe Customer, based on a payment card token (from secure StripeJS) and email. # noqa: E501 + """ + pass + + def test_corporate_key(self): + """Test case for corporate_key + + Setting an API Key to a corporate status. # noqa: E501 + """ + pass + + def test_debug_level(self): + """Test case for debug_level + + Update debug level for a classifier # noqa: E501 + """ + pass + + def test_invalidate_cache(self): + """Test case for invalidate_cache + + Invalidate system caches. # noqa: E501 + """ + pass + + def test_namsor_counter(self): + """Test case for namsor_counter + + Get the overall API counter # noqa: E501 + """ + pass + + def test_payment_info(self): + """Test case for payment_info + + Get the Stripe payment information associated with the current google auth session token. # noqa: E501 + """ + pass + + def test_procure_key(self): + """Test case for procure_key + + Procure an API Key (sent via Email), based on an auth token. Keep your API Key secret. # noqa: E501 + """ + pass + + def test_redeploy_ui(self): + """Test case for redeploy_ui + + Redeploy UI from current dev branch. # noqa: E501 + """ + pass + + def test_remove_user_account(self): + """Test case for remove_user_account + + Subscribe to a give API plan, using the user's preferred or default currency. # noqa: E501 + """ + pass + + def test_shutdown(self): + """Test case for shutdown + + Stop learning and shutdown system. # noqa: E501 + """ + pass + + def test_software_version(self): + """Test case for software_version + + Get the current software version # noqa: E501 + """ + pass + + def test_source_stats(self): + """Test case for source_stats + + Print basic source statistics. # noqa: E501 + """ + pass + + def test_stats(self): + """Test case for stats + + Print basic system statistics. # noqa: E501 + """ + pass + + def test_stripe_connect(self): + """Test case for stripe_connect + + Connects a Stripe Account. # noqa: E501 + """ + pass + + def test_subscribe_plan(self): + """Test case for subscribe_plan + + Subscribe to a give API plan, using the user's preferred or default currency. # noqa: E501 + """ + pass + + def test_update_billing_info(self): + """Test case for update_billing_info + + Sets or update the billing information (company name, address, phone, vat ID) # noqa: E501 + """ + pass + + def test_update_limit(self): + """Test case for update_limit + + Modifies the hard/soft limit on the API plan's overages (default is 0$ soft limit). # noqa: E501 + """ + pass + + def test_update_payment_default(self): + """Test case for update_payment_default + + Update the default Stripe card associated with the current google auth session token. # noqa: E501 + """ + pass + + def test_user_info(self): + """Test case for user_info + + Get the user profile associated with the current google auth session token. # noqa: E501 + """ + pass + + def test_verify_email(self): + """Test case for verify_email + + Verifies an email, based on token sent to that email # noqa: E501 + """ + pass + + def test_verify_remove_email(self): + """Test case for verify_remove_email + + Verifies an email, based on token sent to that email # noqa: E501 + """ + pass + + def test_vet(self): + """Test case for vet + + Vetting of a source. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_billing_period_usage_out.py b/test/test_api_billing_period_usage_out.py new file mode 100644 index 0000000..0721b4c --- /dev/null +++ b/test/test_api_billing_period_usage_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_billing_period_usage_out import APIBillingPeriodUsageOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIBillingPeriodUsageOut(unittest.TestCase): + """APIBillingPeriodUsageOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIBillingPeriodUsageOut(self): + """Test APIBillingPeriodUsageOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_billing_period_usage_out.APIBillingPeriodUsageOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_counter_v2_out.py b/test/test_api_counter_v2_out.py new file mode 100644 index 0000000..3125e24 --- /dev/null +++ b/test/test_api_counter_v2_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_counter_v2_out import APICounterV2Out # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPICounterV2Out(unittest.TestCase): + """APICounterV2Out unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPICounterV2Out(self): + """Test APICounterV2Out""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_counter_v2_out.APICounterV2Out() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_key_out.py b/test/test_api_key_out.py new file mode 100644 index 0000000..8eafcb4 --- /dev/null +++ b/test/test_api_key_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_key_out import APIKeyOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIKeyOut(unittest.TestCase): + """APIKeyOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIKeyOut(self): + """Test APIKeyOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_key_out.APIKeyOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_period_usage_out.py b/test/test_api_period_usage_out.py new file mode 100644 index 0000000..af1e0ee --- /dev/null +++ b/test/test_api_period_usage_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_period_usage_out import APIPeriodUsageOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIPeriodUsageOut(unittest.TestCase): + """APIPeriodUsageOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIPeriodUsageOut(self): + """Test APIPeriodUsageOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_period_usage_out.APIPeriodUsageOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_plan_out.py b/test/test_api_plan_out.py new file mode 100644 index 0000000..128dc0c --- /dev/null +++ b/test/test_api_plan_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_plan_out import APIPlanOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIPlanOut(unittest.TestCase): + """APIPlanOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIPlanOut(self): + """Test APIPlanOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_plan_out.APIPlanOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_plan_subscription_out.py b/test/test_api_plan_subscription_out.py new file mode 100644 index 0000000..6948043 --- /dev/null +++ b/test/test_api_plan_subscription_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_plan_subscription_out import APIPlanSubscriptionOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIPlanSubscriptionOut(unittest.TestCase): + """APIPlanSubscriptionOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIPlanSubscriptionOut(self): + """Test APIPlanSubscriptionOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_plan_subscription_out.APIPlanSubscriptionOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_plans_out.py b/test/test_api_plans_out.py new file mode 100644 index 0000000..efac9e3 --- /dev/null +++ b/test/test_api_plans_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_plans_out import APIPlansOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIPlansOut(unittest.TestCase): + """APIPlansOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIPlansOut(self): + """Test APIPlansOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_plans_out.APIPlansOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_service_out.py b/test/test_api_service_out.py new file mode 100644 index 0000000..8c81451 --- /dev/null +++ b/test/test_api_service_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_service_out import APIServiceOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIServiceOut(unittest.TestCase): + """APIServiceOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIServiceOut(self): + """Test APIServiceOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_service_out.APIServiceOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_services_out.py b/test/test_api_services_out.py new file mode 100644 index 0000000..9384dc2 --- /dev/null +++ b/test/test_api_services_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_services_out import APIServicesOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIServicesOut(unittest.TestCase): + """APIServicesOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIServicesOut(self): + """Test APIServicesOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_services_out.APIServicesOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_api_usage_aggregated_out.py b/test/test_api_usage_aggregated_out.py new file mode 100644 index 0000000..bba2dd4 --- /dev/null +++ b/test/test_api_usage_aggregated_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.api_usage_aggregated_out import APIUsageAggregatedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestAPIUsageAggregatedOut(unittest.TestCase): + """APIUsageAggregatedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAPIUsageAggregatedOut(self): + """Test APIUsageAggregatedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.api_usage_aggregated_out.APIUsageAggregatedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_diasporaed_out.py b/test/test_batch_first_last_name_diasporaed_out.py new file mode 100644 index 0000000..cd772fa --- /dev/null +++ b/test/test_batch_first_last_name_diasporaed_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_diasporaed_out import BatchFirstLastNameDiasporaedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameDiasporaedOut(unittest.TestCase): + """BatchFirstLastNameDiasporaedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameDiasporaedOut(self): + """Test BatchFirstLastNameDiasporaedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_diasporaed_out.BatchFirstLastNameDiasporaedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_gender_in.py b/test/test_batch_first_last_name_gender_in.py new file mode 100644 index 0000000..f4bef40 --- /dev/null +++ b/test/test_batch_first_last_name_gender_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_gender_in import BatchFirstLastNameGenderIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameGenderIn(unittest.TestCase): + """BatchFirstLastNameGenderIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameGenderIn(self): + """Test BatchFirstLastNameGenderIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_gender_in.BatchFirstLastNameGenderIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_gendered_out.py b/test/test_batch_first_last_name_gendered_out.py new file mode 100644 index 0000000..4db0527 --- /dev/null +++ b/test/test_batch_first_last_name_gendered_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_gendered_out import BatchFirstLastNameGenderedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameGenderedOut(unittest.TestCase): + """BatchFirstLastNameGenderedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameGenderedOut(self): + """Test BatchFirstLastNameGenderedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_gendered_out.BatchFirstLastNameGenderedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_geo_in.py b/test/test_batch_first_last_name_geo_in.py new file mode 100644 index 0000000..53b582a --- /dev/null +++ b/test/test_batch_first_last_name_geo_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_geo_in import BatchFirstLastNameGeoIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameGeoIn(unittest.TestCase): + """BatchFirstLastNameGeoIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameGeoIn(self): + """Test BatchFirstLastNameGeoIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_geo_in.BatchFirstLastNameGeoIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_geo_zipped_in.py b/test/test_batch_first_last_name_geo_zipped_in.py new file mode 100644 index 0000000..57bb70a --- /dev/null +++ b/test/test_batch_first_last_name_geo_zipped_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_geo_zipped_in import BatchFirstLastNameGeoZippedIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameGeoZippedIn(unittest.TestCase): + """BatchFirstLastNameGeoZippedIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameGeoZippedIn(self): + """Test BatchFirstLastNameGeoZippedIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_geo_zipped_in.BatchFirstLastNameGeoZippedIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_in.py b/test/test_batch_first_last_name_in.py new file mode 100644 index 0000000..98b203e --- /dev/null +++ b/test/test_batch_first_last_name_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_in import BatchFirstLastNameIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameIn(unittest.TestCase): + """BatchFirstLastNameIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameIn(self): + """Test BatchFirstLastNameIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_in.BatchFirstLastNameIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_origined_out.py b/test/test_batch_first_last_name_origined_out.py new file mode 100644 index 0000000..623dab8 --- /dev/null +++ b/test/test_batch_first_last_name_origined_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_origined_out import BatchFirstLastNameOriginedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameOriginedOut(unittest.TestCase): + """BatchFirstLastNameOriginedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameOriginedOut(self): + """Test BatchFirstLastNameOriginedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_origined_out.BatchFirstLastNameOriginedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_phone_coded_out.py b/test/test_batch_first_last_name_phone_coded_out.py new file mode 100644 index 0000000..986066a --- /dev/null +++ b/test/test_batch_first_last_name_phone_coded_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_phone_coded_out import BatchFirstLastNamePhoneCodedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNamePhoneCodedOut(unittest.TestCase): + """BatchFirstLastNamePhoneCodedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNamePhoneCodedOut(self): + """Test BatchFirstLastNamePhoneCodedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_phone_coded_out.BatchFirstLastNamePhoneCodedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_phone_number_in.py b/test/test_batch_first_last_name_phone_number_in.py new file mode 100644 index 0000000..2830530 --- /dev/null +++ b/test/test_batch_first_last_name_phone_number_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_phone_number_in import BatchFirstLastNamePhoneNumberIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNamePhoneNumberIn(unittest.TestCase): + """BatchFirstLastNamePhoneNumberIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNamePhoneNumberIn(self): + """Test BatchFirstLastNamePhoneNumberIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_phone_number_in.BatchFirstLastNamePhoneNumberIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_first_last_name_us_race_ethnicity_out.py b/test/test_batch_first_last_name_us_race_ethnicity_out.py new file mode 100644 index 0000000..0ef972b --- /dev/null +++ b/test/test_batch_first_last_name_us_race_ethnicity_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_first_last_name_us_race_ethnicity_out import BatchFirstLastNameUSRaceEthnicityOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchFirstLastNameUSRaceEthnicityOut(unittest.TestCase): + """BatchFirstLastNameUSRaceEthnicityOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchFirstLastNameUSRaceEthnicityOut(self): + """Test BatchFirstLastNameUSRaceEthnicityOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_first_last_name_us_race_ethnicity_out.BatchFirstLastNameUSRaceEthnicityOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_name_match_candidates_out.py b/test/test_batch_name_match_candidates_out.py new file mode 100644 index 0000000..b6a21a2 --- /dev/null +++ b/test/test_batch_name_match_candidates_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_name_match_candidates_out import BatchNameMatchCandidatesOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchNameMatchCandidatesOut(unittest.TestCase): + """BatchNameMatchCandidatesOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchNameMatchCandidatesOut(self): + """Test BatchNameMatchCandidatesOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_name_match_candidates_out.BatchNameMatchCandidatesOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_parsed_full_name_geo_in.py b/test/test_batch_parsed_full_name_geo_in.py new file mode 100644 index 0000000..fc3b23e --- /dev/null +++ b/test/test_batch_parsed_full_name_geo_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_parsed_full_name_geo_in import BatchParsedFullNameGeoIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchParsedFullNameGeoIn(unittest.TestCase): + """BatchParsedFullNameGeoIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchParsedFullNameGeoIn(self): + """Test BatchParsedFullNameGeoIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_parsed_full_name_geo_in.BatchParsedFullNameGeoIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_parsed_full_name_in.py b/test/test_batch_parsed_full_name_in.py new file mode 100644 index 0000000..c3cc4c2 --- /dev/null +++ b/test/test_batch_parsed_full_name_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_parsed_full_name_in import BatchParsedFullNameIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchParsedFullNameIn(unittest.TestCase): + """BatchParsedFullNameIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchParsedFullNameIn(self): + """Test BatchParsedFullNameIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_parsed_full_name_in.BatchParsedFullNameIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_personal_name_geo_out.py b/test/test_batch_personal_name_geo_out.py new file mode 100644 index 0000000..90f1fa6 --- /dev/null +++ b/test/test_batch_personal_name_geo_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_personal_name_geo_out import BatchPersonalNameGeoOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchPersonalNameGeoOut(unittest.TestCase): + """BatchPersonalNameGeoOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchPersonalNameGeoOut(self): + """Test BatchPersonalNameGeoOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_personal_name_geo_out.BatchPersonalNameGeoOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_batch_personal_name_in.py b/test/test_batch_personal_name_in.py new file mode 100644 index 0000000..0952042 --- /dev/null +++ b/test/test_batch_personal_name_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.batch_personal_name_in import BatchPersonalNameIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBatchPersonalNameIn(unittest.TestCase): + """BatchPersonalNameIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBatchPersonalNameIn(self): + """Test BatchPersonalNameIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.batch_personal_name_in.BatchPersonalNameIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_history_out.py b/test/test_billing_history_out.py new file mode 100644 index 0000000..47d3363 --- /dev/null +++ b/test/test_billing_history_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.billing_history_out import BillingHistoryOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBillingHistoryOut(unittest.TestCase): + """BillingHistoryOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBillingHistoryOut(self): + """Test BillingHistoryOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.billing_history_out.BillingHistoryOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_info_in_out.py b/test/test_billing_info_in_out.py new file mode 100644 index 0000000..2081093 --- /dev/null +++ b/test/test_billing_info_in_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.billing_info_in_out import BillingInfoInOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestBillingInfoInOut(unittest.TestCase): + """BillingInfoInOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBillingInfoInOut(self): + """Test BillingInfoInOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.billing_info_in_out.BillingInfoInOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_chinese_api.py b/test/test_chinese_api.py new file mode 100644 index 0000000..8f0c00d --- /dev/null +++ b/test/test_chinese_api.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from com.namsor.sdk2.api.chinese_api import ChineseApi # noqa: E501 +from openapi_client.rest import ApiException + + +class TestChineseApi(unittest.TestCase): + """ChineseApi unit test stubs""" + + def setUp(self): + self.api = com.namsor.sdk2.api.chinese_api.ChineseApi() # noqa: E501 + + def tearDown(self): + pass + + def test_chinese_name_candidates(self): + """Test case for chinese_name_candidates + + Identify Chinese name candidates, based on the romanized name. # noqa: E501 + """ + pass + + def test_chinese_name_candidates_batch(self): + """Test case for chinese_name_candidates_batch + + Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). # noqa: E501 + """ + pass + + def test_chinese_name_candidates_gender_batch(self): + """Test case for chinese_name_candidates_gender_batch + + Identify Chinese name candidates, based on the romanized name (firstName = chineseGivenName; lastName=chineseSurname). # noqa: E501 + """ + pass + + def test_chinese_name_gender_candidates(self): + """Test case for chinese_name_gender_candidates + + Identify Chinese name candidates, based on the romanized name - having a known gender ('male' or 'female') # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_classifier_metrics_out.py b/test/test_classifier_metrics_out.py new file mode 100644 index 0000000..bf69ce1 --- /dev/null +++ b/test/test_classifier_metrics_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.classifier_metrics_out import ClassifierMetricsOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestClassifierMetricsOut(unittest.TestCase): + """ClassifierMetricsOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClassifierMetricsOut(self): + """Test ClassifierMetricsOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.classifier_metrics_out.ClassifierMetricsOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_currencies_out.py b/test/test_currencies_out.py new file mode 100644 index 0000000..81bd26f --- /dev/null +++ b/test/test_currencies_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.currencies_out import CurrenciesOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestCurrenciesOut(unittest.TestCase): + """CurrenciesOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCurrenciesOut(self): + """Test CurrenciesOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.currencies_out.CurrenciesOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_deploy_ui_out.py b/test/test_deploy_ui_out.py new file mode 100644 index 0000000..fa72fb9 --- /dev/null +++ b/test/test_deploy_ui_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.deploy_ui_out import DeployUIOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestDeployUIOut(unittest.TestCase): + """DeployUIOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeployUIOut(self): + """Test DeployUIOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.deploy_ui_out.DeployUIOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_expected_class_metrics_out.py b/test/test_expected_class_metrics_out.py new file mode 100644 index 0000000..76f60e2 --- /dev/null +++ b/test/test_expected_class_metrics_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.expected_class_metrics_out import ExpectedClassMetricsOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestExpectedClassMetricsOut(unittest.TestCase): + """ExpectedClassMetricsOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testExpectedClassMetricsOut(self): + """Test ExpectedClassMetricsOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.expected_class_metrics_out.ExpectedClassMetricsOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_diasporaed_out.py b/test/test_first_last_name_diasporaed_out.py new file mode 100644 index 0000000..0514bb3 --- /dev/null +++ b/test/test_first_last_name_diasporaed_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_diasporaed_out import FirstLastNameDiasporaedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameDiasporaedOut(unittest.TestCase): + """FirstLastNameDiasporaedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameDiasporaedOut(self): + """Test FirstLastNameDiasporaedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_diasporaed_out.FirstLastNameDiasporaedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_gender_in.py b/test/test_first_last_name_gender_in.py new file mode 100644 index 0000000..3421869 --- /dev/null +++ b/test/test_first_last_name_gender_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_gender_in import FirstLastNameGenderIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameGenderIn(unittest.TestCase): + """FirstLastNameGenderIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameGenderIn(self): + """Test FirstLastNameGenderIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_gender_in.FirstLastNameGenderIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_gendered_out.py b/test/test_first_last_name_gendered_out.py new file mode 100644 index 0000000..b373a62 --- /dev/null +++ b/test/test_first_last_name_gendered_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_gendered_out import FirstLastNameGenderedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameGenderedOut(unittest.TestCase): + """FirstLastNameGenderedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameGenderedOut(self): + """Test FirstLastNameGenderedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_gendered_out.FirstLastNameGenderedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_geo_in.py b/test/test_first_last_name_geo_in.py new file mode 100644 index 0000000..bea4344 --- /dev/null +++ b/test/test_first_last_name_geo_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_geo_in import FirstLastNameGeoIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameGeoIn(unittest.TestCase): + """FirstLastNameGeoIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameGeoIn(self): + """Test FirstLastNameGeoIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_geo_in.FirstLastNameGeoIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_geo_zipped_in.py b/test/test_first_last_name_geo_zipped_in.py new file mode 100644 index 0000000..846a1bb --- /dev/null +++ b/test/test_first_last_name_geo_zipped_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_geo_zipped_in import FirstLastNameGeoZippedIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameGeoZippedIn(unittest.TestCase): + """FirstLastNameGeoZippedIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameGeoZippedIn(self): + """Test FirstLastNameGeoZippedIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_geo_zipped_in.FirstLastNameGeoZippedIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_in.py b/test/test_first_last_name_in.py new file mode 100644 index 0000000..16ec476 --- /dev/null +++ b/test/test_first_last_name_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_in import FirstLastNameIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameIn(unittest.TestCase): + """FirstLastNameIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameIn(self): + """Test FirstLastNameIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_in.FirstLastNameIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_origined_out.py b/test/test_first_last_name_origined_out.py new file mode 100644 index 0000000..937a60e --- /dev/null +++ b/test/test_first_last_name_origined_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_origined_out import FirstLastNameOriginedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameOriginedOut(unittest.TestCase): + """FirstLastNameOriginedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameOriginedOut(self): + """Test FirstLastNameOriginedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_origined_out.FirstLastNameOriginedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_phone_coded_out.py b/test/test_first_last_name_phone_coded_out.py new file mode 100644 index 0000000..d5b8d21 --- /dev/null +++ b/test/test_first_last_name_phone_coded_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_phone_coded_out import FirstLastNamePhoneCodedOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNamePhoneCodedOut(unittest.TestCase): + """FirstLastNamePhoneCodedOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNamePhoneCodedOut(self): + """Test FirstLastNamePhoneCodedOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_phone_coded_out.FirstLastNamePhoneCodedOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_phone_number_in.py b/test/test_first_last_name_phone_number_in.py new file mode 100644 index 0000000..703bea7 --- /dev/null +++ b/test/test_first_last_name_phone_number_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_phone_number_in import FirstLastNamePhoneNumberIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNamePhoneNumberIn(unittest.TestCase): + """FirstLastNamePhoneNumberIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNamePhoneNumberIn(self): + """Test FirstLastNamePhoneNumberIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_phone_number_in.FirstLastNamePhoneNumberIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_first_last_name_us_race_ethnicity_out.py b/test/test_first_last_name_us_race_ethnicity_out.py new file mode 100644 index 0000000..0067b78 --- /dev/null +++ b/test/test_first_last_name_us_race_ethnicity_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.first_last_name_us_race_ethnicity_out import FirstLastNameUSRaceEthnicityOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestFirstLastNameUSRaceEthnicityOut(unittest.TestCase): + """FirstLastNameUSRaceEthnicityOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFirstLastNameUSRaceEthnicityOut(self): + """Test FirstLastNameUSRaceEthnicityOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.first_last_name_us_race_ethnicity_out.FirstLastNameUSRaceEthnicityOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_object.py b/test/test_inline_object.py new file mode 100644 index 0000000..b3546bf --- /dev/null +++ b/test/test_inline_object.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.inline_object import InlineObject # noqa: E501 +from openapi_client.rest import ApiException + + +class TestInlineObject(unittest.TestCase): + """InlineObject unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineObject(self): + """Test InlineObject""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.inline_object.InlineObject() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_invoice_item_out.py b/test/test_invoice_item_out.py new file mode 100644 index 0000000..176fcaf --- /dev/null +++ b/test/test_invoice_item_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.invoice_item_out import InvoiceItemOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestInvoiceItemOut(unittest.TestCase): + """InvoiceItemOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInvoiceItemOut(self): + """Test InvoiceItemOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.invoice_item_out.InvoiceItemOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_invoice_out.py b/test/test_invoice_out.py new file mode 100644 index 0000000..14557eb --- /dev/null +++ b/test/test_invoice_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.invoice_out import InvoiceOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestInvoiceOut(unittest.TestCase): + """InvoiceOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInvoiceOut(self): + """Test InvoiceOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.invoice_out.InvoiceOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nam_sor_counter_out.py b/test/test_nam_sor_counter_out.py new file mode 100644 index 0000000..b55b69b --- /dev/null +++ b/test/test_nam_sor_counter_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.nam_sor_counter_out import NamSorCounterOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestNamSorCounterOut(unittest.TestCase): + """NamSorCounterOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNamSorCounterOut(self): + """Test NamSorCounterOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.nam_sor_counter_out.NamSorCounterOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_name_match_candidate_out.py b/test/test_name_match_candidate_out.py new file mode 100644 index 0000000..d3bc6f8 --- /dev/null +++ b/test/test_name_match_candidate_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.name_match_candidate_out import NameMatchCandidateOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestNameMatchCandidateOut(unittest.TestCase): + """NameMatchCandidateOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNameMatchCandidateOut(self): + """Test NameMatchCandidateOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.name_match_candidate_out.NameMatchCandidateOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_name_match_candidates_out.py b/test/test_name_match_candidates_out.py new file mode 100644 index 0000000..d0f953d --- /dev/null +++ b/test/test_name_match_candidates_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.name_match_candidates_out import NameMatchCandidatesOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestNameMatchCandidatesOut(unittest.TestCase): + """NameMatchCandidatesOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNameMatchCandidatesOut(self): + """Test NameMatchCandidatesOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.name_match_candidates_out.NameMatchCandidatesOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_parsed_full_name_geo_in.py b/test/test_parsed_full_name_geo_in.py new file mode 100644 index 0000000..da01c25 --- /dev/null +++ b/test/test_parsed_full_name_geo_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.parsed_full_name_geo_in import ParsedFullNameGeoIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestParsedFullNameGeoIn(unittest.TestCase): + """ParsedFullNameGeoIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testParsedFullNameGeoIn(self): + """Test ParsedFullNameGeoIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.parsed_full_name_geo_in.ParsedFullNameGeoIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_parsed_full_name_in.py b/test/test_parsed_full_name_in.py new file mode 100644 index 0000000..f776459 --- /dev/null +++ b/test/test_parsed_full_name_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.parsed_full_name_in import ParsedFullNameIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestParsedFullNameIn(unittest.TestCase): + """ParsedFullNameIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testParsedFullNameIn(self): + """Test ParsedFullNameIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.parsed_full_name_in.ParsedFullNameIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_personal_api.py b/test/test_personal_api.py new file mode 100644 index 0000000..4b0f057 --- /dev/null +++ b/test/test_personal_api.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from com.namsor.sdk2.api.personal_api import PersonalApi # noqa: E501 +from openapi_client.rest import ApiException + + +class TestPersonalApi(unittest.TestCase): + """PersonalApi unit test stubs""" + + def setUp(self): + self.api = com.namsor.sdk2.api.personal_api.PersonalApi() # noqa: E501 + + def tearDown(self): + pass + + def test_country(self): + """Test case for country + + [USES 10 UNITS] Infer the likely country of residence of a personal full name, or one surname. Assumes names as they are in the country of residence OR the country of origin. # noqa: E501 + """ + pass + + def test_country_batch(self): + """Test case for country_batch + + [USES 10 UNITS] Infer the likely country of residence of up to 1000 personal full names, or surnames. Assumes names as they are in the country of residence OR the country of origin. # noqa: E501 + """ + pass + + def test_diaspora(self): + """Test case for diaspora + + [USES 20 UNITS] Infer the likely ethnicity/diaspora of a personal name, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) # noqa: E501 + """ + pass + + def test_diaspora_batch(self): + """Test case for diaspora_batch + + [USES 20 UNITS] Infer the likely ethnicity/diaspora of up to 1000 personal names, given a country of residence ISO2 code (ex. US, CA, AU, NZ etc.) # noqa: E501 + """ + pass + + def test_gender(self): + """Test case for gender + + Infer the likely gender of a name. # noqa: E501 + """ + pass + + def test_gender_batch(self): + """Test case for gender_batch + + Infer the likely gender of up to 1000 names, detecting automatically the cultural context. # noqa: E501 + """ + pass + + def test_gender_geo(self): + """Test case for gender_geo + + Infer the likely gender of a name, given a local context (ISO2 country code). # noqa: E501 + """ + pass + + def test_gender_geo_batch(self): + """Test case for gender_geo_batch + + Infer the likely gender of up to 1000 names, each given a local context (ISO2 country code). # noqa: E501 + """ + pass + + def test_origin(self): + """Test case for origin + + [USES 10 UNITS] Infer the likely country of origin of a personal name. Assumes names as they are in the country of origin. For US, CA, AU, NZ and other melting-pots : use 'diaspora' instead. # noqa: E501 + """ + pass + + def test_origin_batch(self): + """Test case for origin_batch + + [USES 10 UNITS] Infer the likely country of origin of up to 1000 names, detecting automatically the cultural context. # noqa: E501 + """ + pass + + def test_parsed_gender_batch(self): + """Test case for parsed_gender_batch + + Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. # noqa: E501 + """ + pass + + def test_parsed_gender_geo_batch(self): + """Test case for parsed_gender_geo_batch + + Infer the likely gender of up to 1000 fully parsed names, detecting automatically the cultural context. # noqa: E501 + """ + pass + + def test_us_race_ethnicity(self): + """Test case for us_race_ethnicity + + [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy. # noqa: E501 + """ + pass + + def test_us_race_ethnicity_batch(self): + """Test case for us_race_ethnicity_batch + + [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy. # noqa: E501 + """ + pass + + def test_us_race_ethnicity_zip5(self): + """Test case for us_race_ethnicity_zip5 + + [USES 10 UNITS] Infer a US resident's likely race/ethnicity according to US Census taxonomy, using (optional) ZIP5 code info. # noqa: E501 + """ + pass + + def test_us_zip_race_ethnicity_batch(self): + """Test case for us_zip_race_ethnicity_batch + + [USES 10 UNITS] Infer up-to 1000 US resident's likely race/ethnicity according to US Census taxonomy, with (optional) ZIP code. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_personal_name_geo_out.py b/test/test_personal_name_geo_out.py new file mode 100644 index 0000000..e64e269 --- /dev/null +++ b/test/test_personal_name_geo_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.personal_name_geo_out import PersonalNameGeoOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestPersonalNameGeoOut(unittest.TestCase): + """PersonalNameGeoOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPersonalNameGeoOut(self): + """Test PersonalNameGeoOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.personal_name_geo_out.PersonalNameGeoOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_personal_name_in.py b/test/test_personal_name_in.py new file mode 100644 index 0000000..d76eb61 --- /dev/null +++ b/test/test_personal_name_in.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.personal_name_in import PersonalNameIn # noqa: E501 +from openapi_client.rest import ApiException + + +class TestPersonalNameIn(unittest.TestCase): + """PersonalNameIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPersonalNameIn(self): + """Test PersonalNameIn""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.personal_name_in.PersonalNameIn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_romanized_name_out.py b/test/test_romanized_name_out.py new file mode 100644 index 0000000..ec4992b --- /dev/null +++ b/test/test_romanized_name_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.romanized_name_out import RomanizedNameOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestRomanizedNameOut(unittest.TestCase): + """RomanizedNameOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRomanizedNameOut(self): + """Test RomanizedNameOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.romanized_name_out.RomanizedNameOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_social_api.py b/test/test_social_api.py new file mode 100644 index 0000000..cc67102 --- /dev/null +++ b/test/test_social_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from com.namsor.sdk2.api.social_api import SocialApi # noqa: E501 +from openapi_client.rest import ApiException + + +class TestSocialApi(unittest.TestCase): + """SocialApi unit test stubs""" + + def setUp(self): + self.api = com.namsor.sdk2.api.social_api.SocialApi() # noqa: E501 + + def tearDown(self): + pass + + def test_phone_prefix(self): + """Test case for phone_prefix + + [USES 11 UNITS] Infer the likely country and phone prefix, given a personal name and formatted / unformatted phone number. # noqa: E501 + """ + pass + + def test_phone_prefix_batch(self): + """Test case for phone_prefix_batch + + [USES 11 UNITS] Infer the likely country and phone prefix, of up to 1000 personal names, detecting automatically the local context given a name and formatted / unformatted phone number. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_software_version_out.py b/test/test_software_version_out.py new file mode 100644 index 0000000..03b4af2 --- /dev/null +++ b/test/test_software_version_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.software_version_out import SoftwareVersionOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestSoftwareVersionOut(unittest.TestCase): + """SoftwareVersionOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSoftwareVersionOut(self): + """Test SoftwareVersionOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.software_version_out.SoftwareVersionOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source_detailed_metrics_out.py b/test/test_source_detailed_metrics_out.py new file mode 100644 index 0000000..76c3d4c --- /dev/null +++ b/test/test_source_detailed_metrics_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.source_detailed_metrics_out import SourceDetailedMetricsOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestSourceDetailedMetricsOut(unittest.TestCase): + """SourceDetailedMetricsOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSourceDetailedMetricsOut(self): + """Test SourceDetailedMetricsOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.source_detailed_metrics_out.SourceDetailedMetricsOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source_metrics_out.py b/test/test_source_metrics_out.py new file mode 100644 index 0000000..90fe60a --- /dev/null +++ b/test/test_source_metrics_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.source_metrics_out import SourceMetricsOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestSourceMetricsOut(unittest.TestCase): + """SourceMetricsOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSourceMetricsOut(self): + """Test SourceMetricsOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.source_metrics_out.SourceMetricsOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stripe_card_out.py b/test/test_stripe_card_out.py new file mode 100644 index 0000000..9afc773 --- /dev/null +++ b/test/test_stripe_card_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.stripe_card_out import StripeCardOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestStripeCardOut(unittest.TestCase): + """StripeCardOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStripeCardOut(self): + """Test StripeCardOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.stripe_card_out.StripeCardOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stripe_customer_out.py b/test/test_stripe_customer_out.py new file mode 100644 index 0000000..80ba1a5 --- /dev/null +++ b/test/test_stripe_customer_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.stripe_customer_out import StripeCustomerOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestStripeCustomerOut(unittest.TestCase): + """StripeCustomerOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStripeCustomerOut(self): + """Test StripeCustomerOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.stripe_customer_out.StripeCustomerOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_system_metrics_out.py b/test/test_system_metrics_out.py new file mode 100644 index 0000000..4d72d3e --- /dev/null +++ b/test/test_system_metrics_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.system_metrics_out import SystemMetricsOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestSystemMetricsOut(unittest.TestCase): + """SystemMetricsOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSystemMetricsOut(self): + """Test SystemMetricsOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.system_metrics_out.SystemMetricsOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_info_out.py b/test/test_user_info_out.py new file mode 100644 index 0000000..4267b1d --- /dev/null +++ b/test/test_user_info_out.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + NamSor API v2 + + NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 1000 names at a time). Need something you can't find here? We have many more features coming soon. Let us know, we'll do our best to add it! # noqa: E501 + + OpenAPI spec version: 2.0.2-beta + Contact: contact@namsor.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import openapi_client +from openapi_client.com.namsor.sdk2.model.user_info_out import UserInfoOut # noqa: E501 +from openapi_client.rest import ApiException + + +class TestUserInfoOut(unittest.TestCase): + """UserInfoOut unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUserInfoOut(self): + """Test UserInfoOut""" + # FIXME: construct object with mandatory attributes with example values + # model = openapi_client.models.user_info_out.UserInfoOut() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..3d0be61 --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + []