From c8efe1a2b0d2b2bfa77fb6123427b86759f75f04 Mon Sep 17 00:00:00 2001 From: Vernon Keenan Date: Tue, 28 Mar 2023 17:47:34 +0000 Subject: [PATCH] new version v0.3.1 --- Makefile | 37 +- .../auth_client/user/get_users_responses.go | 2 +- api/auth/auth_models/response_meta.go | 2 +- api/auth/auth_models/tenant_user.go | 2 +- api/auth/auth_models/user.go | 4 +- api/auth/auth_models/user_role.go | 2 +- api/auth0/auth0_client/auth/auth_client.go | 85 - .../auth/post_credentials_parameters.go | 157 - .../auth/post_credentials_responses.go | 477 --- .../auth0_client/role/get_roles_parameters.go | 152 - .../auth0_client/role/get_roles_responses.go | 475 --- .../role/post_role_users_parameters.go | 198 - .../role/post_role_users_responses.go | 391 -- api/auth0/auth0_client/role/role_client.go | 127 - ...e_api_v2_users_user_id_roles_parameters.go | 198 - ...te_api_v2_users_user_id_roles_responses.go | 391 -- .../user/get_user_by_email_parameters.go | 176 - .../user/get_user_by_email_responses.go | 401 -- .../user/get_user_roles_parameters.go | 174 - .../user/get_user_roles_responses.go | 403 -- .../auth0_client/user/get_users_parameters.go | 152 - .../auth0_client/user/get_users_responses.go | 401 -- .../user/post_users_parameters.go | 176 - .../auth0_client/user/post_users_responses.go | 453 --- api/auth0/auth0_client/user/user_client.go | 251 -- api/auth0/auth0_models/credentials_request.go | 63 - .../auth0_models/credentials_response.go | 63 - api/auth0/auth0_models/error.go | 60 - api/auth0/auth0_models/new_user.go | 111 - api/auth0/auth0_models/role.go | 63 - api/auth0/auth0_models/role_response.go | 120 - api/auth0/auth0_models/role_users_request.go | 54 - api/auth0/auth0_models/user.go | 426 --- .../accounts/delete_account_parameters.go | 2 +- .../accounts/delete_account_responses.go | 2 +- .../get_accounts_observable_parameters.go | 2 +- .../get_accounts_observable_responses.go | 2 +- .../accounts/get_accounts_parameters.go | 2 +- .../accounts/get_accounts_responses.go | 2 +- .../accounts/post_accounts_responses.go | 2 +- .../accounts/put_account_responses.go | 2 +- .../assets/delete_asset_parameters.go | 2 +- .../assets/delete_asset_responses.go | 2 +- .../get_assets_observable_parameters.go | 4 +- .../assets/get_assets_observable_responses.go | 2 +- .../assets/get_assets_parameters.go | 4 +- .../crm_client/assets/get_assets_responses.go | 2 +- .../assets/post_assets_responses.go | 2 +- .../crm_client/assets/put_asset_responses.go | 2 +- .../contacts/delete_contact_parameters.go | 2 +- .../contacts/delete_contact_responses.go | 2 +- .../get_contacts_observable_parameters.go | 2 +- .../get_contacts_observable_responses.go | 2 +- .../contacts/get_contacts_parameters.go | 2 +- .../contacts/get_contacts_responses.go | 2 +- .../contacts/post_contacts_responses.go | 2 +- .../contacts/put_contacts_responses.go | 2 +- .../contracts/delete_contract_parameters.go | 2 +- .../contracts/delete_contract_responses.go | 2 +- .../get_contracts_observable_parameters.go | 2 +- .../get_contracts_observable_responses.go | 2 +- .../contracts/get_contracts_parameters.go | 2 +- .../contracts/get_contracts_responses.go | 2 +- .../contracts/post_contracts_responses.go | 2 +- .../contracts/put_contract_responses.go | 2 +- .../leads/delete_lead_parameters.go | 2 +- .../crm_client/leads/delete_lead_responses.go | 2 +- .../leads/get_leads_observable_parameters.go | 2 +- .../leads/get_leads_observable_responses.go | 2 +- .../crm_client/leads/get_leads_parameters.go | 2 +- .../crm_client/leads/get_leads_responses.go | 2 +- .../crm_client/leads/post_leads_responses.go | 2 +- .../crm_client/leads/put_leads_responses.go | 2 +- api/crm/crm_models/account.go | 20 +- api/crm/crm_models/asset.go | 2 +- api/crm/crm_models/contact.go | 14 +- api/crm/crm_models/contract.go | 2 +- api/crm/crm_models/lead.go | 2 +- api/crm/crm_models/request_meta.go | 2 +- api/crm/crm_models/response_meta.go | 2 +- .../cluster/get_cluster_parameters.go | 2 +- .../cluster/get_clusters_parameters.go | 4 +- .../cluster/get_clusters_responses.go | 2 +- .../cluster/post_clusters_responses.go | 2 +- .../cluster/put_clusters_responses.go | 2 +- .../database/get_database_parameters.go | 2 +- .../database/get_databases_parameters.go | 4 +- .../database/get_databases_responses.go | 2 +- .../database/post_databases_responses.go | 2 +- .../database/put_databases_responses.go | 2 +- .../template/get_template_parameters.go | 2 +- .../template/get_templates_responses.go | 2 +- .../template/post_templates_responses.go | 2 +- .../tenant/get_tenant_parameters.go | 2 +- .../tenant/get_tenants_parameters.go | 6 +- .../tenant/get_tenants_responses.go | 2 +- .../tenant/post_tenants_responses.go | 2 +- .../tenant/put_tenants_responses.go | 2 +- .../devops_client/user/get_user_parameters.go | 2 +- .../user/get_users_parameters.go | 6 +- .../devops_client/user/get_users_responses.go | 2 +- .../user/post_users_responses.go | 2 +- .../devops_client/user/put_users_responses.go | 2 +- api/devops/devops_models/cluster.go | 2 +- api/devops/devops_models/request_meta.go | 2 +- api/devops/devops_models/response_meta.go | 2 +- api/devops/devops_models/template.go | 2 +- api/devops/devops_models/tenant.go | 2 +- api/devops/devops_models/tenant_user.go | 2 +- api/devops/devops_models/user.go | 4 +- api/devops/devops_models/user_role.go | 2 +- .../members_client/members_client.go} | 49 +- .../operations/create_attendee_parameters.go | 157 + .../operations/create_attendee_responses.go | 92 + .../create_certificate_parameters.go | 157 + .../create_certificate_responses.go | 92 + .../create_course_lesson_parameters.go | 157 + .../create_course_lesson_responses.go | 92 + .../operations/create_course_parameters.go | 157 + .../operations/create_course_responses.go | 92 + .../create_course_section_parameters.go | 157 + .../create_course_section_responses.go | 92 + .../create_enrollment_parameters.go | 157 + .../operations/create_enrollment_responses.go | 92 + ...te_event_category_assignment_parameters.go | 157 + ...ate_event_category_assignment_responses.go | 92 + .../create_event_category_parameters.go | 157 + .../create_event_category_responses.go | 92 + .../operations/create_event_parameters.go | 157 + .../operations/create_event_responses.go | 92 + .../operations/create_favorite_parameters.go | 157 + .../operations/create_favorite_responses.go | 92 + .../operations/create_invoice_parameters.go | 157 + .../operations/create_invoice_responses.go | 92 + .../create_issued_certificate_parameters.go | 157 + .../create_issued_certificate_responses.go | 92 + .../create_lesson_progress_parameters.go | 157 + .../create_lesson_progress_responses.go | 92 + .../operations/create_order_parameters.go | 157 + .../operations/create_order_responses.go | 92 + .../create_payment_method_parameters.go | 157 + .../create_payment_method_responses.go | 92 + ...ate_research_project_company_parameters.go | 157 + ...eate_research_project_company_responses.go | 92 + .../create_research_project_parameters.go | 157 + .../create_research_project_responses.go | 92 + ...reate_research_project_topic_parameters.go | 157 + ...create_research_project_topic_responses.go | 92 + .../operations/create_ticket_parameters.go | 157 + .../operations/create_ticket_responses.go | 92 + .../create_transaction_parameters.go | 157 + .../create_transaction_responses.go | 92 + .../operations/delete_attendee_parameters.go | 167 + .../operations/delete_attendee_responses.go | 92 + .../delete_certificate_parameters.go | 167 + .../delete_certificate_responses.go | 92 + .../delete_course_lesson_parameters.go | 167 + .../delete_course_lesson_responses.go | 92 + .../operations/delete_course_parameters.go | 167 + .../operations/delete_course_responses.go | 92 + .../delete_course_section_parameters.go | 167 + .../delete_course_section_responses.go | 92 + .../delete_enrollment_parameters.go | 167 + .../operations/delete_enrollment_responses.go | 92 + ...te_event_category_assignment_parameters.go | 167 + ...ete_event_category_assignment_responses.go | 92 + .../delete_event_category_parameters.go | 167 + .../delete_event_category_responses.go | 92 + .../operations/delete_event_parameters.go | 167 + .../operations/delete_event_responses.go | 92 + .../operations/delete_favorite_parameters.go | 167 + .../operations/delete_favorite_responses.go | 92 + .../operations/delete_invoice_parameters.go | 167 + .../operations/delete_invoice_responses.go | 92 + .../delete_issued_certificate_parameters.go | 167 + .../delete_issued_certificate_responses.go | 92 + .../delete_lesson_progress_parameters.go | 167 + .../delete_lesson_progress_responses.go | 92 + .../operations/delete_order_parameters.go | 167 + .../operations/delete_order_responses.go | 92 + .../delete_payment_method_parameters.go | 167 + .../delete_payment_method_responses.go | 92 + ...ete_research_project_company_parameters.go | 167 + ...lete_research_project_company_responses.go | 92 + .../delete_research_project_parameters.go | 167 + .../delete_research_project_responses.go | 92 + ...elete_research_project_topic_parameters.go | 167 + ...delete_research_project_topic_responses.go | 92 + .../operations/delete_ticket_parameters.go | 167 + .../operations/delete_ticket_responses.go | 92 + .../delete_transaction_parameters.go | 167 + .../delete_transaction_responses.go | 92 + .../operations/get_attendees_parameters.go | 240 ++ .../operations/get_attendees_responses.go | 92 + .../operations/get_certificates_parameters.go | 240 ++ .../operations/get_certificates_responses.go | 92 + .../get_course_lessons_parameters.go | 240 ++ .../get_course_lessons_responses.go | 92 + .../get_course_sections_parameters.go | 240 ++ .../get_course_sections_responses.go | 92 + .../operations/get_courses_parameters.go | 240 ++ .../operations/get_courses_responses.go | 92 + .../operations/get_enrollments_parameters.go | 240 ++ .../operations/get_enrollments_responses.go | 92 + ...et_event_categoryassignments_parameters.go | 240 ++ ...get_event_categoryassignments_responses.go | 92 + .../get_event_categorys_parameters.go | 240 ++ .../get_event_categorys_responses.go | 92 + .../operations/get_events_parameters.go | 240 ++ .../operations/get_events_responses.go | 92 + .../operations/get_favorites_parameters.go | 240 ++ .../operations/get_favorites_responses.go | 92 + .../operations/get_invoices_parameters.go | 240 ++ .../operations/get_invoices_responses.go | 92 + .../get_issuedcertificates_parameters.go | 240 ++ .../get_issuedcertificates_responses.go | 92 + .../get_lesson_progress_parameters.go | 240 ++ .../get_lesson_progress_responses.go | 92 + .../operations/get_orders_parameters.go | 240 ++ .../operations/get_orders_responses.go | 92 + .../get_payment_methods_parameters.go | 240 ++ .../get_payment_methods_responses.go | 92 + ...et_research_project_companys_parameters.go | 240 ++ ...get_research_project_companys_responses.go | 92 + .../get_research_project_topics_parameters.go | 240 ++ .../get_research_project_topics_responses.go | 92 + .../get_research_projects_parameters.go | 240 ++ .../get_research_projects_responses.go | 92 + .../operations/get_tickets_parameters.go | 240 ++ .../operations/get_tickets_responses.go | 92 + .../operations/get_transactions_parameters.go | 240 ++ .../operations/get_transactions_responses.go | 92 + .../operations/operations_client.go | 3243 +++++++++++++++++ .../operations/update_attendee_parameters.go | 167 + .../operations/update_attendee_responses.go | 92 + .../update_certificate_parameters.go | 167 + .../update_certificate_responses.go | 92 + .../update_course_lesson_parameters.go | 167 + .../update_course_lesson_responses.go | 92 + .../operations/update_course_parameters.go | 167 + .../operations/update_course_responses.go | 92 + .../update_course_section_parameters.go | 167 + .../update_course_section_responses.go | 92 + .../update_enrollment_parameters.go | 167 + .../operations/update_enrollment_responses.go | 92 + ...te_event_category_assignment_parameters.go | 167 + ...ate_event_category_assignment_responses.go | 92 + .../update_event_category_parameters.go | 167 + .../update_event_category_responses.go | 92 + .../operations/update_event_parameters.go | 167 + .../operations/update_event_responses.go | 92 + .../operations/update_favorite_parameters.go | 167 + .../operations/update_favorite_responses.go | 92 + .../operations/update_invoice_parameters.go | 167 + .../operations/update_invoice_responses.go | 92 + .../update_issued_certificate_parameters.go | 167 + .../update_issued_certificate_responses.go | 92 + .../update_lesson_progress_parameters.go | 167 + .../update_lesson_progress_responses.go | 92 + .../operations/update_order_parameters.go | 167 + .../operations/update_order_responses.go | 92 + .../update_payment_method_parameters.go | 167 + .../update_payment_method_responses.go | 92 + ...ate_research_project_company_parameters.go | 167 + ...date_research_project_company_responses.go | 92 + .../update_research_project_parameters.go | 167 + .../update_research_project_responses.go | 92 + ...pdate_research_project_topic_parameters.go | 167 + ...update_research_project_topic_responses.go | 92 + .../operations/update_ticket_parameters.go | 167 + .../operations/update_ticket_responses.go | 92 + .../update_transaction_parameters.go | 167 + .../update_transaction_responses.go | 92 + api/members/members_models/attendee.go | 72 + .../members_models/attendee_request.go | 120 + .../members_models/attendee_response.go | 120 + api/members/members_models/certificate.go | 78 + .../members_models/certificate_request.go | 120 + .../members_models/certificate_response.go | 120 + api/members/members_models/course.go | 81 + api/members/members_models/course_lesson.go | 81 + .../members_models/course_lesson_request.go | 120 + .../members_models/course_lesson_response.go | 120 + api/members/members_models/course_request.go | 120 + api/members/members_models/course_response.go | 120 + api/members/members_models/course_section.go | 78 + .../members_models/course_section_request.go | 120 + .../members_models/course_section_response.go | 120 + api/members/members_models/enrollment.go | 78 + .../members_models/enrollment_request.go | 120 + .../members_models/enrollment_response.go | 120 + api/members/members_models/event.go | 81 + api/members/members_models/event_category.go | 63 + .../event_category_assignment.go | 66 + .../event_category_assignment_request.go | 120 + .../event_category_assignment_response.go | 120 + .../members_models/event_category_request.go | 120 + .../members_models/event_category_response.go | 120 + api/members/members_models/event_request.go | 120 + api/members/members_models/event_response.go | 120 + api/members/members_models/favorite.go | 87 + .../members_models/favorite_request.go | 120 + .../members_models/favorite_response.go | 120 + api/members/members_models/invoice.go | 90 + api/members/members_models/invoice_request.go | 120 + .../members_models/invoice_response.go | 120 + .../members_models/issued_certificate.go | 84 + .../issued_certificate_request.go | 120 + .../issued_certificate_response.go | 120 + api/members/members_models/lesson_progress.go | 81 + .../members_models/lesson_progress_request.go | 120 + .../lesson_progress_response.go | 120 + api/members/members_models/order.go | 78 + api/members/members_models/order_request.go | 120 + api/members/members_models/order_response.go | 120 + api/members/members_models/payment_method.go | 87 + .../members_models/payment_method_request.go | 120 + .../members_models/payment_method_response.go | 120 + .../members_models/research_project.go | 81 + .../research_project_company.go | 75 + .../research_project_company_request.go | 120 + .../research_project_company_response.go | 120 + .../research_project_request.go | 120 + .../research_project_response.go | 120 + .../members_models/research_project_topic.go | 75 + .../research_project_topic_request.go | 120 + .../research_project_topic_response.go | 120 + api/members/members_models/ticket.go | 72 + api/members/members_models/ticket_request.go | 120 + api/members/members_models/ticket_response.go | 120 + api/members/members_models/transaction.go | 90 + .../members_models/transaction_request.go | 120 + .../members_models/transaction_response.go | 120 + .../get_industries_observable_parameters.go | 2 +- .../get_industries_observable_responses.go | 2 +- .../industry/get_industries_parameters.go | 2 +- .../industry/get_industries_responses.go | 2 +- .../industry/post_industries_responses.go | 2 +- .../topic/get_topics_observable_parameters.go | 2 +- .../topic/get_topics_observable_responses.go | 2 +- .../topic/get_topics_parameters.go | 2 +- .../topic/get_topics_responses.go | 2 +- .../topic/post_topics_responses.go | 2 +- .../research_models/company_product.go | 25 +- api/research/research_models/factor.go | 5 +- api/research/research_models/industry.go | 14 +- .../research_models/industry_product.go | 75 + api/research/research_models/observation.go | 8 +- api/research/research_models/request_meta.go | 2 +- api/research/research_models/response_meta.go | 2 +- api/research/research_models/topic.go | 5 +- .../sfgate_client/accounts/accounts_client.go | 26 +- .../accounts/delete_account_parameters.go | 2 +- .../accounts/delete_account_responses.go | 2 +- .../accounts/get_accounts_parameters.go | 2 +- .../accounts/get_accounts_responses.go | 2 +- .../accounts/post_accounts_responses.go | 77 +- .../accounts/put_account_parameters.go | 157 - .../accounts/put_account_responses.go | 539 --- .../accounts/put_accounts_parameters.go | 157 + .../accounts/put_accounts_responses.go | 539 +++ .../sfgate_client/assets/assets_client.go | 6 +- .../assets/get_assets_parameters.go | 2 +- .../assets/get_assets_responses.go | 2 +- .../assets/post_assets_responses.go | 77 +- .../sfgate_client/clusters/clusters_client.go | 10 +- .../clusters/get_clusters_parameters.go | 2 +- .../clusters/get_clusters_responses.go | 2 +- .../clusters/post_clusters_responses.go | 60 +- .../clusters/put_clusters_responses.go | 2 +- .../company_products_client.go | 6 +- .../get_company_products_parameters.go | 2 +- .../get_company_products_responses.go | 2 +- .../post_company_products_responses.go | 77 +- .../sfgate_client/contacts/contacts_client.go | 94 +- .../contacts/delete_contacts_parameters.go | 167 + .../contacts/delete_contacts_responses.go | 522 +++ .../contacts/get_contacts_parameters.go | 4 +- .../contacts/get_contacts_responses.go | 2 +- .../contacts/post_contacts_responses.go | 60 +- .../contacts/put_contacts_parameters.go | 157 + .../contacts/put_contacts_responses.go | 522 +++ .../contracts/contracts_client.go | 43 - .../contracts/get_contracts_parameters.go | 2 +- .../contracts/get_contracts_responses.go | 2 +- .../contracts/post_contracts_parameters.go | 157 - .../contracts/post_contracts_responses.go | 539 --- .../databases/databases_client.go | 10 +- .../databases/get_databases_parameters.go | 2 +- .../databases/get_databases_responses.go | 2 +- .../databases/post_databases_responses.go | 60 +- .../databases/put_databases_responses.go | 2 +- .../industries/get_industries_parameters.go | 2 +- .../industries/get_industries_responses.go | 2 +- .../industries/industries_client.go | 6 +- .../industries/post_industries_responses.go | 77 +- .../industry_products_client.go | 6 +- .../post_industryproducts_responses.go | 77 +- .../get_industry_products_parameters.go | 2 +- .../get_industry_products_responses.go | 77 +- .../industryproducts_client.go | 6 +- .../roles/get_roles_parameters.go | 2 +- .../roles/get_roles_responses.go | 2 +- .../templates/get_templates_parameters.go | 2 +- .../templates/get_templates_responses.go | 2 +- .../tenants/get_tenants_parameters.go | 2 +- .../tenants/get_tenants_responses.go | 2 +- .../tenants/put_tenants_responses.go | 2 +- .../sfgate_client/tenants/tenants_client.go | 10 +- .../tenants/tenants_responses.go | 60 +- .../users/get_users_parameters.go | 4 +- .../users/get_users_responses.go | 2 +- .../users/post_user_parameters.go | 157 + .../users/post_user_responses.go | 522 +++ .../sfgate_client/users/users_client.go | 43 + api/sfgate/sfgate_models/account.go | 67 +- api/sfgate/sfgate_models/address.go | 49 +- api/sfgate/sfgate_models/asset.go | 5 +- api/sfgate/sfgate_models/cluster.go | 36 +- api/sfgate/sfgate_models/cluster_request.go | 8 +- api/sfgate/sfgate_models/company_product.go | 23 +- .../sfgate_models/company_product_request.go | 8 +- api/sfgate/sfgate_models/contact.go | 14 +- api/sfgate/sfgate_models/contact_request.go | 8 +- api/sfgate/sfgate_models/contract.go | 3 + api/sfgate/sfgate_models/database.go | 32 +- api/sfgate/sfgate_models/industry.go | 88 +- api/sfgate/sfgate_models/industry_product.go | 2 +- api/sfgate/sfgate_models/request_meta.go | 2 +- api/sfgate/sfgate_models/response_meta.go | 2 +- api/sfgate/sfgate_models/role.go | 18 +- .../sfgate_models/salesforce_post.go} | 26 +- .../sfgate_models/salesforce_post_response.go | 166 + api/sfgate/sfgate_models/template.go | 11 +- api/sfgate/sfgate_models/tenant.go | 80 +- api/sfgate/sfgate_models/user.go | 218 +- .../sfgate_models}/user_request.go | 82 +- api/sfgate/sfgate_models/user_role.go | 35 +- api/stash/stash_models/request_meta.go | 2 +- api/stash/stash_models/response_meta.go | 2 +- go.mod | 6 +- go.sum | 86 +- openapitools.json | 7 - swagger/auth-vernonkeenan.yaml | 20 +- swagger/auth0.yaml | 494 --- swagger/crm-vernonkeenan.yaml | 104 +- swagger/devops-vernonkeenan.yaml | 74 +- swagger/external/auth-vernonkeenan.yaml | 20 +- swagger/external/crm-vernonkeenan.yaml | 104 +- swagger/external/devops-vernonkeenan.yaml | 74 +- swagger/external/members-vernonkeenan.yaml | 1869 ++++++++++ swagger/external/research-vernonkeenan.yaml | 508 +-- swagger/external/sf-gate-vernonkeenan.yaml | 949 +++-- swagger/external/stash-vernonkeenan.yaml | 14 +- swagger/members-vernonkeenan.yaml | 1869 ++++++++++ swagger/research-vernonkeenan.yaml | 508 +-- swagger/sf-gate-vernonkeenan.yaml | 949 +++-- swagger/stash-vernonkeenan.yaml | 14 +- 458 files changed, 41467 insertions(+), 10613 deletions(-) delete mode 100644 api/auth0/auth0_client/auth/auth_client.go delete mode 100644 api/auth0/auth0_client/auth/post_credentials_parameters.go delete mode 100644 api/auth0/auth0_client/auth/post_credentials_responses.go delete mode 100644 api/auth0/auth0_client/role/get_roles_parameters.go delete mode 100644 api/auth0/auth0_client/role/get_roles_responses.go delete mode 100644 api/auth0/auth0_client/role/post_role_users_parameters.go delete mode 100644 api/auth0/auth0_client/role/post_role_users_responses.go delete mode 100644 api/auth0/auth0_client/role/role_client.go delete mode 100644 api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go delete mode 100644 api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go delete mode 100644 api/auth0/auth0_client/user/get_user_by_email_parameters.go delete mode 100644 api/auth0/auth0_client/user/get_user_by_email_responses.go delete mode 100644 api/auth0/auth0_client/user/get_user_roles_parameters.go delete mode 100644 api/auth0/auth0_client/user/get_user_roles_responses.go delete mode 100644 api/auth0/auth0_client/user/get_users_parameters.go delete mode 100644 api/auth0/auth0_client/user/get_users_responses.go delete mode 100644 api/auth0/auth0_client/user/post_users_parameters.go delete mode 100644 api/auth0/auth0_client/user/post_users_responses.go delete mode 100644 api/auth0/auth0_client/user/user_client.go delete mode 100644 api/auth0/auth0_models/credentials_request.go delete mode 100644 api/auth0/auth0_models/credentials_response.go delete mode 100644 api/auth0/auth0_models/error.go delete mode 100644 api/auth0/auth0_models/new_user.go delete mode 100644 api/auth0/auth0_models/role.go delete mode 100644 api/auth0/auth0_models/role_response.go delete mode 100644 api/auth0/auth0_models/role_users_request.go delete mode 100644 api/auth0/auth0_models/user.go rename api/{auth0/auth0_client/auth0_client.go => members/members_client/members_client.go} (71%) create mode 100644 api/members/members_client/operations/create_attendee_parameters.go create mode 100644 api/members/members_client/operations/create_attendee_responses.go create mode 100644 api/members/members_client/operations/create_certificate_parameters.go create mode 100644 api/members/members_client/operations/create_certificate_responses.go create mode 100644 api/members/members_client/operations/create_course_lesson_parameters.go create mode 100644 api/members/members_client/operations/create_course_lesson_responses.go create mode 100644 api/members/members_client/operations/create_course_parameters.go create mode 100644 api/members/members_client/operations/create_course_responses.go create mode 100644 api/members/members_client/operations/create_course_section_parameters.go create mode 100644 api/members/members_client/operations/create_course_section_responses.go create mode 100644 api/members/members_client/operations/create_enrollment_parameters.go create mode 100644 api/members/members_client/operations/create_enrollment_responses.go create mode 100644 api/members/members_client/operations/create_event_category_assignment_parameters.go create mode 100644 api/members/members_client/operations/create_event_category_assignment_responses.go create mode 100644 api/members/members_client/operations/create_event_category_parameters.go create mode 100644 api/members/members_client/operations/create_event_category_responses.go create mode 100644 api/members/members_client/operations/create_event_parameters.go create mode 100644 api/members/members_client/operations/create_event_responses.go create mode 100644 api/members/members_client/operations/create_favorite_parameters.go create mode 100644 api/members/members_client/operations/create_favorite_responses.go create mode 100644 api/members/members_client/operations/create_invoice_parameters.go create mode 100644 api/members/members_client/operations/create_invoice_responses.go create mode 100644 api/members/members_client/operations/create_issued_certificate_parameters.go create mode 100644 api/members/members_client/operations/create_issued_certificate_responses.go create mode 100644 api/members/members_client/operations/create_lesson_progress_parameters.go create mode 100644 api/members/members_client/operations/create_lesson_progress_responses.go create mode 100644 api/members/members_client/operations/create_order_parameters.go create mode 100644 api/members/members_client/operations/create_order_responses.go create mode 100644 api/members/members_client/operations/create_payment_method_parameters.go create mode 100644 api/members/members_client/operations/create_payment_method_responses.go create mode 100644 api/members/members_client/operations/create_research_project_company_parameters.go create mode 100644 api/members/members_client/operations/create_research_project_company_responses.go create mode 100644 api/members/members_client/operations/create_research_project_parameters.go create mode 100644 api/members/members_client/operations/create_research_project_responses.go create mode 100644 api/members/members_client/operations/create_research_project_topic_parameters.go create mode 100644 api/members/members_client/operations/create_research_project_topic_responses.go create mode 100644 api/members/members_client/operations/create_ticket_parameters.go create mode 100644 api/members/members_client/operations/create_ticket_responses.go create mode 100644 api/members/members_client/operations/create_transaction_parameters.go create mode 100644 api/members/members_client/operations/create_transaction_responses.go create mode 100644 api/members/members_client/operations/delete_attendee_parameters.go create mode 100644 api/members/members_client/operations/delete_attendee_responses.go create mode 100644 api/members/members_client/operations/delete_certificate_parameters.go create mode 100644 api/members/members_client/operations/delete_certificate_responses.go create mode 100644 api/members/members_client/operations/delete_course_lesson_parameters.go create mode 100644 api/members/members_client/operations/delete_course_lesson_responses.go create mode 100644 api/members/members_client/operations/delete_course_parameters.go create mode 100644 api/members/members_client/operations/delete_course_responses.go create mode 100644 api/members/members_client/operations/delete_course_section_parameters.go create mode 100644 api/members/members_client/operations/delete_course_section_responses.go create mode 100644 api/members/members_client/operations/delete_enrollment_parameters.go create mode 100644 api/members/members_client/operations/delete_enrollment_responses.go create mode 100644 api/members/members_client/operations/delete_event_category_assignment_parameters.go create mode 100644 api/members/members_client/operations/delete_event_category_assignment_responses.go create mode 100644 api/members/members_client/operations/delete_event_category_parameters.go create mode 100644 api/members/members_client/operations/delete_event_category_responses.go create mode 100644 api/members/members_client/operations/delete_event_parameters.go create mode 100644 api/members/members_client/operations/delete_event_responses.go create mode 100644 api/members/members_client/operations/delete_favorite_parameters.go create mode 100644 api/members/members_client/operations/delete_favorite_responses.go create mode 100644 api/members/members_client/operations/delete_invoice_parameters.go create mode 100644 api/members/members_client/operations/delete_invoice_responses.go create mode 100644 api/members/members_client/operations/delete_issued_certificate_parameters.go create mode 100644 api/members/members_client/operations/delete_issued_certificate_responses.go create mode 100644 api/members/members_client/operations/delete_lesson_progress_parameters.go create mode 100644 api/members/members_client/operations/delete_lesson_progress_responses.go create mode 100644 api/members/members_client/operations/delete_order_parameters.go create mode 100644 api/members/members_client/operations/delete_order_responses.go create mode 100644 api/members/members_client/operations/delete_payment_method_parameters.go create mode 100644 api/members/members_client/operations/delete_payment_method_responses.go create mode 100644 api/members/members_client/operations/delete_research_project_company_parameters.go create mode 100644 api/members/members_client/operations/delete_research_project_company_responses.go create mode 100644 api/members/members_client/operations/delete_research_project_parameters.go create mode 100644 api/members/members_client/operations/delete_research_project_responses.go create mode 100644 api/members/members_client/operations/delete_research_project_topic_parameters.go create mode 100644 api/members/members_client/operations/delete_research_project_topic_responses.go create mode 100644 api/members/members_client/operations/delete_ticket_parameters.go create mode 100644 api/members/members_client/operations/delete_ticket_responses.go create mode 100644 api/members/members_client/operations/delete_transaction_parameters.go create mode 100644 api/members/members_client/operations/delete_transaction_responses.go create mode 100644 api/members/members_client/operations/get_attendees_parameters.go create mode 100644 api/members/members_client/operations/get_attendees_responses.go create mode 100644 api/members/members_client/operations/get_certificates_parameters.go create mode 100644 api/members/members_client/operations/get_certificates_responses.go create mode 100644 api/members/members_client/operations/get_course_lessons_parameters.go create mode 100644 api/members/members_client/operations/get_course_lessons_responses.go create mode 100644 api/members/members_client/operations/get_course_sections_parameters.go create mode 100644 api/members/members_client/operations/get_course_sections_responses.go create mode 100644 api/members/members_client/operations/get_courses_parameters.go create mode 100644 api/members/members_client/operations/get_courses_responses.go create mode 100644 api/members/members_client/operations/get_enrollments_parameters.go create mode 100644 api/members/members_client/operations/get_enrollments_responses.go create mode 100644 api/members/members_client/operations/get_event_categoryassignments_parameters.go create mode 100644 api/members/members_client/operations/get_event_categoryassignments_responses.go create mode 100644 api/members/members_client/operations/get_event_categorys_parameters.go create mode 100644 api/members/members_client/operations/get_event_categorys_responses.go create mode 100644 api/members/members_client/operations/get_events_parameters.go create mode 100644 api/members/members_client/operations/get_events_responses.go create mode 100644 api/members/members_client/operations/get_favorites_parameters.go create mode 100644 api/members/members_client/operations/get_favorites_responses.go create mode 100644 api/members/members_client/operations/get_invoices_parameters.go create mode 100644 api/members/members_client/operations/get_invoices_responses.go create mode 100644 api/members/members_client/operations/get_issuedcertificates_parameters.go create mode 100644 api/members/members_client/operations/get_issuedcertificates_responses.go create mode 100644 api/members/members_client/operations/get_lesson_progress_parameters.go create mode 100644 api/members/members_client/operations/get_lesson_progress_responses.go create mode 100644 api/members/members_client/operations/get_orders_parameters.go create mode 100644 api/members/members_client/operations/get_orders_responses.go create mode 100644 api/members/members_client/operations/get_payment_methods_parameters.go create mode 100644 api/members/members_client/operations/get_payment_methods_responses.go create mode 100644 api/members/members_client/operations/get_research_project_companys_parameters.go create mode 100644 api/members/members_client/operations/get_research_project_companys_responses.go create mode 100644 api/members/members_client/operations/get_research_project_topics_parameters.go create mode 100644 api/members/members_client/operations/get_research_project_topics_responses.go create mode 100644 api/members/members_client/operations/get_research_projects_parameters.go create mode 100644 api/members/members_client/operations/get_research_projects_responses.go create mode 100644 api/members/members_client/operations/get_tickets_parameters.go create mode 100644 api/members/members_client/operations/get_tickets_responses.go create mode 100644 api/members/members_client/operations/get_transactions_parameters.go create mode 100644 api/members/members_client/operations/get_transactions_responses.go create mode 100644 api/members/members_client/operations/operations_client.go create mode 100644 api/members/members_client/operations/update_attendee_parameters.go create mode 100644 api/members/members_client/operations/update_attendee_responses.go create mode 100644 api/members/members_client/operations/update_certificate_parameters.go create mode 100644 api/members/members_client/operations/update_certificate_responses.go create mode 100644 api/members/members_client/operations/update_course_lesson_parameters.go create mode 100644 api/members/members_client/operations/update_course_lesson_responses.go create mode 100644 api/members/members_client/operations/update_course_parameters.go create mode 100644 api/members/members_client/operations/update_course_responses.go create mode 100644 api/members/members_client/operations/update_course_section_parameters.go create mode 100644 api/members/members_client/operations/update_course_section_responses.go create mode 100644 api/members/members_client/operations/update_enrollment_parameters.go create mode 100644 api/members/members_client/operations/update_enrollment_responses.go create mode 100644 api/members/members_client/operations/update_event_category_assignment_parameters.go create mode 100644 api/members/members_client/operations/update_event_category_assignment_responses.go create mode 100644 api/members/members_client/operations/update_event_category_parameters.go create mode 100644 api/members/members_client/operations/update_event_category_responses.go create mode 100644 api/members/members_client/operations/update_event_parameters.go create mode 100644 api/members/members_client/operations/update_event_responses.go create mode 100644 api/members/members_client/operations/update_favorite_parameters.go create mode 100644 api/members/members_client/operations/update_favorite_responses.go create mode 100644 api/members/members_client/operations/update_invoice_parameters.go create mode 100644 api/members/members_client/operations/update_invoice_responses.go create mode 100644 api/members/members_client/operations/update_issued_certificate_parameters.go create mode 100644 api/members/members_client/operations/update_issued_certificate_responses.go create mode 100644 api/members/members_client/operations/update_lesson_progress_parameters.go create mode 100644 api/members/members_client/operations/update_lesson_progress_responses.go create mode 100644 api/members/members_client/operations/update_order_parameters.go create mode 100644 api/members/members_client/operations/update_order_responses.go create mode 100644 api/members/members_client/operations/update_payment_method_parameters.go create mode 100644 api/members/members_client/operations/update_payment_method_responses.go create mode 100644 api/members/members_client/operations/update_research_project_company_parameters.go create mode 100644 api/members/members_client/operations/update_research_project_company_responses.go create mode 100644 api/members/members_client/operations/update_research_project_parameters.go create mode 100644 api/members/members_client/operations/update_research_project_responses.go create mode 100644 api/members/members_client/operations/update_research_project_topic_parameters.go create mode 100644 api/members/members_client/operations/update_research_project_topic_responses.go create mode 100644 api/members/members_client/operations/update_ticket_parameters.go create mode 100644 api/members/members_client/operations/update_ticket_responses.go create mode 100644 api/members/members_client/operations/update_transaction_parameters.go create mode 100644 api/members/members_client/operations/update_transaction_responses.go create mode 100644 api/members/members_models/attendee.go create mode 100644 api/members/members_models/attendee_request.go create mode 100644 api/members/members_models/attendee_response.go create mode 100644 api/members/members_models/certificate.go create mode 100644 api/members/members_models/certificate_request.go create mode 100644 api/members/members_models/certificate_response.go create mode 100644 api/members/members_models/course.go create mode 100644 api/members/members_models/course_lesson.go create mode 100644 api/members/members_models/course_lesson_request.go create mode 100644 api/members/members_models/course_lesson_response.go create mode 100644 api/members/members_models/course_request.go create mode 100644 api/members/members_models/course_response.go create mode 100644 api/members/members_models/course_section.go create mode 100644 api/members/members_models/course_section_request.go create mode 100644 api/members/members_models/course_section_response.go create mode 100644 api/members/members_models/enrollment.go create mode 100644 api/members/members_models/enrollment_request.go create mode 100644 api/members/members_models/enrollment_response.go create mode 100644 api/members/members_models/event.go create mode 100644 api/members/members_models/event_category.go create mode 100644 api/members/members_models/event_category_assignment.go create mode 100644 api/members/members_models/event_category_assignment_request.go create mode 100644 api/members/members_models/event_category_assignment_response.go create mode 100644 api/members/members_models/event_category_request.go create mode 100644 api/members/members_models/event_category_response.go create mode 100644 api/members/members_models/event_request.go create mode 100644 api/members/members_models/event_response.go create mode 100644 api/members/members_models/favorite.go create mode 100644 api/members/members_models/favorite_request.go create mode 100644 api/members/members_models/favorite_response.go create mode 100644 api/members/members_models/invoice.go create mode 100644 api/members/members_models/invoice_request.go create mode 100644 api/members/members_models/invoice_response.go create mode 100644 api/members/members_models/issued_certificate.go create mode 100644 api/members/members_models/issued_certificate_request.go create mode 100644 api/members/members_models/issued_certificate_response.go create mode 100644 api/members/members_models/lesson_progress.go create mode 100644 api/members/members_models/lesson_progress_request.go create mode 100644 api/members/members_models/lesson_progress_response.go create mode 100644 api/members/members_models/order.go create mode 100644 api/members/members_models/order_request.go create mode 100644 api/members/members_models/order_response.go create mode 100644 api/members/members_models/payment_method.go create mode 100644 api/members/members_models/payment_method_request.go create mode 100644 api/members/members_models/payment_method_response.go create mode 100644 api/members/members_models/research_project.go create mode 100644 api/members/members_models/research_project_company.go create mode 100644 api/members/members_models/research_project_company_request.go create mode 100644 api/members/members_models/research_project_company_response.go create mode 100644 api/members/members_models/research_project_request.go create mode 100644 api/members/members_models/research_project_response.go create mode 100644 api/members/members_models/research_project_topic.go create mode 100644 api/members/members_models/research_project_topic_request.go create mode 100644 api/members/members_models/research_project_topic_response.go create mode 100644 api/members/members_models/ticket.go create mode 100644 api/members/members_models/ticket_request.go create mode 100644 api/members/members_models/ticket_response.go create mode 100644 api/members/members_models/transaction.go create mode 100644 api/members/members_models/transaction_request.go create mode 100644 api/members/members_models/transaction_response.go create mode 100644 api/research/research_models/industry_product.go delete mode 100644 api/sfgate/sfgate_client/accounts/put_account_parameters.go delete mode 100644 api/sfgate/sfgate_client/accounts/put_account_responses.go create mode 100644 api/sfgate/sfgate_client/accounts/put_accounts_parameters.go create mode 100644 api/sfgate/sfgate_client/accounts/put_accounts_responses.go create mode 100644 api/sfgate/sfgate_client/contacts/delete_contacts_parameters.go create mode 100644 api/sfgate/sfgate_client/contacts/delete_contacts_responses.go create mode 100644 api/sfgate/sfgate_client/contacts/put_contacts_parameters.go create mode 100644 api/sfgate/sfgate_client/contacts/put_contacts_responses.go delete mode 100644 api/sfgate/sfgate_client/contracts/post_contracts_parameters.go delete mode 100644 api/sfgate/sfgate_client/contracts/post_contracts_responses.go create mode 100644 api/sfgate/sfgate_client/users/post_user_parameters.go create mode 100644 api/sfgate/sfgate_client/users/post_user_responses.go rename api/{auth0/auth0_models/user_roles_request.go => sfgate/sfgate_models/salesforce_post.go} (52%) create mode 100644 api/sfgate/sfgate_models/salesforce_post_response.go rename api/{auth0/auth0_models => sfgate/sfgate_models}/user_request.go (50%) delete mode 100644 openapitools.json delete mode 100644 swagger/auth0.yaml create mode 100644 swagger/external/members-vernonkeenan.yaml create mode 100644 swagger/members-vernonkeenan.yaml diff --git a/Makefile b/Makefile index 71b0aea..d5ab34c 100644 --- a/Makefile +++ b/Makefile @@ -14,24 +14,14 @@ swagger: cp ../sf-gate/swagger/sf-gate-vernonkeenan.yaml ./swagger/external cp ../research/swagger/research-vernonkeenan.yaml ./swagger cp ../research/swagger/research-vernonkeenan.yaml ./swagger/external + cp ../members/swagger/members-vernonkeenan.yaml ./swagger + cp ../members/swagger/members-vernonkeenan.yaml ./swagger/external # rm -rf api # - # generate auth0 client - # - mkdir -p api/auth0 - swagger generate client \ - --log-output=./swagger/logs/generate-auth0-client.log \ - --copyright-file=./build/COPYRIGHT \ - --name=auth0 \ - --spec=./swagger/auth0.yaml \ - --target=./api/auth0 \ - --client-package=auth0-client \ - --model-package=auth0-models - # # generate auth client # - mkdir api/auth + mkdir -p api/auth swagger generate client \ --log-output=./swagger/logs/generate-auth-client.log \ --copyright-file=./build/COPYRIGHT \ @@ -143,6 +133,25 @@ swagger: sed -i 's|research.vernonkeenan.com:8080|gw.tnxs.net|g' ./swagger/external/research-vernonkeenan.yaml sed -i 's|"/v1"|"/vk/research/v1"|g' ./swagger/external/research-vernonkeenan.yaml # + # generate members client + # + mkdir api/members + swagger generate client \ + --log-output=./swagger/logs/generate-members-client.log \ + --copyright-file=./build/COPYRIGHT \ + --name=members \ + --spec=./swagger/members-vernonkeenan.yaml \ + --target=./api/members \ + --client-package=members-client \ + --model-package=members-models \ + --principal=app.User + # + # update external members client + # + sed -i 's|"http"|"https"|g' ./swagger/external/members-vernonkeenan.yaml + sed -i 's|members.vernonkeenan.com:8080|gw.tnxs.net|g' ./swagger/external/members-vernonkeenan.yaml + sed -i 's|"/v1"|"/vk/members/v1"|g' ./swagger/external/members-vernonkeenan.yaml + # # copy external swagger files # - scp ./swagger/external/*.yaml root@whm.noc.tnxs.net:/home/taxnexus/www/assets/swagger/ \ No newline at end of file + scp ./swagger/external/*.yaml root@whm.noc.tnxs.net:/home/taxnexus/www/assets/swagger/ diff --git a/api/auth/auth_client/user/get_users_responses.go b/api/auth/auth_client/user/get_users_responses.go index 4b5679e..f6baf88 100644 --- a/api/auth/auth_client/user/get_users_responses.go +++ b/api/auth/auth_client/user/get_users_responses.go @@ -76,7 +76,7 @@ func NewGetUsersOK() *GetUsersOK { /* GetUsersOK describes a response with status code 200, with default header values. -Taxnexus Response with User objects +Response with User objects */ type GetUsersOK struct { Payload *auth_models.UserResponse diff --git a/api/auth/auth_models/response_meta.go b/api/auth/auth_models/response_meta.go index 0cee8ef..4e879b4 100644 --- a/api/auth/auth_models/response_meta.go +++ b/api/auth/auth_models/response_meta.go @@ -51,7 +51,7 @@ type ResponseMeta struct { // Backend Server Timestamp ServerTimestamp string `json:"ServerTimestamp,omitempty"` - // Taxnexus Account Number used for recording transactions + // Account Number used for recording transactions TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` } diff --git a/api/auth/auth_models/tenant_user.go b/api/auth/auth_models/tenant_user.go index a5088d6..7d23500 100644 --- a/api/auth/auth_models/tenant_user.go +++ b/api/auth/auth_models/tenant_user.go @@ -36,7 +36,7 @@ type TenantUser struct { // Contact ID ContactID string `json:"ContactID,omitempty"` - // Taxnexus Account + // Account TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` // Tenant active? diff --git a/api/auth/auth_models/user.go b/api/auth/auth_models/user.go index 18db6b2..87d260a 100644 --- a/api/auth/auth_models/user.go +++ b/api/auth/auth_models/user.go @@ -95,7 +95,7 @@ type User struct { // Full Photo URL FullPhotoURL string `json:"FullPhotoURL,omitempty"` - // Taxnexus ID + // ID ID string `json:"ID,omitempty"` // Active @@ -170,7 +170,7 @@ type User struct { // The time day starts StartOfDay string `json:"StartOfDay,omitempty"` - // Taxnexus Account + // Account TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` // Tenant ID associated with this user diff --git a/api/auth/auth_models/user_role.go b/api/auth/auth_models/user_role.go index a4a3eeb..15b36f1 100644 --- a/api/auth/auth_models/user_role.go +++ b/api/auth/auth_models/user_role.go @@ -45,7 +45,7 @@ type UserRole struct { // Role Name RoleName string `json:"RoleName,omitempty"` - // Taxnexus Account Number + // Account Number TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` // User Email Address diff --git a/api/auth0/auth0_client/auth/auth_client.go b/api/auth0/auth0_client/auth/auth_client.go deleted file mode 100644 index 7dc9794..0000000 --- a/api/auth0/auth0_client/auth/auth_client.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new auth API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for auth API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientOption is the option for Client methods -type ClientOption func(*runtime.ClientOperation) - -// ClientService is the interface for Client methods -type ClientService interface { - PostCredentials(params *PostCredentialsParams, opts ...ClientOption) (*PostCredentialsOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -PostCredentials posts to oauth token - -Get credential token -*/ -func (a *Client) PostCredentials(params *PostCredentialsParams, opts ...ClientOption) (*PostCredentialsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostCredentialsParams() - } - op := &runtime.ClientOperation{ - ID: "postCredentials", - Method: "POST", - PathPattern: "/oauth/token", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &PostCredentialsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*PostCredentialsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for postCredentials: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/api/auth0/auth0_client/auth/post_credentials_parameters.go b/api/auth0/auth0_client/auth/post_credentials_parameters.go deleted file mode 100644 index 15b866c..0000000 --- a/api/auth0/auth0_client/auth/post_credentials_parameters.go +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// NewPostCredentialsParams creates a new PostCredentialsParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewPostCredentialsParams() *PostCredentialsParams { - return &PostCredentialsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewPostCredentialsParamsWithTimeout creates a new PostCredentialsParams object -// with the ability to set a timeout on a request. -func NewPostCredentialsParamsWithTimeout(timeout time.Duration) *PostCredentialsParams { - return &PostCredentialsParams{ - timeout: timeout, - } -} - -// NewPostCredentialsParamsWithContext creates a new PostCredentialsParams object -// with the ability to set a context for a request. -func NewPostCredentialsParamsWithContext(ctx context.Context) *PostCredentialsParams { - return &PostCredentialsParams{ - Context: ctx, - } -} - -// NewPostCredentialsParamsWithHTTPClient creates a new PostCredentialsParams object -// with the ability to set a custom HTTPClient for a request. -func NewPostCredentialsParamsWithHTTPClient(client *http.Client) *PostCredentialsParams { - return &PostCredentialsParams{ - HTTPClient: client, - } -} - -/* -PostCredentialsParams contains all the parameters to send to the API endpoint - - for the post credentials operation. - - Typically these are written to a http.Request. -*/ -type PostCredentialsParams struct { - - /* CredentialsRequest. - - Get Authentation Token - */ - CredentialsRequest *auth0_models.CredentialsRequest - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the post credentials params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostCredentialsParams) WithDefaults() *PostCredentialsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the post credentials params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostCredentialsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the post credentials params -func (o *PostCredentialsParams) WithTimeout(timeout time.Duration) *PostCredentialsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the post credentials params -func (o *PostCredentialsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the post credentials params -func (o *PostCredentialsParams) WithContext(ctx context.Context) *PostCredentialsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the post credentials params -func (o *PostCredentialsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the post credentials params -func (o *PostCredentialsParams) WithHTTPClient(client *http.Client) *PostCredentialsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the post credentials params -func (o *PostCredentialsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCredentialsRequest adds the credentialsRequest to the post credentials params -func (o *PostCredentialsParams) WithCredentialsRequest(credentialsRequest *auth0_models.CredentialsRequest) *PostCredentialsParams { - o.SetCredentialsRequest(credentialsRequest) - return o -} - -// SetCredentialsRequest adds the credentialsRequest to the post credentials params -func (o *PostCredentialsParams) SetCredentialsRequest(credentialsRequest *auth0_models.CredentialsRequest) { - o.CredentialsRequest = credentialsRequest -} - -// WriteToRequest writes these params to a swagger request -func (o *PostCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if o.CredentialsRequest != nil { - if err := r.SetBodyParam(o.CredentialsRequest); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/auth/post_credentials_responses.go b/api/auth0/auth0_client/auth/post_credentials_responses.go deleted file mode 100644 index 791468a..0000000 --- a/api/auth0/auth0_client/auth/post_credentials_responses.go +++ /dev/null @@ -1,477 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// PostCredentialsReader is a Reader for the PostCredentials structure. -type PostCredentialsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PostCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPostCredentialsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewPostCredentialsUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewPostCredentialsForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewPostCredentialsNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewPostCredentialsUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewPostCredentialsInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewPostCredentialsOK creates a PostCredentialsOK with default headers values -func NewPostCredentialsOK() *PostCredentialsOK { - return &PostCredentialsOK{} -} - -/* -PostCredentialsOK describes a response with status code 200, with default header values. - -Credentials response from Auth0 -*/ -type PostCredentialsOK struct { - Payload *auth0_models.CredentialsResponse -} - -// IsSuccess returns true when this post credentials o k response has a 2xx status code -func (o *PostCredentialsOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this post credentials o k response has a 3xx status code -func (o *PostCredentialsOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post credentials o k response has a 4xx status code -func (o *PostCredentialsOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this post credentials o k response has a 5xx status code -func (o *PostCredentialsOK) IsServerError() bool { - return false -} - -// IsCode returns true when this post credentials o k response a status code equal to that given -func (o *PostCredentialsOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the post credentials o k response -func (o *PostCredentialsOK) Code() int { - return 200 -} - -func (o *PostCredentialsOK) Error() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsOK %+v", 200, o.Payload) -} - -func (o *PostCredentialsOK) String() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsOK %+v", 200, o.Payload) -} - -func (o *PostCredentialsOK) GetPayload() *auth0_models.CredentialsResponse { - return o.Payload -} - -func (o *PostCredentialsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.CredentialsResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostCredentialsUnauthorized creates a PostCredentialsUnauthorized with default headers values -func NewPostCredentialsUnauthorized() *PostCredentialsUnauthorized { - return &PostCredentialsUnauthorized{} -} - -/* -PostCredentialsUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type PostCredentialsUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post credentials unauthorized response has a 2xx status code -func (o *PostCredentialsUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post credentials unauthorized response has a 3xx status code -func (o *PostCredentialsUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post credentials unauthorized response has a 4xx status code -func (o *PostCredentialsUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this post credentials unauthorized response has a 5xx status code -func (o *PostCredentialsUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this post credentials unauthorized response a status code equal to that given -func (o *PostCredentialsUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the post credentials unauthorized response -func (o *PostCredentialsUnauthorized) Code() int { - return 401 -} - -func (o *PostCredentialsUnauthorized) Error() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnauthorized %+v", 401, o.Payload) -} - -func (o *PostCredentialsUnauthorized) String() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnauthorized %+v", 401, o.Payload) -} - -func (o *PostCredentialsUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostCredentialsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostCredentialsForbidden creates a PostCredentialsForbidden with default headers values -func NewPostCredentialsForbidden() *PostCredentialsForbidden { - return &PostCredentialsForbidden{} -} - -/* -PostCredentialsForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type PostCredentialsForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post credentials forbidden response has a 2xx status code -func (o *PostCredentialsForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post credentials forbidden response has a 3xx status code -func (o *PostCredentialsForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post credentials forbidden response has a 4xx status code -func (o *PostCredentialsForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this post credentials forbidden response has a 5xx status code -func (o *PostCredentialsForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this post credentials forbidden response a status code equal to that given -func (o *PostCredentialsForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the post credentials forbidden response -func (o *PostCredentialsForbidden) Code() int { - return 403 -} - -func (o *PostCredentialsForbidden) Error() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsForbidden %+v", 403, o.Payload) -} - -func (o *PostCredentialsForbidden) String() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsForbidden %+v", 403, o.Payload) -} - -func (o *PostCredentialsForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostCredentialsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostCredentialsNotFound creates a PostCredentialsNotFound with default headers values -func NewPostCredentialsNotFound() *PostCredentialsNotFound { - return &PostCredentialsNotFound{} -} - -/* -PostCredentialsNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type PostCredentialsNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post credentials not found response has a 2xx status code -func (o *PostCredentialsNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post credentials not found response has a 3xx status code -func (o *PostCredentialsNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post credentials not found response has a 4xx status code -func (o *PostCredentialsNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this post credentials not found response has a 5xx status code -func (o *PostCredentialsNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this post credentials not found response a status code equal to that given -func (o *PostCredentialsNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the post credentials not found response -func (o *PostCredentialsNotFound) Code() int { - return 404 -} - -func (o *PostCredentialsNotFound) Error() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsNotFound %+v", 404, o.Payload) -} - -func (o *PostCredentialsNotFound) String() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsNotFound %+v", 404, o.Payload) -} - -func (o *PostCredentialsNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostCredentialsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostCredentialsUnprocessableEntity creates a PostCredentialsUnprocessableEntity with default headers values -func NewPostCredentialsUnprocessableEntity() *PostCredentialsUnprocessableEntity { - return &PostCredentialsUnprocessableEntity{} -} - -/* -PostCredentialsUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type PostCredentialsUnprocessableEntity struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post credentials unprocessable entity response has a 2xx status code -func (o *PostCredentialsUnprocessableEntity) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post credentials unprocessable entity response has a 3xx status code -func (o *PostCredentialsUnprocessableEntity) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post credentials unprocessable entity response has a 4xx status code -func (o *PostCredentialsUnprocessableEntity) IsClientError() bool { - return true -} - -// IsServerError returns true when this post credentials unprocessable entity response has a 5xx status code -func (o *PostCredentialsUnprocessableEntity) IsServerError() bool { - return false -} - -// IsCode returns true when this post credentials unprocessable entity response a status code equal to that given -func (o *PostCredentialsUnprocessableEntity) IsCode(code int) bool { - return code == 422 -} - -// Code gets the status code for the post credentials unprocessable entity response -func (o *PostCredentialsUnprocessableEntity) Code() int { - return 422 -} - -func (o *PostCredentialsUnprocessableEntity) Error() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *PostCredentialsUnprocessableEntity) String() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *PostCredentialsUnprocessableEntity) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostCredentialsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostCredentialsInternalServerError creates a PostCredentialsInternalServerError with default headers values -func NewPostCredentialsInternalServerError() *PostCredentialsInternalServerError { - return &PostCredentialsInternalServerError{} -} - -/* -PostCredentialsInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type PostCredentialsInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post credentials internal server error response has a 2xx status code -func (o *PostCredentialsInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post credentials internal server error response has a 3xx status code -func (o *PostCredentialsInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post credentials internal server error response has a 4xx status code -func (o *PostCredentialsInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this post credentials internal server error response has a 5xx status code -func (o *PostCredentialsInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this post credentials internal server error response a status code equal to that given -func (o *PostCredentialsInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the post credentials internal server error response -func (o *PostCredentialsInternalServerError) Code() int { - return 500 -} - -func (o *PostCredentialsInternalServerError) Error() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsInternalServerError %+v", 500, o.Payload) -} - -func (o *PostCredentialsInternalServerError) String() string { - return fmt.Sprintf("[POST /oauth/token][%d] postCredentialsInternalServerError %+v", 500, o.Payload) -} - -func (o *PostCredentialsInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostCredentialsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/role/get_roles_parameters.go b/api/auth0/auth0_client/role/get_roles_parameters.go deleted file mode 100644 index e0722bb..0000000 --- a/api/auth0/auth0_client/role/get_roles_parameters.go +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package role - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetRolesParams creates a new GetRolesParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewGetRolesParams() *GetRolesParams { - return &GetRolesParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetRolesParamsWithTimeout creates a new GetRolesParams object -// with the ability to set a timeout on a request. -func NewGetRolesParamsWithTimeout(timeout time.Duration) *GetRolesParams { - return &GetRolesParams{ - timeout: timeout, - } -} - -// NewGetRolesParamsWithContext creates a new GetRolesParams object -// with the ability to set a context for a request. -func NewGetRolesParamsWithContext(ctx context.Context) *GetRolesParams { - return &GetRolesParams{ - Context: ctx, - } -} - -// NewGetRolesParamsWithHTTPClient creates a new GetRolesParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams { - return &GetRolesParams{ - HTTPClient: client, - } -} - -/* -GetRolesParams contains all the parameters to send to the API endpoint - - for the get roles operation. - - Typically these are written to a http.Request. -*/ -type GetRolesParams struct { - - // Authorization. - Authorization string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get roles params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetRolesParams) WithDefaults() *GetRolesParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get roles params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetRolesParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get roles params -func (o *GetRolesParams) WithTimeout(timeout time.Duration) *GetRolesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get roles params -func (o *GetRolesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get roles params -func (o *GetRolesParams) WithContext(ctx context.Context) *GetRolesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get roles params -func (o *GetRolesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get roles params -func (o *GetRolesParams) WithHTTPClient(client *http.Client) *GetRolesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get roles params -func (o *GetRolesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the get roles params -func (o *GetRolesParams) WithAuthorization(authorization string) *GetRolesParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the get roles params -func (o *GetRolesParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WriteToRequest writes these params to a swagger request -func (o *GetRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/role/get_roles_responses.go b/api/auth0/auth0_client/role/get_roles_responses.go deleted file mode 100644 index e1be7c7..0000000 --- a/api/auth0/auth0_client/role/get_roles_responses.go +++ /dev/null @@ -1,475 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package role - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// GetRolesReader is a Reader for the GetRoles structure. -type GetRolesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetRolesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetRolesUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetRolesForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetRolesNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewGetRolesUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetRolesInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetRolesOK creates a GetRolesOK with default headers values -func NewGetRolesOK() *GetRolesOK { - return &GetRolesOK{} -} - -/* -GetRolesOK describes a response with status code 200, with default header values. - -Taxnexus Response with User objects -*/ -type GetRolesOK struct { - Payload []*auth0_models.User -} - -// IsSuccess returns true when this get roles o k response has a 2xx status code -func (o *GetRolesOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get roles o k response has a 3xx status code -func (o *GetRolesOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get roles o k response has a 4xx status code -func (o *GetRolesOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get roles o k response has a 5xx status code -func (o *GetRolesOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get roles o k response a status code equal to that given -func (o *GetRolesOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get roles o k response -func (o *GetRolesOK) Code() int { - return 200 -} - -func (o *GetRolesOK) Error() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesOK %+v", 200, o.Payload) -} - -func (o *GetRolesOK) String() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesOK %+v", 200, o.Payload) -} - -func (o *GetRolesOK) GetPayload() []*auth0_models.User { - return o.Payload -} - -func (o *GetRolesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRolesUnauthorized creates a GetRolesUnauthorized with default headers values -func NewGetRolesUnauthorized() *GetRolesUnauthorized { - return &GetRolesUnauthorized{} -} - -/* -GetRolesUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetRolesUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get roles unauthorized response has a 2xx status code -func (o *GetRolesUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get roles unauthorized response has a 3xx status code -func (o *GetRolesUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get roles unauthorized response has a 4xx status code -func (o *GetRolesUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this get roles unauthorized response has a 5xx status code -func (o *GetRolesUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this get roles unauthorized response a status code equal to that given -func (o *GetRolesUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the get roles unauthorized response -func (o *GetRolesUnauthorized) Code() int { - return 401 -} - -func (o *GetRolesUnauthorized) Error() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnauthorized %+v", 401, o.Payload) -} - -func (o *GetRolesUnauthorized) String() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnauthorized %+v", 401, o.Payload) -} - -func (o *GetRolesUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetRolesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRolesForbidden creates a GetRolesForbidden with default headers values -func NewGetRolesForbidden() *GetRolesForbidden { - return &GetRolesForbidden{} -} - -/* -GetRolesForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetRolesForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get roles forbidden response has a 2xx status code -func (o *GetRolesForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get roles forbidden response has a 3xx status code -func (o *GetRolesForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get roles forbidden response has a 4xx status code -func (o *GetRolesForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this get roles forbidden response has a 5xx status code -func (o *GetRolesForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this get roles forbidden response a status code equal to that given -func (o *GetRolesForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the get roles forbidden response -func (o *GetRolesForbidden) Code() int { - return 403 -} - -func (o *GetRolesForbidden) Error() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesForbidden %+v", 403, o.Payload) -} - -func (o *GetRolesForbidden) String() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesForbidden %+v", 403, o.Payload) -} - -func (o *GetRolesForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetRolesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRolesNotFound creates a GetRolesNotFound with default headers values -func NewGetRolesNotFound() *GetRolesNotFound { - return &GetRolesNotFound{} -} - -/* -GetRolesNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetRolesNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get roles not found response has a 2xx status code -func (o *GetRolesNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get roles not found response has a 3xx status code -func (o *GetRolesNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get roles not found response has a 4xx status code -func (o *GetRolesNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this get roles not found response has a 5xx status code -func (o *GetRolesNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this get roles not found response a status code equal to that given -func (o *GetRolesNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the get roles not found response -func (o *GetRolesNotFound) Code() int { - return 404 -} - -func (o *GetRolesNotFound) Error() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesNotFound %+v", 404, o.Payload) -} - -func (o *GetRolesNotFound) String() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesNotFound %+v", 404, o.Payload) -} - -func (o *GetRolesNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetRolesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRolesUnprocessableEntity creates a GetRolesUnprocessableEntity with default headers values -func NewGetRolesUnprocessableEntity() *GetRolesUnprocessableEntity { - return &GetRolesUnprocessableEntity{} -} - -/* -GetRolesUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type GetRolesUnprocessableEntity struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get roles unprocessable entity response has a 2xx status code -func (o *GetRolesUnprocessableEntity) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get roles unprocessable entity response has a 3xx status code -func (o *GetRolesUnprocessableEntity) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get roles unprocessable entity response has a 4xx status code -func (o *GetRolesUnprocessableEntity) IsClientError() bool { - return true -} - -// IsServerError returns true when this get roles unprocessable entity response has a 5xx status code -func (o *GetRolesUnprocessableEntity) IsServerError() bool { - return false -} - -// IsCode returns true when this get roles unprocessable entity response a status code equal to that given -func (o *GetRolesUnprocessableEntity) IsCode(code int) bool { - return code == 422 -} - -// Code gets the status code for the get roles unprocessable entity response -func (o *GetRolesUnprocessableEntity) Code() int { - return 422 -} - -func (o *GetRolesUnprocessableEntity) Error() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *GetRolesUnprocessableEntity) String() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *GetRolesUnprocessableEntity) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetRolesUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetRolesInternalServerError creates a GetRolesInternalServerError with default headers values -func NewGetRolesInternalServerError() *GetRolesInternalServerError { - return &GetRolesInternalServerError{} -} - -/* -GetRolesInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetRolesInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get roles internal server error response has a 2xx status code -func (o *GetRolesInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get roles internal server error response has a 3xx status code -func (o *GetRolesInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get roles internal server error response has a 4xx status code -func (o *GetRolesInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this get roles internal server error response has a 5xx status code -func (o *GetRolesInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this get roles internal server error response a status code equal to that given -func (o *GetRolesInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the get roles internal server error response -func (o *GetRolesInternalServerError) Code() int { - return 500 -} - -func (o *GetRolesInternalServerError) Error() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesInternalServerError %+v", 500, o.Payload) -} - -func (o *GetRolesInternalServerError) String() string { - return fmt.Sprintf("[GET /api/v2/roles][%d] getRolesInternalServerError %+v", 500, o.Payload) -} - -func (o *GetRolesInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetRolesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/role/post_role_users_parameters.go b/api/auth0/auth0_client/role/post_role_users_parameters.go deleted file mode 100644 index 9ccbc4e..0000000 --- a/api/auth0/auth0_client/role/post_role_users_parameters.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package role - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// NewPostRoleUsersParams creates a new PostRoleUsersParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewPostRoleUsersParams() *PostRoleUsersParams { - return &PostRoleUsersParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewPostRoleUsersParamsWithTimeout creates a new PostRoleUsersParams object -// with the ability to set a timeout on a request. -func NewPostRoleUsersParamsWithTimeout(timeout time.Duration) *PostRoleUsersParams { - return &PostRoleUsersParams{ - timeout: timeout, - } -} - -// NewPostRoleUsersParamsWithContext creates a new PostRoleUsersParams object -// with the ability to set a context for a request. -func NewPostRoleUsersParamsWithContext(ctx context.Context) *PostRoleUsersParams { - return &PostRoleUsersParams{ - Context: ctx, - } -} - -// NewPostRoleUsersParamsWithHTTPClient creates a new PostRoleUsersParams object -// with the ability to set a custom HTTPClient for a request. -func NewPostRoleUsersParamsWithHTTPClient(client *http.Client) *PostRoleUsersParams { - return &PostRoleUsersParams{ - HTTPClient: client, - } -} - -/* -PostRoleUsersParams contains all the parameters to send to the API endpoint - - for the post role users operation. - - Typically these are written to a http.Request. -*/ -type PostRoleUsersParams struct { - - // Authorization. - Authorization string - - /* RoleUsersRequest. - - An array of User IDs to add to a Role - */ - RoleUsersRequest *auth0_models.RoleUsersRequest - - /* RoleID. - - An Auth0 Role ID - */ - RoleID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the post role users params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostRoleUsersParams) WithDefaults() *PostRoleUsersParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the post role users params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostRoleUsersParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the post role users params -func (o *PostRoleUsersParams) WithTimeout(timeout time.Duration) *PostRoleUsersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the post role users params -func (o *PostRoleUsersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the post role users params -func (o *PostRoleUsersParams) WithContext(ctx context.Context) *PostRoleUsersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the post role users params -func (o *PostRoleUsersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the post role users params -func (o *PostRoleUsersParams) WithHTTPClient(client *http.Client) *PostRoleUsersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the post role users params -func (o *PostRoleUsersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the post role users params -func (o *PostRoleUsersParams) WithAuthorization(authorization string) *PostRoleUsersParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the post role users params -func (o *PostRoleUsersParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WithRoleUsersRequest adds the roleUsersRequest to the post role users params -func (o *PostRoleUsersParams) WithRoleUsersRequest(roleUsersRequest *auth0_models.RoleUsersRequest) *PostRoleUsersParams { - o.SetRoleUsersRequest(roleUsersRequest) - return o -} - -// SetRoleUsersRequest adds the roleUsersRequest to the post role users params -func (o *PostRoleUsersParams) SetRoleUsersRequest(roleUsersRequest *auth0_models.RoleUsersRequest) { - o.RoleUsersRequest = roleUsersRequest -} - -// WithRoleID adds the roleID to the post role users params -func (o *PostRoleUsersParams) WithRoleID(roleID string) *PostRoleUsersParams { - o.SetRoleID(roleID) - return o -} - -// SetRoleID adds the roleId to the post role users params -func (o *PostRoleUsersParams) SetRoleID(roleID string) { - o.RoleID = roleID -} - -// WriteToRequest writes these params to a swagger request -func (o *PostRoleUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - if o.RoleUsersRequest != nil { - if err := r.SetBodyParam(o.RoleUsersRequest); err != nil { - return err - } - } - - // path param roleId - if err := r.SetPathParam("roleId", o.RoleID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/role/post_role_users_responses.go b/api/auth0/auth0_client/role/post_role_users_responses.go deleted file mode 100644 index 44f13d7..0000000 --- a/api/auth0/auth0_client/role/post_role_users_responses.go +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package role - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// PostRoleUsersReader is a Reader for the PostRoleUsers structure. -type PostRoleUsersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PostRoleUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPostRoleUsersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewPostRoleUsersUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewPostRoleUsersForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewPostRoleUsersNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewPostRoleUsersInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewPostRoleUsersOK creates a PostRoleUsersOK with default headers values -func NewPostRoleUsersOK() *PostRoleUsersOK { - return &PostRoleUsersOK{} -} - -/* -PostRoleUsersOK describes a response with status code 200, with default header values. - -Role users successfully updated -*/ -type PostRoleUsersOK struct { -} - -// IsSuccess returns true when this post role users o k response has a 2xx status code -func (o *PostRoleUsersOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this post role users o k response has a 3xx status code -func (o *PostRoleUsersOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post role users o k response has a 4xx status code -func (o *PostRoleUsersOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this post role users o k response has a 5xx status code -func (o *PostRoleUsersOK) IsServerError() bool { - return false -} - -// IsCode returns true when this post role users o k response a status code equal to that given -func (o *PostRoleUsersOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the post role users o k response -func (o *PostRoleUsersOK) Code() int { - return 200 -} - -func (o *PostRoleUsersOK) Error() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersOK ", 200) -} - -func (o *PostRoleUsersOK) String() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersOK ", 200) -} - -func (o *PostRoleUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPostRoleUsersUnauthorized creates a PostRoleUsersUnauthorized with default headers values -func NewPostRoleUsersUnauthorized() *PostRoleUsersUnauthorized { - return &PostRoleUsersUnauthorized{} -} - -/* -PostRoleUsersUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type PostRoleUsersUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post role users unauthorized response has a 2xx status code -func (o *PostRoleUsersUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post role users unauthorized response has a 3xx status code -func (o *PostRoleUsersUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post role users unauthorized response has a 4xx status code -func (o *PostRoleUsersUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this post role users unauthorized response has a 5xx status code -func (o *PostRoleUsersUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this post role users unauthorized response a status code equal to that given -func (o *PostRoleUsersUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the post role users unauthorized response -func (o *PostRoleUsersUnauthorized) Code() int { - return 401 -} - -func (o *PostRoleUsersUnauthorized) Error() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersUnauthorized %+v", 401, o.Payload) -} - -func (o *PostRoleUsersUnauthorized) String() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersUnauthorized %+v", 401, o.Payload) -} - -func (o *PostRoleUsersUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostRoleUsersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostRoleUsersForbidden creates a PostRoleUsersForbidden with default headers values -func NewPostRoleUsersForbidden() *PostRoleUsersForbidden { - return &PostRoleUsersForbidden{} -} - -/* -PostRoleUsersForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type PostRoleUsersForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post role users forbidden response has a 2xx status code -func (o *PostRoleUsersForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post role users forbidden response has a 3xx status code -func (o *PostRoleUsersForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post role users forbidden response has a 4xx status code -func (o *PostRoleUsersForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this post role users forbidden response has a 5xx status code -func (o *PostRoleUsersForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this post role users forbidden response a status code equal to that given -func (o *PostRoleUsersForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the post role users forbidden response -func (o *PostRoleUsersForbidden) Code() int { - return 403 -} - -func (o *PostRoleUsersForbidden) Error() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersForbidden %+v", 403, o.Payload) -} - -func (o *PostRoleUsersForbidden) String() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersForbidden %+v", 403, o.Payload) -} - -func (o *PostRoleUsersForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostRoleUsersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostRoleUsersNotFound creates a PostRoleUsersNotFound with default headers values -func NewPostRoleUsersNotFound() *PostRoleUsersNotFound { - return &PostRoleUsersNotFound{} -} - -/* -PostRoleUsersNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type PostRoleUsersNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post role users not found response has a 2xx status code -func (o *PostRoleUsersNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post role users not found response has a 3xx status code -func (o *PostRoleUsersNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post role users not found response has a 4xx status code -func (o *PostRoleUsersNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this post role users not found response has a 5xx status code -func (o *PostRoleUsersNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this post role users not found response a status code equal to that given -func (o *PostRoleUsersNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the post role users not found response -func (o *PostRoleUsersNotFound) Code() int { - return 404 -} - -func (o *PostRoleUsersNotFound) Error() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersNotFound %+v", 404, o.Payload) -} - -func (o *PostRoleUsersNotFound) String() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersNotFound %+v", 404, o.Payload) -} - -func (o *PostRoleUsersNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostRoleUsersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostRoleUsersInternalServerError creates a PostRoleUsersInternalServerError with default headers values -func NewPostRoleUsersInternalServerError() *PostRoleUsersInternalServerError { - return &PostRoleUsersInternalServerError{} -} - -/* -PostRoleUsersInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type PostRoleUsersInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post role users internal server error response has a 2xx status code -func (o *PostRoleUsersInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post role users internal server error response has a 3xx status code -func (o *PostRoleUsersInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post role users internal server error response has a 4xx status code -func (o *PostRoleUsersInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this post role users internal server error response has a 5xx status code -func (o *PostRoleUsersInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this post role users internal server error response a status code equal to that given -func (o *PostRoleUsersInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the post role users internal server error response -func (o *PostRoleUsersInternalServerError) Code() int { - return 500 -} - -func (o *PostRoleUsersInternalServerError) Error() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersInternalServerError %+v", 500, o.Payload) -} - -func (o *PostRoleUsersInternalServerError) String() string { - return fmt.Sprintf("[POST /api/v2/roles/{roleId}/users][%d] postRoleUsersInternalServerError %+v", 500, o.Payload) -} - -func (o *PostRoleUsersInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostRoleUsersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/role/role_client.go b/api/auth0/auth0_client/role/role_client.go deleted file mode 100644 index 3a14b1a..0000000 --- a/api/auth0/auth0_client/role/role_client.go +++ /dev/null @@ -1,127 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package role - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new role API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for role API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientOption is the option for Client methods -type ClientOption func(*runtime.ClientOperation) - -// ClientService is the interface for Client methods -type ClientService interface { - GetRoles(params *GetRolesParams, opts ...ClientOption) (*GetRolesOK, error) - - PostRoleUsers(params *PostRoleUsersParams, opts ...ClientOption) (*PostRoleUsersOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -GetRoles gets roles from auth0 - -Get Roles from Auth0 -*/ -func (a *Client) GetRoles(params *GetRolesParams, opts ...ClientOption) (*GetRolesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetRolesParams() - } - op := &runtime.ClientOperation{ - ID: "getRoles", - Method: "GET", - PathPattern: "/api/v2/roles", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &GetRolesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetRolesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getRoles: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -PostRoleUsers adds users to role - -Add users to role -*/ -func (a *Client) PostRoleUsers(params *PostRoleUsersParams, opts ...ClientOption) (*PostRoleUsersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostRoleUsersParams() - } - op := &runtime.ClientOperation{ - ID: "postRoleUsers", - Method: "POST", - PathPattern: "/api/v2/roles/{roleId}/users", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &PostRoleUsersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*PostRoleUsersOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for postRoleUsers: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go b/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go deleted file mode 100644 index de9a6ce..0000000 --- a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_parameters.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// NewDeleteAPIV2UsersUserIDRolesParams creates a new DeleteAPIV2UsersUserIDRolesParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewDeleteAPIV2UsersUserIDRolesParams() *DeleteAPIV2UsersUserIDRolesParams { - return &DeleteAPIV2UsersUserIDRolesParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewDeleteAPIV2UsersUserIDRolesParamsWithTimeout creates a new DeleteAPIV2UsersUserIDRolesParams object -// with the ability to set a timeout on a request. -func NewDeleteAPIV2UsersUserIDRolesParamsWithTimeout(timeout time.Duration) *DeleteAPIV2UsersUserIDRolesParams { - return &DeleteAPIV2UsersUserIDRolesParams{ - timeout: timeout, - } -} - -// NewDeleteAPIV2UsersUserIDRolesParamsWithContext creates a new DeleteAPIV2UsersUserIDRolesParams object -// with the ability to set a context for a request. -func NewDeleteAPIV2UsersUserIDRolesParamsWithContext(ctx context.Context) *DeleteAPIV2UsersUserIDRolesParams { - return &DeleteAPIV2UsersUserIDRolesParams{ - Context: ctx, - } -} - -// NewDeleteAPIV2UsersUserIDRolesParamsWithHTTPClient creates a new DeleteAPIV2UsersUserIDRolesParams object -// with the ability to set a custom HTTPClient for a request. -func NewDeleteAPIV2UsersUserIDRolesParamsWithHTTPClient(client *http.Client) *DeleteAPIV2UsersUserIDRolesParams { - return &DeleteAPIV2UsersUserIDRolesParams{ - HTTPClient: client, - } -} - -/* -DeleteAPIV2UsersUserIDRolesParams contains all the parameters to send to the API endpoint - - for the delete API v2 users user ID roles operation. - - Typically these are written to a http.Request. -*/ -type DeleteAPIV2UsersUserIDRolesParams struct { - - // Authorization. - Authorization string - - /* UserRolesRequest. - - An array of User IDs to add to a Role - */ - UserRolesRequest *auth0_models.UserRolesRequest - - /* UserID. - - An Auth0 User ID - */ - UserID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the delete API v2 users user ID roles params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *DeleteAPIV2UsersUserIDRolesParams) WithDefaults() *DeleteAPIV2UsersUserIDRolesParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the delete API v2 users user ID roles params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *DeleteAPIV2UsersUserIDRolesParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) WithTimeout(timeout time.Duration) *DeleteAPIV2UsersUserIDRolesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) WithContext(ctx context.Context) *DeleteAPIV2UsersUserIDRolesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) WithHTTPClient(client *http.Client) *DeleteAPIV2UsersUserIDRolesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) WithAuthorization(authorization string) *DeleteAPIV2UsersUserIDRolesParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WithUserRolesRequest adds the userRolesRequest to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) WithUserRolesRequest(userRolesRequest *auth0_models.UserRolesRequest) *DeleteAPIV2UsersUserIDRolesParams { - o.SetUserRolesRequest(userRolesRequest) - return o -} - -// SetUserRolesRequest adds the userRolesRequest to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) SetUserRolesRequest(userRolesRequest *auth0_models.UserRolesRequest) { - o.UserRolesRequest = userRolesRequest -} - -// WithUserID adds the userID to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) WithUserID(userID string) *DeleteAPIV2UsersUserIDRolesParams { - o.SetUserID(userID) - return o -} - -// SetUserID adds the userId to the delete API v2 users user ID roles params -func (o *DeleteAPIV2UsersUserIDRolesParams) SetUserID(userID string) { - o.UserID = userID -} - -// WriteToRequest writes these params to a swagger request -func (o *DeleteAPIV2UsersUserIDRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - if o.UserRolesRequest != nil { - if err := r.SetBodyParam(o.UserRolesRequest); err != nil { - return err - } - } - - // path param userId - if err := r.SetPathParam("userId", o.UserID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go b/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go deleted file mode 100644 index 8bd32f5..0000000 --- a/api/auth0/auth0_client/user/delete_api_v2_users_user_id_roles_responses.go +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// DeleteAPIV2UsersUserIDRolesReader is a Reader for the DeleteAPIV2UsersUserIDRoles structure. -type DeleteAPIV2UsersUserIDRolesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *DeleteAPIV2UsersUserIDRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 204: - result := NewDeleteAPIV2UsersUserIDRolesNoContent() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewDeleteAPIV2UsersUserIDRolesUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewDeleteAPIV2UsersUserIDRolesForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewDeleteAPIV2UsersUserIDRolesNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewDeleteAPIV2UsersUserIDRolesInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewDeleteAPIV2UsersUserIDRolesNoContent creates a DeleteAPIV2UsersUserIDRolesNoContent with default headers values -func NewDeleteAPIV2UsersUserIDRolesNoContent() *DeleteAPIV2UsersUserIDRolesNoContent { - return &DeleteAPIV2UsersUserIDRolesNoContent{} -} - -/* -DeleteAPIV2UsersUserIDRolesNoContent describes a response with status code 204, with default header values. - -User roles successfully removed -*/ -type DeleteAPIV2UsersUserIDRolesNoContent struct { -} - -// IsSuccess returns true when this delete Api v2 users user Id roles no content response has a 2xx status code -func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this delete Api v2 users user Id roles no content response has a 3xx status code -func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsRedirect() bool { - return false -} - -// IsClientError returns true when this delete Api v2 users user Id roles no content response has a 4xx status code -func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsClientError() bool { - return false -} - -// IsServerError returns true when this delete Api v2 users user Id roles no content response has a 5xx status code -func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsServerError() bool { - return false -} - -// IsCode returns true when this delete Api v2 users user Id roles no content response a status code equal to that given -func (o *DeleteAPIV2UsersUserIDRolesNoContent) IsCode(code int) bool { - return code == 204 -} - -// Code gets the status code for the delete Api v2 users user Id roles no content response -func (o *DeleteAPIV2UsersUserIDRolesNoContent) Code() int { - return 204 -} - -func (o *DeleteAPIV2UsersUserIDRolesNoContent) Error() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNoContent ", 204) -} - -func (o *DeleteAPIV2UsersUserIDRolesNoContent) String() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNoContent ", 204) -} - -func (o *DeleteAPIV2UsersUserIDRolesNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewDeleteAPIV2UsersUserIDRolesUnauthorized creates a DeleteAPIV2UsersUserIDRolesUnauthorized with default headers values -func NewDeleteAPIV2UsersUserIDRolesUnauthorized() *DeleteAPIV2UsersUserIDRolesUnauthorized { - return &DeleteAPIV2UsersUserIDRolesUnauthorized{} -} - -/* -DeleteAPIV2UsersUserIDRolesUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type DeleteAPIV2UsersUserIDRolesUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this delete Api v2 users user Id roles unauthorized response has a 2xx status code -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this delete Api v2 users user Id roles unauthorized response has a 3xx status code -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this delete Api v2 users user Id roles unauthorized response has a 4xx status code -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this delete Api v2 users user Id roles unauthorized response has a 5xx status code -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this delete Api v2 users user Id roles unauthorized response a status code equal to that given -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the delete Api v2 users user Id roles unauthorized response -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) Code() int { - return 401 -} - -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) Error() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesUnauthorized %+v", 401, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) String() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesUnauthorized %+v", 401, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *DeleteAPIV2UsersUserIDRolesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewDeleteAPIV2UsersUserIDRolesForbidden creates a DeleteAPIV2UsersUserIDRolesForbidden with default headers values -func NewDeleteAPIV2UsersUserIDRolesForbidden() *DeleteAPIV2UsersUserIDRolesForbidden { - return &DeleteAPIV2UsersUserIDRolesForbidden{} -} - -/* -DeleteAPIV2UsersUserIDRolesForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type DeleteAPIV2UsersUserIDRolesForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this delete Api v2 users user Id roles forbidden response has a 2xx status code -func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this delete Api v2 users user Id roles forbidden response has a 3xx status code -func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this delete Api v2 users user Id roles forbidden response has a 4xx status code -func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this delete Api v2 users user Id roles forbidden response has a 5xx status code -func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this delete Api v2 users user Id roles forbidden response a status code equal to that given -func (o *DeleteAPIV2UsersUserIDRolesForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the delete Api v2 users user Id roles forbidden response -func (o *DeleteAPIV2UsersUserIDRolesForbidden) Code() int { - return 403 -} - -func (o *DeleteAPIV2UsersUserIDRolesForbidden) Error() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesForbidden %+v", 403, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesForbidden) String() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesForbidden %+v", 403, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *DeleteAPIV2UsersUserIDRolesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewDeleteAPIV2UsersUserIDRolesNotFound creates a DeleteAPIV2UsersUserIDRolesNotFound with default headers values -func NewDeleteAPIV2UsersUserIDRolesNotFound() *DeleteAPIV2UsersUserIDRolesNotFound { - return &DeleteAPIV2UsersUserIDRolesNotFound{} -} - -/* -DeleteAPIV2UsersUserIDRolesNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type DeleteAPIV2UsersUserIDRolesNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this delete Api v2 users user Id roles not found response has a 2xx status code -func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this delete Api v2 users user Id roles not found response has a 3xx status code -func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this delete Api v2 users user Id roles not found response has a 4xx status code -func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this delete Api v2 users user Id roles not found response has a 5xx status code -func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this delete Api v2 users user Id roles not found response a status code equal to that given -func (o *DeleteAPIV2UsersUserIDRolesNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the delete Api v2 users user Id roles not found response -func (o *DeleteAPIV2UsersUserIDRolesNotFound) Code() int { - return 404 -} - -func (o *DeleteAPIV2UsersUserIDRolesNotFound) Error() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNotFound %+v", 404, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesNotFound) String() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesNotFound %+v", 404, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *DeleteAPIV2UsersUserIDRolesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewDeleteAPIV2UsersUserIDRolesInternalServerError creates a DeleteAPIV2UsersUserIDRolesInternalServerError with default headers values -func NewDeleteAPIV2UsersUserIDRolesInternalServerError() *DeleteAPIV2UsersUserIDRolesInternalServerError { - return &DeleteAPIV2UsersUserIDRolesInternalServerError{} -} - -/* -DeleteAPIV2UsersUserIDRolesInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type DeleteAPIV2UsersUserIDRolesInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this delete Api v2 users user Id roles internal server error response has a 2xx status code -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this delete Api v2 users user Id roles internal server error response has a 3xx status code -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this delete Api v2 users user Id roles internal server error response has a 4xx status code -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this delete Api v2 users user Id roles internal server error response has a 5xx status code -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this delete Api v2 users user Id roles internal server error response a status code equal to that given -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the delete Api v2 users user Id roles internal server error response -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) Code() int { - return 500 -} - -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) Error() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesInternalServerError %+v", 500, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) String() string { - return fmt.Sprintf("[DELETE /api/v2/users/{userId}/roles][%d] deleteApiV2UsersUserIdRolesInternalServerError %+v", 500, o.Payload) -} - -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *DeleteAPIV2UsersUserIDRolesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/user/get_user_by_email_parameters.go b/api/auth0/auth0_client/user/get_user_by_email_parameters.go deleted file mode 100644 index 64c666b..0000000 --- a/api/auth0/auth0_client/user/get_user_by_email_parameters.go +++ /dev/null @@ -1,176 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetUserByEmailParams creates a new GetUserByEmailParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewGetUserByEmailParams() *GetUserByEmailParams { - return &GetUserByEmailParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetUserByEmailParamsWithTimeout creates a new GetUserByEmailParams object -// with the ability to set a timeout on a request. -func NewGetUserByEmailParamsWithTimeout(timeout time.Duration) *GetUserByEmailParams { - return &GetUserByEmailParams{ - timeout: timeout, - } -} - -// NewGetUserByEmailParamsWithContext creates a new GetUserByEmailParams object -// with the ability to set a context for a request. -func NewGetUserByEmailParamsWithContext(ctx context.Context) *GetUserByEmailParams { - return &GetUserByEmailParams{ - Context: ctx, - } -} - -// NewGetUserByEmailParamsWithHTTPClient creates a new GetUserByEmailParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetUserByEmailParamsWithHTTPClient(client *http.Client) *GetUserByEmailParams { - return &GetUserByEmailParams{ - HTTPClient: client, - } -} - -/* -GetUserByEmailParams contains all the parameters to send to the API endpoint - - for the get user by email operation. - - Typically these are written to a http.Request. -*/ -type GetUserByEmailParams struct { - - // Authorization. - Authorization string - - // Email. - Email string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get user by email params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUserByEmailParams) WithDefaults() *GetUserByEmailParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get user by email params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUserByEmailParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get user by email params -func (o *GetUserByEmailParams) WithTimeout(timeout time.Duration) *GetUserByEmailParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get user by email params -func (o *GetUserByEmailParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get user by email params -func (o *GetUserByEmailParams) WithContext(ctx context.Context) *GetUserByEmailParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get user by email params -func (o *GetUserByEmailParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get user by email params -func (o *GetUserByEmailParams) WithHTTPClient(client *http.Client) *GetUserByEmailParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get user by email params -func (o *GetUserByEmailParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the get user by email params -func (o *GetUserByEmailParams) WithAuthorization(authorization string) *GetUserByEmailParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the get user by email params -func (o *GetUserByEmailParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WithEmail adds the email to the get user by email params -func (o *GetUserByEmailParams) WithEmail(email string) *GetUserByEmailParams { - o.SetEmail(email) - return o -} - -// SetEmail adds the email to the get user by email params -func (o *GetUserByEmailParams) SetEmail(email string) { - o.Email = email -} - -// WriteToRequest writes these params to a swagger request -func (o *GetUserByEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - - // query param email - qrEmail := o.Email - qEmail := qrEmail - if qEmail != "" { - - if err := r.SetQueryParam("email", qEmail); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/user/get_user_by_email_responses.go b/api/auth0/auth0_client/user/get_user_by_email_responses.go deleted file mode 100644 index 07e781c..0000000 --- a/api/auth0/auth0_client/user/get_user_by_email_responses.go +++ /dev/null @@ -1,401 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// GetUserByEmailReader is a Reader for the GetUserByEmail structure. -type GetUserByEmailReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetUserByEmailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetUserByEmailOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetUserByEmailUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetUserByEmailForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetUserByEmailNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetUserByEmailInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetUserByEmailOK creates a GetUserByEmailOK with default headers values -func NewGetUserByEmailOK() *GetUserByEmailOK { - return &GetUserByEmailOK{} -} - -/* -GetUserByEmailOK describes a response with status code 200, with default header values. - -Taxnexus Response with User objects -*/ -type GetUserByEmailOK struct { - Payload []*auth0_models.User -} - -// IsSuccess returns true when this get user by email o k response has a 2xx status code -func (o *GetUserByEmailOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get user by email o k response has a 3xx status code -func (o *GetUserByEmailOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user by email o k response has a 4xx status code -func (o *GetUserByEmailOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get user by email o k response has a 5xx status code -func (o *GetUserByEmailOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get user by email o k response a status code equal to that given -func (o *GetUserByEmailOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get user by email o k response -func (o *GetUserByEmailOK) Code() int { - return 200 -} - -func (o *GetUserByEmailOK) Error() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailOK %+v", 200, o.Payload) -} - -func (o *GetUserByEmailOK) String() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailOK %+v", 200, o.Payload) -} - -func (o *GetUserByEmailOK) GetPayload() []*auth0_models.User { - return o.Payload -} - -func (o *GetUserByEmailOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserByEmailUnauthorized creates a GetUserByEmailUnauthorized with default headers values -func NewGetUserByEmailUnauthorized() *GetUserByEmailUnauthorized { - return &GetUserByEmailUnauthorized{} -} - -/* -GetUserByEmailUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetUserByEmailUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user by email unauthorized response has a 2xx status code -func (o *GetUserByEmailUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user by email unauthorized response has a 3xx status code -func (o *GetUserByEmailUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user by email unauthorized response has a 4xx status code -func (o *GetUserByEmailUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this get user by email unauthorized response has a 5xx status code -func (o *GetUserByEmailUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this get user by email unauthorized response a status code equal to that given -func (o *GetUserByEmailUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the get user by email unauthorized response -func (o *GetUserByEmailUnauthorized) Code() int { - return 401 -} - -func (o *GetUserByEmailUnauthorized) Error() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailUnauthorized %+v", 401, o.Payload) -} - -func (o *GetUserByEmailUnauthorized) String() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailUnauthorized %+v", 401, o.Payload) -} - -func (o *GetUserByEmailUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserByEmailUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserByEmailForbidden creates a GetUserByEmailForbidden with default headers values -func NewGetUserByEmailForbidden() *GetUserByEmailForbidden { - return &GetUserByEmailForbidden{} -} - -/* -GetUserByEmailForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetUserByEmailForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user by email forbidden response has a 2xx status code -func (o *GetUserByEmailForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user by email forbidden response has a 3xx status code -func (o *GetUserByEmailForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user by email forbidden response has a 4xx status code -func (o *GetUserByEmailForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this get user by email forbidden response has a 5xx status code -func (o *GetUserByEmailForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this get user by email forbidden response a status code equal to that given -func (o *GetUserByEmailForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the get user by email forbidden response -func (o *GetUserByEmailForbidden) Code() int { - return 403 -} - -func (o *GetUserByEmailForbidden) Error() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailForbidden %+v", 403, o.Payload) -} - -func (o *GetUserByEmailForbidden) String() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailForbidden %+v", 403, o.Payload) -} - -func (o *GetUserByEmailForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserByEmailForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserByEmailNotFound creates a GetUserByEmailNotFound with default headers values -func NewGetUserByEmailNotFound() *GetUserByEmailNotFound { - return &GetUserByEmailNotFound{} -} - -/* -GetUserByEmailNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetUserByEmailNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user by email not found response has a 2xx status code -func (o *GetUserByEmailNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user by email not found response has a 3xx status code -func (o *GetUserByEmailNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user by email not found response has a 4xx status code -func (o *GetUserByEmailNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this get user by email not found response has a 5xx status code -func (o *GetUserByEmailNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this get user by email not found response a status code equal to that given -func (o *GetUserByEmailNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the get user by email not found response -func (o *GetUserByEmailNotFound) Code() int { - return 404 -} - -func (o *GetUserByEmailNotFound) Error() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailNotFound %+v", 404, o.Payload) -} - -func (o *GetUserByEmailNotFound) String() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailNotFound %+v", 404, o.Payload) -} - -func (o *GetUserByEmailNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserByEmailNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserByEmailInternalServerError creates a GetUserByEmailInternalServerError with default headers values -func NewGetUserByEmailInternalServerError() *GetUserByEmailInternalServerError { - return &GetUserByEmailInternalServerError{} -} - -/* -GetUserByEmailInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetUserByEmailInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user by email internal server error response has a 2xx status code -func (o *GetUserByEmailInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user by email internal server error response has a 3xx status code -func (o *GetUserByEmailInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user by email internal server error response has a 4xx status code -func (o *GetUserByEmailInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this get user by email internal server error response has a 5xx status code -func (o *GetUserByEmailInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this get user by email internal server error response a status code equal to that given -func (o *GetUserByEmailInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the get user by email internal server error response -func (o *GetUserByEmailInternalServerError) Code() int { - return 500 -} - -func (o *GetUserByEmailInternalServerError) Error() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailInternalServerError %+v", 500, o.Payload) -} - -func (o *GetUserByEmailInternalServerError) String() string { - return fmt.Sprintf("[GET /api/v2/users-by-email][%d] getUserByEmailInternalServerError %+v", 500, o.Payload) -} - -func (o *GetUserByEmailInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserByEmailInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/user/get_user_roles_parameters.go b/api/auth0/auth0_client/user/get_user_roles_parameters.go deleted file mode 100644 index 303c00c..0000000 --- a/api/auth0/auth0_client/user/get_user_roles_parameters.go +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetUserRolesParams creates a new GetUserRolesParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewGetUserRolesParams() *GetUserRolesParams { - return &GetUserRolesParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetUserRolesParamsWithTimeout creates a new GetUserRolesParams object -// with the ability to set a timeout on a request. -func NewGetUserRolesParamsWithTimeout(timeout time.Duration) *GetUserRolesParams { - return &GetUserRolesParams{ - timeout: timeout, - } -} - -// NewGetUserRolesParamsWithContext creates a new GetUserRolesParams object -// with the ability to set a context for a request. -func NewGetUserRolesParamsWithContext(ctx context.Context) *GetUserRolesParams { - return &GetUserRolesParams{ - Context: ctx, - } -} - -// NewGetUserRolesParamsWithHTTPClient creates a new GetUserRolesParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetUserRolesParamsWithHTTPClient(client *http.Client) *GetUserRolesParams { - return &GetUserRolesParams{ - HTTPClient: client, - } -} - -/* -GetUserRolesParams contains all the parameters to send to the API endpoint - - for the get user roles operation. - - Typically these are written to a http.Request. -*/ -type GetUserRolesParams struct { - - // Authorization. - Authorization string - - /* UserID. - - An Auth0 User ID - */ - UserID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get user roles params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUserRolesParams) WithDefaults() *GetUserRolesParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get user roles params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUserRolesParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get user roles params -func (o *GetUserRolesParams) WithTimeout(timeout time.Duration) *GetUserRolesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get user roles params -func (o *GetUserRolesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get user roles params -func (o *GetUserRolesParams) WithContext(ctx context.Context) *GetUserRolesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get user roles params -func (o *GetUserRolesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get user roles params -func (o *GetUserRolesParams) WithHTTPClient(client *http.Client) *GetUserRolesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get user roles params -func (o *GetUserRolesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the get user roles params -func (o *GetUserRolesParams) WithAuthorization(authorization string) *GetUserRolesParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the get user roles params -func (o *GetUserRolesParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WithUserID adds the userID to the get user roles params -func (o *GetUserRolesParams) WithUserID(userID string) *GetUserRolesParams { - o.SetUserID(userID) - return o -} - -// SetUserID adds the userId to the get user roles params -func (o *GetUserRolesParams) SetUserID(userID string) { - o.UserID = userID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetUserRolesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - - // path param userId - if err := r.SetPathParam("userId", o.UserID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/user/get_user_roles_responses.go b/api/auth0/auth0_client/user/get_user_roles_responses.go deleted file mode 100644 index 2d34745..0000000 --- a/api/auth0/auth0_client/user/get_user_roles_responses.go +++ /dev/null @@ -1,403 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// GetUserRolesReader is a Reader for the GetUserRoles structure. -type GetUserRolesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetUserRolesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetUserRolesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetUserRolesUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetUserRolesForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetUserRolesNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetUserRolesInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetUserRolesOK creates a GetUserRolesOK with default headers values -func NewGetUserRolesOK() *GetUserRolesOK { - return &GetUserRolesOK{} -} - -/* -GetUserRolesOK describes a response with status code 200, with default header values. - -Taxnexus Response with User objects -*/ -type GetUserRolesOK struct { - Payload *auth0_models.RoleResponse -} - -// IsSuccess returns true when this get user roles o k response has a 2xx status code -func (o *GetUserRolesOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get user roles o k response has a 3xx status code -func (o *GetUserRolesOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user roles o k response has a 4xx status code -func (o *GetUserRolesOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get user roles o k response has a 5xx status code -func (o *GetUserRolesOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get user roles o k response a status code equal to that given -func (o *GetUserRolesOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get user roles o k response -func (o *GetUserRolesOK) Code() int { - return 200 -} - -func (o *GetUserRolesOK) Error() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesOK %+v", 200, o.Payload) -} - -func (o *GetUserRolesOK) String() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesOK %+v", 200, o.Payload) -} - -func (o *GetUserRolesOK) GetPayload() *auth0_models.RoleResponse { - return o.Payload -} - -func (o *GetUserRolesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.RoleResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserRolesUnauthorized creates a GetUserRolesUnauthorized with default headers values -func NewGetUserRolesUnauthorized() *GetUserRolesUnauthorized { - return &GetUserRolesUnauthorized{} -} - -/* -GetUserRolesUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetUserRolesUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user roles unauthorized response has a 2xx status code -func (o *GetUserRolesUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user roles unauthorized response has a 3xx status code -func (o *GetUserRolesUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user roles unauthorized response has a 4xx status code -func (o *GetUserRolesUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this get user roles unauthorized response has a 5xx status code -func (o *GetUserRolesUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this get user roles unauthorized response a status code equal to that given -func (o *GetUserRolesUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the get user roles unauthorized response -func (o *GetUserRolesUnauthorized) Code() int { - return 401 -} - -func (o *GetUserRolesUnauthorized) Error() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesUnauthorized %+v", 401, o.Payload) -} - -func (o *GetUserRolesUnauthorized) String() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesUnauthorized %+v", 401, o.Payload) -} - -func (o *GetUserRolesUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserRolesUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserRolesForbidden creates a GetUserRolesForbidden with default headers values -func NewGetUserRolesForbidden() *GetUserRolesForbidden { - return &GetUserRolesForbidden{} -} - -/* -GetUserRolesForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetUserRolesForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user roles forbidden response has a 2xx status code -func (o *GetUserRolesForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user roles forbidden response has a 3xx status code -func (o *GetUserRolesForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user roles forbidden response has a 4xx status code -func (o *GetUserRolesForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this get user roles forbidden response has a 5xx status code -func (o *GetUserRolesForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this get user roles forbidden response a status code equal to that given -func (o *GetUserRolesForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the get user roles forbidden response -func (o *GetUserRolesForbidden) Code() int { - return 403 -} - -func (o *GetUserRolesForbidden) Error() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesForbidden %+v", 403, o.Payload) -} - -func (o *GetUserRolesForbidden) String() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesForbidden %+v", 403, o.Payload) -} - -func (o *GetUserRolesForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserRolesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserRolesNotFound creates a GetUserRolesNotFound with default headers values -func NewGetUserRolesNotFound() *GetUserRolesNotFound { - return &GetUserRolesNotFound{} -} - -/* -GetUserRolesNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetUserRolesNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user roles not found response has a 2xx status code -func (o *GetUserRolesNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user roles not found response has a 3xx status code -func (o *GetUserRolesNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user roles not found response has a 4xx status code -func (o *GetUserRolesNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this get user roles not found response has a 5xx status code -func (o *GetUserRolesNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this get user roles not found response a status code equal to that given -func (o *GetUserRolesNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the get user roles not found response -func (o *GetUserRolesNotFound) Code() int { - return 404 -} - -func (o *GetUserRolesNotFound) Error() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesNotFound %+v", 404, o.Payload) -} - -func (o *GetUserRolesNotFound) String() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesNotFound %+v", 404, o.Payload) -} - -func (o *GetUserRolesNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserRolesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUserRolesInternalServerError creates a GetUserRolesInternalServerError with default headers values -func NewGetUserRolesInternalServerError() *GetUserRolesInternalServerError { - return &GetUserRolesInternalServerError{} -} - -/* -GetUserRolesInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetUserRolesInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get user roles internal server error response has a 2xx status code -func (o *GetUserRolesInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get user roles internal server error response has a 3xx status code -func (o *GetUserRolesInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get user roles internal server error response has a 4xx status code -func (o *GetUserRolesInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this get user roles internal server error response has a 5xx status code -func (o *GetUserRolesInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this get user roles internal server error response a status code equal to that given -func (o *GetUserRolesInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the get user roles internal server error response -func (o *GetUserRolesInternalServerError) Code() int { - return 500 -} - -func (o *GetUserRolesInternalServerError) Error() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesInternalServerError %+v", 500, o.Payload) -} - -func (o *GetUserRolesInternalServerError) String() string { - return fmt.Sprintf("[GET /api/v2/users/{userId}/roles][%d] getUserRolesInternalServerError %+v", 500, o.Payload) -} - -func (o *GetUserRolesInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUserRolesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/user/get_users_parameters.go b/api/auth0/auth0_client/user/get_users_parameters.go deleted file mode 100644 index c573602..0000000 --- a/api/auth0/auth0_client/user/get_users_parameters.go +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetUsersParams creates a new GetUsersParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewGetUsersParams() *GetUsersParams { - return &GetUsersParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetUsersParamsWithTimeout creates a new GetUsersParams object -// with the ability to set a timeout on a request. -func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams { - return &GetUsersParams{ - timeout: timeout, - } -} - -// NewGetUsersParamsWithContext creates a new GetUsersParams object -// with the ability to set a context for a request. -func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams { - return &GetUsersParams{ - Context: ctx, - } -} - -// NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams { - return &GetUsersParams{ - HTTPClient: client, - } -} - -/* -GetUsersParams contains all the parameters to send to the API endpoint - - for the get users operation. - - Typically these are written to a http.Request. -*/ -type GetUsersParams struct { - - // Authorization. - Authorization string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get users params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUsersParams) WithDefaults() *GetUsersParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get users params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetUsersParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get users params -func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get users params -func (o *GetUsersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get users params -func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get users params -func (o *GetUsersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get users params -func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get users params -func (o *GetUsersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the get users params -func (o *GetUsersParams) WithAuthorization(authorization string) *GetUsersParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the get users params -func (o *GetUsersParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WriteToRequest writes these params to a swagger request -func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/user/get_users_responses.go b/api/auth0/auth0_client/user/get_users_responses.go deleted file mode 100644 index c91b14c..0000000 --- a/api/auth0/auth0_client/user/get_users_responses.go +++ /dev/null @@ -1,401 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// GetUsersReader is a Reader for the GetUsers structure. -type GetUsersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetUsersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewGetUsersUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewGetUsersForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewGetUsersNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewGetUsersInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewGetUsersOK creates a GetUsersOK with default headers values -func NewGetUsersOK() *GetUsersOK { - return &GetUsersOK{} -} - -/* -GetUsersOK describes a response with status code 200, with default header values. - -Taxnexus Response with User objects -*/ -type GetUsersOK struct { - Payload []*auth0_models.User -} - -// IsSuccess returns true when this get users o k response has a 2xx status code -func (o *GetUsersOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get users o k response has a 3xx status code -func (o *GetUsersOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get users o k response has a 4xx status code -func (o *GetUsersOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get users o k response has a 5xx status code -func (o *GetUsersOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get users o k response a status code equal to that given -func (o *GetUsersOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get users o k response -func (o *GetUsersOK) Code() int { - return 200 -} - -func (o *GetUsersOK) Error() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersOK %+v", 200, o.Payload) -} - -func (o *GetUsersOK) String() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersOK %+v", 200, o.Payload) -} - -func (o *GetUsersOK) GetPayload() []*auth0_models.User { - return o.Payload -} - -func (o *GetUsersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersUnauthorized creates a GetUsersUnauthorized with default headers values -func NewGetUsersUnauthorized() *GetUsersUnauthorized { - return &GetUsersUnauthorized{} -} - -/* -GetUsersUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type GetUsersUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get users unauthorized response has a 2xx status code -func (o *GetUsersUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get users unauthorized response has a 3xx status code -func (o *GetUsersUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get users unauthorized response has a 4xx status code -func (o *GetUsersUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this get users unauthorized response has a 5xx status code -func (o *GetUsersUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this get users unauthorized response a status code equal to that given -func (o *GetUsersUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the get users unauthorized response -func (o *GetUsersUnauthorized) Code() int { - return 401 -} - -func (o *GetUsersUnauthorized) Error() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersUnauthorized %+v", 401, o.Payload) -} - -func (o *GetUsersUnauthorized) String() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersUnauthorized %+v", 401, o.Payload) -} - -func (o *GetUsersUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUsersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersForbidden creates a GetUsersForbidden with default headers values -func NewGetUsersForbidden() *GetUsersForbidden { - return &GetUsersForbidden{} -} - -/* -GetUsersForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type GetUsersForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get users forbidden response has a 2xx status code -func (o *GetUsersForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get users forbidden response has a 3xx status code -func (o *GetUsersForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get users forbidden response has a 4xx status code -func (o *GetUsersForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this get users forbidden response has a 5xx status code -func (o *GetUsersForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this get users forbidden response a status code equal to that given -func (o *GetUsersForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the get users forbidden response -func (o *GetUsersForbidden) Code() int { - return 403 -} - -func (o *GetUsersForbidden) Error() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersForbidden %+v", 403, o.Payload) -} - -func (o *GetUsersForbidden) String() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersForbidden %+v", 403, o.Payload) -} - -func (o *GetUsersForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUsersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersNotFound creates a GetUsersNotFound with default headers values -func NewGetUsersNotFound() *GetUsersNotFound { - return &GetUsersNotFound{} -} - -/* -GetUsersNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type GetUsersNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get users not found response has a 2xx status code -func (o *GetUsersNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get users not found response has a 3xx status code -func (o *GetUsersNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get users not found response has a 4xx status code -func (o *GetUsersNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this get users not found response has a 5xx status code -func (o *GetUsersNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this get users not found response a status code equal to that given -func (o *GetUsersNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the get users not found response -func (o *GetUsersNotFound) Code() int { - return 404 -} - -func (o *GetUsersNotFound) Error() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersNotFound %+v", 404, o.Payload) -} - -func (o *GetUsersNotFound) String() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersNotFound %+v", 404, o.Payload) -} - -func (o *GetUsersNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUsersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetUsersInternalServerError creates a GetUsersInternalServerError with default headers values -func NewGetUsersInternalServerError() *GetUsersInternalServerError { - return &GetUsersInternalServerError{} -} - -/* -GetUsersInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type GetUsersInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this get users internal server error response has a 2xx status code -func (o *GetUsersInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get users internal server error response has a 3xx status code -func (o *GetUsersInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get users internal server error response has a 4xx status code -func (o *GetUsersInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this get users internal server error response has a 5xx status code -func (o *GetUsersInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this get users internal server error response a status code equal to that given -func (o *GetUsersInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the get users internal server error response -func (o *GetUsersInternalServerError) Code() int { - return 500 -} - -func (o *GetUsersInternalServerError) Error() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersInternalServerError %+v", 500, o.Payload) -} - -func (o *GetUsersInternalServerError) String() string { - return fmt.Sprintf("[GET /api/v2/users][%d] getUsersInternalServerError %+v", 500, o.Payload) -} - -func (o *GetUsersInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *GetUsersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/user/post_users_parameters.go b/api/auth0/auth0_client/user/post_users_parameters.go deleted file mode 100644 index 9f20fd6..0000000 --- a/api/auth0/auth0_client/user/post_users_parameters.go +++ /dev/null @@ -1,176 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// NewPostUsersParams creates a new PostUsersParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewPostUsersParams() *PostUsersParams { - return &PostUsersParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewPostUsersParamsWithTimeout creates a new PostUsersParams object -// with the ability to set a timeout on a request. -func NewPostUsersParamsWithTimeout(timeout time.Duration) *PostUsersParams { - return &PostUsersParams{ - timeout: timeout, - } -} - -// NewPostUsersParamsWithContext creates a new PostUsersParams object -// with the ability to set a context for a request. -func NewPostUsersParamsWithContext(ctx context.Context) *PostUsersParams { - return &PostUsersParams{ - Context: ctx, - } -} - -// NewPostUsersParamsWithHTTPClient creates a new PostUsersParams object -// with the ability to set a custom HTTPClient for a request. -func NewPostUsersParamsWithHTTPClient(client *http.Client) *PostUsersParams { - return &PostUsersParams{ - HTTPClient: client, - } -} - -/* -PostUsersParams contains all the parameters to send to the API endpoint - - for the post users operation. - - Typically these are written to a http.Request. -*/ -type PostUsersParams struct { - - // Authorization. - Authorization string - - /* UserRequest. - - An array of User records - */ - UserRequest *auth0_models.UserRequest - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the post users params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostUsersParams) WithDefaults() *PostUsersParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the post users params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostUsersParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the post users params -func (o *PostUsersParams) WithTimeout(timeout time.Duration) *PostUsersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the post users params -func (o *PostUsersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the post users params -func (o *PostUsersParams) WithContext(ctx context.Context) *PostUsersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the post users params -func (o *PostUsersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the post users params -func (o *PostUsersParams) WithHTTPClient(client *http.Client) *PostUsersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the post users params -func (o *PostUsersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAuthorization adds the authorization to the post users params -func (o *PostUsersParams) WithAuthorization(authorization string) *PostUsersParams { - o.SetAuthorization(authorization) - return o -} - -// SetAuthorization adds the authorization to the post users params -func (o *PostUsersParams) SetAuthorization(authorization string) { - o.Authorization = authorization -} - -// WithUserRequest adds the userRequest to the post users params -func (o *PostUsersParams) WithUserRequest(userRequest *auth0_models.UserRequest) *PostUsersParams { - o.SetUserRequest(userRequest) - return o -} - -// SetUserRequest adds the userRequest to the post users params -func (o *PostUsersParams) SetUserRequest(userRequest *auth0_models.UserRequest) { - o.UserRequest = userRequest -} - -// WriteToRequest writes these params to a swagger request -func (o *PostUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // header param Authorization - if err := r.SetHeaderParam("Authorization", o.Authorization); err != nil { - return err - } - if o.UserRequest != nil { - if err := r.SetBodyParam(o.UserRequest); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/auth0/auth0_client/user/post_users_responses.go b/api/auth0/auth0_client/user/post_users_responses.go deleted file mode 100644 index 719bdfd..0000000 --- a/api/auth0/auth0_client/user/post_users_responses.go +++ /dev/null @@ -1,453 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_models" -) - -// PostUsersReader is a Reader for the PostUsers structure. -type PostUsersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PostUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 201: - result := NewPostUsersCreated() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewPostUsersUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewPostUsersForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewPostUsersNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 409: - result := NewPostUsersConflict() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewPostUsersInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewPostUsersCreated creates a PostUsersCreated with default headers values -func NewPostUsersCreated() *PostUsersCreated { - return &PostUsersCreated{} -} - -/* -PostUsersCreated describes a response with status code 201, with default header values. - -New user created -*/ -type PostUsersCreated struct { -} - -// IsSuccess returns true when this post users created response has a 2xx status code -func (o *PostUsersCreated) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this post users created response has a 3xx status code -func (o *PostUsersCreated) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post users created response has a 4xx status code -func (o *PostUsersCreated) IsClientError() bool { - return false -} - -// IsServerError returns true when this post users created response has a 5xx status code -func (o *PostUsersCreated) IsServerError() bool { - return false -} - -// IsCode returns true when this post users created response a status code equal to that given -func (o *PostUsersCreated) IsCode(code int) bool { - return code == 201 -} - -// Code gets the status code for the post users created response -func (o *PostUsersCreated) Code() int { - return 201 -} - -func (o *PostUsersCreated) Error() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersCreated ", 201) -} - -func (o *PostUsersCreated) String() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersCreated ", 201) -} - -func (o *PostUsersCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPostUsersUnauthorized creates a PostUsersUnauthorized with default headers values -func NewPostUsersUnauthorized() *PostUsersUnauthorized { - return &PostUsersUnauthorized{} -} - -/* -PostUsersUnauthorized describes a response with status code 401, with default header values. - -Access Unauthorized, invalid API-KEY was used -*/ -type PostUsersUnauthorized struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post users unauthorized response has a 2xx status code -func (o *PostUsersUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post users unauthorized response has a 3xx status code -func (o *PostUsersUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post users unauthorized response has a 4xx status code -func (o *PostUsersUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this post users unauthorized response has a 5xx status code -func (o *PostUsersUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this post users unauthorized response a status code equal to that given -func (o *PostUsersUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the post users unauthorized response -func (o *PostUsersUnauthorized) Code() int { - return 401 -} - -func (o *PostUsersUnauthorized) Error() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersUnauthorized %+v", 401, o.Payload) -} - -func (o *PostUsersUnauthorized) String() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersUnauthorized %+v", 401, o.Payload) -} - -func (o *PostUsersUnauthorized) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostUsersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostUsersForbidden creates a PostUsersForbidden with default headers values -func NewPostUsersForbidden() *PostUsersForbidden { - return &PostUsersForbidden{} -} - -/* -PostUsersForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type PostUsersForbidden struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post users forbidden response has a 2xx status code -func (o *PostUsersForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post users forbidden response has a 3xx status code -func (o *PostUsersForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post users forbidden response has a 4xx status code -func (o *PostUsersForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this post users forbidden response has a 5xx status code -func (o *PostUsersForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this post users forbidden response a status code equal to that given -func (o *PostUsersForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the post users forbidden response -func (o *PostUsersForbidden) Code() int { - return 403 -} - -func (o *PostUsersForbidden) Error() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersForbidden %+v", 403, o.Payload) -} - -func (o *PostUsersForbidden) String() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersForbidden %+v", 403, o.Payload) -} - -func (o *PostUsersForbidden) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostUsersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostUsersNotFound creates a PostUsersNotFound with default headers values -func NewPostUsersNotFound() *PostUsersNotFound { - return &PostUsersNotFound{} -} - -/* -PostUsersNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type PostUsersNotFound struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post users not found response has a 2xx status code -func (o *PostUsersNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post users not found response has a 3xx status code -func (o *PostUsersNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post users not found response has a 4xx status code -func (o *PostUsersNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this post users not found response has a 5xx status code -func (o *PostUsersNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this post users not found response a status code equal to that given -func (o *PostUsersNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the post users not found response -func (o *PostUsersNotFound) Code() int { - return 404 -} - -func (o *PostUsersNotFound) Error() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersNotFound %+v", 404, o.Payload) -} - -func (o *PostUsersNotFound) String() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersNotFound %+v", 404, o.Payload) -} - -func (o *PostUsersNotFound) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostUsersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostUsersConflict creates a PostUsersConflict with default headers values -func NewPostUsersConflict() *PostUsersConflict { - return &PostUsersConflict{} -} - -/* -PostUsersConflict describes a response with status code 409, with default header values. - -User already exists -*/ -type PostUsersConflict struct { -} - -// IsSuccess returns true when this post users conflict response has a 2xx status code -func (o *PostUsersConflict) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post users conflict response has a 3xx status code -func (o *PostUsersConflict) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post users conflict response has a 4xx status code -func (o *PostUsersConflict) IsClientError() bool { - return true -} - -// IsServerError returns true when this post users conflict response has a 5xx status code -func (o *PostUsersConflict) IsServerError() bool { - return false -} - -// IsCode returns true when this post users conflict response a status code equal to that given -func (o *PostUsersConflict) IsCode(code int) bool { - return code == 409 -} - -// Code gets the status code for the post users conflict response -func (o *PostUsersConflict) Code() int { - return 409 -} - -func (o *PostUsersConflict) Error() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersConflict ", 409) -} - -func (o *PostUsersConflict) String() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersConflict ", 409) -} - -func (o *PostUsersConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPostUsersInternalServerError creates a PostUsersInternalServerError with default headers values -func NewPostUsersInternalServerError() *PostUsersInternalServerError { - return &PostUsersInternalServerError{} -} - -/* -PostUsersInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type PostUsersInternalServerError struct { - Payload *auth0_models.Error -} - -// IsSuccess returns true when this post users internal server error response has a 2xx status code -func (o *PostUsersInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post users internal server error response has a 3xx status code -func (o *PostUsersInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post users internal server error response has a 4xx status code -func (o *PostUsersInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this post users internal server error response has a 5xx status code -func (o *PostUsersInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this post users internal server error response a status code equal to that given -func (o *PostUsersInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the post users internal server error response -func (o *PostUsersInternalServerError) Code() int { - return 500 -} - -func (o *PostUsersInternalServerError) Error() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersInternalServerError %+v", 500, o.Payload) -} - -func (o *PostUsersInternalServerError) String() string { - return fmt.Sprintf("[POST /api/v2/users-by-email][%d] postUsersInternalServerError %+v", 500, o.Payload) -} - -func (o *PostUsersInternalServerError) GetPayload() *auth0_models.Error { - return o.Payload -} - -func (o *PostUsersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(auth0_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/auth0/auth0_client/user/user_client.go b/api/auth0/auth0_client/user/user_client.go deleted file mode 100644 index 71b403a..0000000 --- a/api/auth0/auth0_client/user/user_client.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package user - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new user API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for user API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientOption is the option for Client methods -type ClientOption func(*runtime.ClientOperation) - -// ClientService is the interface for Client methods -type ClientService interface { - DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRolesParams, opts ...ClientOption) (*DeleteAPIV2UsersUserIDRolesNoContent, error) - - GetUserByEmail(params *GetUserByEmailParams, opts ...ClientOption) (*GetUserByEmailOK, error) - - GetUserRoles(params *GetUserRolesParams, opts ...ClientOption) (*GetUserRolesOK, error) - - GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error) - - PostUsers(params *PostUsersParams, opts ...ClientOption) (*PostUsersCreated, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -DeleteAPIV2UsersUserIDRoles delete API v2 users user ID roles API -*/ -func (a *Client) DeleteAPIV2UsersUserIDRoles(params *DeleteAPIV2UsersUserIDRolesParams, opts ...ClientOption) (*DeleteAPIV2UsersUserIDRolesNoContent, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteAPIV2UsersUserIDRolesParams() - } - op := &runtime.ClientOperation{ - ID: "DeleteAPIV2UsersUserIDRoles", - Method: "DELETE", - PathPattern: "/api/v2/users/{userId}/roles", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &DeleteAPIV2UsersUserIDRolesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*DeleteAPIV2UsersUserIDRolesNoContent) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for DeleteAPIV2UsersUserIDRoles: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetUserByEmail gets a single user from auth0 by email address - -Get a single user from Auth0 by Email Address -*/ -func (a *Client) GetUserByEmail(params *GetUserByEmailParams, opts ...ClientOption) (*GetUserByEmailOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetUserByEmailParams() - } - op := &runtime.ClientOperation{ - ID: "getUserByEmail", - Method: "GET", - PathPattern: "/api/v2/users-by-email", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &GetUserByEmailReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetUserByEmailOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getUserByEmail: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetUserRoles gets a user s roles - -Get a User's Roles -*/ -func (a *Client) GetUserRoles(params *GetUserRolesParams, opts ...ClientOption) (*GetUserRolesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetUserRolesParams() - } - op := &runtime.ClientOperation{ - ID: "getUserRoles", - Method: "GET", - PathPattern: "/api/v2/users/{userId}/roles", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &GetUserRolesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetUserRolesOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getUserRoles: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -GetUsers gets all users from auth0 - -Get all users from Auth0 -*/ -func (a *Client) GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetUsersParams() - } - op := &runtime.ClientOperation{ - ID: "getUsers", - Method: "GET", - PathPattern: "/api/v2/users", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &GetUsersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetUsersOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for getUsers: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -/* -PostUsers creates new auth0 user - -create new Auth0 user -*/ -func (a *Client) PostUsers(params *PostUsersParams, opts ...ClientOption) (*PostUsersCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostUsersParams() - } - op := &runtime.ClientOperation{ - ID: "postUsers", - Method: "POST", - PathPattern: "/api/v2/users-by-email", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"https"}, - Params: params, - Reader: &PostUsersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*PostUsersCreated) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for postUsers: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/api/auth0/auth0_models/credentials_request.go b/api/auth0/auth0_models/credentials_request.go deleted file mode 100644 index e4bde0a..0000000 --- a/api/auth0/auth0_models/credentials_request.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// CredentialsRequest credentials request -// -// swagger:model CredentialsRequest -type CredentialsRequest struct { - - // audience - Audience string `json:"audience,omitempty"` - - // client id - ClientID string `json:"client_id,omitempty"` - - // client secret - ClientSecret string `json:"client_secret,omitempty"` - - // grant type - GrantType string `json:"grant_type,omitempty"` -} - -// Validate validates this credentials request -func (m *CredentialsRequest) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this credentials request based on context it is used -func (m *CredentialsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *CredentialsRequest) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *CredentialsRequest) UnmarshalBinary(b []byte) error { - var res CredentialsRequest - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/credentials_response.go b/api/auth0/auth0_models/credentials_response.go deleted file mode 100644 index 0f3dacb..0000000 --- a/api/auth0/auth0_models/credentials_response.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// CredentialsResponse credentials response -// -// swagger:model CredentialsResponse -type CredentialsResponse struct { - - // access token - AccessToken string `json:"access_token,omitempty"` - - // expires in - ExpiresIn int64 `json:"expires_in,omitempty"` - - // scope - Scope string `json:"scope,omitempty"` - - // token type - TokenType string `json:"token_type,omitempty"` -} - -// Validate validates this credentials response -func (m *CredentialsResponse) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this credentials response based on context it is used -func (m *CredentialsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *CredentialsResponse) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *CredentialsResponse) UnmarshalBinary(b []byte) error { - var res CredentialsResponse - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/error.go b/api/auth0/auth0_models/error.go deleted file mode 100644 index f8628e0..0000000 --- a/api/auth0/auth0_models/error.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Error error -// -// swagger:model Error -type Error struct { - - // code - Code int32 `json:"code,omitempty"` - - // fields - Fields string `json:"fields,omitempty"` - - // message - Message string `json:"message,omitempty"` -} - -// Validate validates this error -func (m *Error) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this error based on context it is used -func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Error) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Error) UnmarshalBinary(b []byte) error { - var res Error - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/new_user.go b/api/auth0/auth0_models/new_user.go deleted file mode 100644 index 8c9cfc8..0000000 --- a/api/auth0/auth0_models/new_user.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewUser new user -// -// swagger:model NewUser -type NewUser struct { - - // blocked - // Example: false - Blocked bool `json:"blocked,omitempty"` - - // connection - // Example: Initial-Connection - Connection string `json:"connection,omitempty"` - - // email - // Example: john.doe@gmail.com - Email string `json:"email,omitempty"` - - // email verified - // Example: false - EmailVerified bool `json:"email_verified,omitempty"` - - // family name - // Example: Doe - FamilyName string `json:"family_name,omitempty"` - - // given name - // Example: John - GivenName string `json:"given_name,omitempty"` - - // name - // Example: John Doe - Name string `json:"name,omitempty"` - - // nickname - // Example: Johnny - Nickname string `json:"nickname,omitempty"` - - // password - // Example: secret - Password string `json:"password,omitempty"` - - // phone number - // Example: +199999999999999 - PhoneNumber string `json:"phone_number,omitempty"` - - // phone verified - // Example: false - PhoneVerified bool `json:"phone_verified,omitempty"` - - // picture - // Example: https://secure.gravatar.com/avatar/15626c5e0c749cb912f9d1ad48dba440?s=480\u0026r=pg\u0026d=https%3A%2F%2Fssl.gstatic.com%2Fs2%2Fprofiles%2Fimages%2Fsilhouette80.png - Picture string `json:"picture,omitempty"` - - // user id - // Example: abc - UserID string `json:"user_id,omitempty"` - - // username - // Example: johndoe - Username string `json:"username,omitempty"` - - // verify email - // Example: false - VerifyEmail bool `json:"verify_email,omitempty"` -} - -// Validate validates this new user -func (m *NewUser) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this new user based on context it is used -func (m *NewUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *NewUser) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *NewUser) UnmarshalBinary(b []byte) error { - var res NewUser - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/role.go b/api/auth0/auth0_models/role.go deleted file mode 100644 index 64a99fe..0000000 --- a/api/auth0/auth0_models/role.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Role role -// -// swagger:model Role -type Role struct { - - // description - // Example: Taxnexus API Developer - Description string `json:"description,omitempty"` - - // id - // Example: rol_oWVoMn2Zx2qDSGUL - ID string `json:"id,omitempty"` - - // name - // Example: Developer - Name string `json:"name,omitempty"` -} - -// Validate validates this role -func (m *Role) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this role based on context it is used -func (m *Role) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Role) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Role) UnmarshalBinary(b []byte) error { - var res Role - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/role_response.go b/api/auth0/auth0_models/role_response.go deleted file mode 100644 index 61fa324..0000000 --- a/api/auth0/auth0_models/role_response.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RoleResponse role response -// -// swagger:model RoleResponse -type RoleResponse struct { - - // roles - Roles []*Role `json:"roles"` -} - -// Validate validates this role response -func (m *RoleResponse) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateRoles(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RoleResponse) validateRoles(formats strfmt.Registry) error { - if swag.IsZero(m.Roles) { // not required - return nil - } - - for i := 0; i < len(m.Roles); i++ { - if swag.IsZero(m.Roles[i]) { // not required - continue - } - - if m.Roles[i] != nil { - if err := m.Roles[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("roles" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("roles" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// ContextValidate validate this role response based on the context it is used -func (m *RoleResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := m.contextValidateRoles(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RoleResponse) contextValidateRoles(ctx context.Context, formats strfmt.Registry) error { - - for i := 0; i < len(m.Roles); i++ { - - if m.Roles[i] != nil { - if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("roles" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("roles" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RoleResponse) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RoleResponse) UnmarshalBinary(b []byte) error { - var res RoleResponse - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/role_users_request.go b/api/auth0/auth0_models/role_users_request.go deleted file mode 100644 index 809e610..0000000 --- a/api/auth0/auth0_models/role_users_request.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RoleUsersRequest role users request -// -// swagger:model RoleUsersRequest -type RoleUsersRequest struct { - - // users - Users []string `json:"users"` -} - -// Validate validates this role users request -func (m *RoleUsersRequest) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this role users request based on context it is used -func (m *RoleUsersRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RoleUsersRequest) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RoleUsersRequest) UnmarshalBinary(b []byte) error { - var res RoleUsersRequest - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/auth0/auth0_models/user.go b/api/auth0/auth0_models/user.go deleted file mode 100644 index e991a4d..0000000 --- a/api/auth0/auth0_models/user.go +++ /dev/null @@ -1,426 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package auth0_models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// User user -// -// swagger:model User -type User struct { - - // app metadata - AppMetadata *UserAppMetadata `json:"app_metadata,omitempty"` - - // created at - // Example: 2018-06-06T16:00:55.930Z - CreatedAt string `json:"created_at,omitempty"` - - // email - // Example: vern@taxnexus.net - Email string `json:"email,omitempty"` - - // email verified - // Example: true - EmailVerified bool `json:"email_verified,omitempty"` - - // family name - // Example: Keenan - FamilyName string `json:"family_name,omitempty"` - - // given name - // Example: Vernon - GivenName string `json:"given_name,omitempty"` - - // identities - Identities []*UserIdentitiesItems0 `json:"identities"` - - // last ip - // Example: 67.188.106.161 - LastIP string `json:"last_ip,omitempty"` - - // last login - // Example: 2020-09-22T19:19:02.706Z - LastLogin string `json:"last_login,omitempty"` - - // last password reset - // Example: 2020-09-21T00:11:47.397Z - LastPasswordReset string `json:"last_password_reset,omitempty"` - - // logins count - // Example: 178 - LoginsCount int64 `json:"logins_count,omitempty"` - - // multifactor last modified - // Example: 2020-09-21T00:30:34.081Z - MultifactorLastModified string `json:"multifactor_last_modified,omitempty"` - - // name - // Example: Vernon Keenan - Name string `json:"name,omitempty"` - - // nickname - // Example: vern - Nickname string `json:"nickname,omitempty"` - - // picture - // Example: https://s.gravatar.com/avatar/a08710b8d49416c729a0da8a9c34cdb0?s=480\u0026r=pg\u0026d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fve.png - Picture string `json:"picture,omitempty"` - - // updated at - // Example: 2020-09-22T19:19:02.706Z - UpdatedAt string `json:"updated_at,omitempty"` - - // user id - // Example: auth0|5b180537157859716f2c9df5 - UserID string `json:"user_id,omitempty"` - - // user metadata - UserMetadata *UserUserMetadata `json:"user_metadata,omitempty"` -} - -// Validate validates this user -func (m *User) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateAppMetadata(formats); err != nil { - res = append(res, err) - } - - if err := m.validateIdentities(formats); err != nil { - res = append(res, err) - } - - if err := m.validateUserMetadata(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *User) validateAppMetadata(formats strfmt.Registry) error { - if swag.IsZero(m.AppMetadata) { // not required - return nil - } - - if m.AppMetadata != nil { - if err := m.AppMetadata.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("app_metadata") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("app_metadata") - } - return err - } - } - - return nil -} - -func (m *User) validateIdentities(formats strfmt.Registry) error { - if swag.IsZero(m.Identities) { // not required - return nil - } - - for i := 0; i < len(m.Identities); i++ { - if swag.IsZero(m.Identities[i]) { // not required - continue - } - - if m.Identities[i] != nil { - if err := m.Identities[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("identities" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("identities" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *User) validateUserMetadata(formats strfmt.Registry) error { - if swag.IsZero(m.UserMetadata) { // not required - return nil - } - - if m.UserMetadata != nil { - if err := m.UserMetadata.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("user_metadata") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("user_metadata") - } - return err - } - } - - return nil -} - -// ContextValidate validate this user based on the context it is used -func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - var res []error - - if err := m.contextValidateAppMetadata(ctx, formats); err != nil { - res = append(res, err) - } - - if err := m.contextValidateIdentities(ctx, formats); err != nil { - res = append(res, err) - } - - if err := m.contextValidateUserMetadata(ctx, formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *User) contextValidateAppMetadata(ctx context.Context, formats strfmt.Registry) error { - - if m.AppMetadata != nil { - if err := m.AppMetadata.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("app_metadata") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("app_metadata") - } - return err - } - } - - return nil -} - -func (m *User) contextValidateIdentities(ctx context.Context, formats strfmt.Registry) error { - - for i := 0; i < len(m.Identities); i++ { - - if m.Identities[i] != nil { - if err := m.Identities[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("identities" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("identities" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *User) contextValidateUserMetadata(ctx context.Context, formats strfmt.Registry) error { - - if m.UserMetadata != nil { - if err := m.UserMetadata.ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("user_metadata") - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("user_metadata") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *User) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *User) UnmarshalBinary(b []byte) error { - var res User - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// UserAppMetadata user app metadata -// -// swagger:model UserAppMetadata -type UserAppMetadata struct { - - // roles - // Example: ["login"] - Roles []string `json:"roles"` - - // taxnexus account id - // Example: 7f661ca6-ae4a-486f-9c3c-cd292685a46d - TaxnexusAccountID string `json:"taxnexus_account_id,omitempty"` - - // taxnexus contact id - // Example: 9f79dca8-e875-4e2b-a5ad-001a3d32e83d - TaxnexusContactID string `json:"taxnexus_contact_id,omitempty"` - - // taxnexus user id - // Example: f04da03d-70ad-46df-a46c-a676388aadd7 - TaxnexusUserID string `json:"taxnexus_user_id,omitempty"` -} - -// Validate validates this user app metadata -func (m *UserAppMetadata) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this user app metadata based on context it is used -func (m *UserAppMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *UserAppMetadata) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *UserAppMetadata) UnmarshalBinary(b []byte) error { - var res UserAppMetadata - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// UserIdentitiesItems0 user identities items0 -// -// swagger:model UserIdentitiesItems0 -type UserIdentitiesItems0 struct { - - // connection - // Example: Username-Password-Authentication - Connection string `json:"connection,omitempty"` - - // is social - // Example: false - IsSocial bool `json:"isSocial,omitempty"` - - // provider - // Example: auth0 - Provider string `json:"provider,omitempty"` - - // user id - // Example: 5b180537157859716f2c9df5 - UserID string `json:"user_id,omitempty"` -} - -// Validate validates this user identities items0 -func (m *UserIdentitiesItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this user identities items0 based on context it is used -func (m *UserIdentitiesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *UserIdentitiesItems0) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *UserIdentitiesItems0) UnmarshalBinary(b []byte) error { - var res UserIdentitiesItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// UserUserMetadata user user metadata -// -// swagger:model UserUserMetadata -type UserUserMetadata struct { - - // taxnexus email - // Example: vern@taxnexus.net - TaxnexusEmail string `json:"taxnexus_email,omitempty"` - - // taxnexus firstname - // Example: Vernon - TaxnexusFirstname string `json:"taxnexus_firstname,omitempty"` - - // taxnexus fullname - // Example: Vernon Keenan - TaxnexusFullname string `json:"taxnexus_fullname,omitempty"` - - // taxnexus lastname - // Example: Keenan - TaxnexusLastname string `json:"taxnexus_lastname,omitempty"` - - // taxnexus phone - // Example: +15106791900 - TaxnexusPhone string `json:"taxnexus_phone,omitempty"` -} - -// Validate validates this user user metadata -func (m *UserUserMetadata) Validate(formats strfmt.Registry) error { - return nil -} - -// ContextValidate validates this user user metadata based on context it is used -func (m *UserUserMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *UserUserMetadata) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *UserUserMetadata) UnmarshalBinary(b []byte) error { - var res UserUserMetadata - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/api/crm/crm_client/accounts/delete_account_parameters.go b/api/crm/crm_client/accounts/delete_account_parameters.go index 0ffc96c..82076a0 100644 --- a/api/crm/crm_client/accounts/delete_account_parameters.go +++ b/api/crm/crm_client/accounts/delete_account_parameters.go @@ -67,7 +67,7 @@ type DeleteAccountParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string diff --git a/api/crm/crm_client/accounts/delete_account_responses.go b/api/crm/crm_client/accounts/delete_account_responses.go index 2235374..bd389f1 100644 --- a/api/crm/crm_client/accounts/delete_account_responses.go +++ b/api/crm/crm_client/accounts/delete_account_responses.go @@ -76,7 +76,7 @@ func NewDeleteAccountOK() *DeleteAccountOK { /* DeleteAccountOK describes a response with status code 200, with default header values. -Taxnexus Response with Message Objects with Delete Status +Response with Message Objects with Delete Status */ type DeleteAccountOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/accounts/get_accounts_observable_parameters.go b/api/crm/crm_client/accounts/get_accounts_observable_parameters.go index 8391fbc..fd9bb23 100644 --- a/api/crm/crm_client/accounts/get_accounts_observable_parameters.go +++ b/api/crm/crm_client/accounts/get_accounts_observable_parameters.go @@ -68,7 +68,7 @@ type GetAccountsObservableParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string diff --git a/api/crm/crm_client/accounts/get_accounts_observable_responses.go b/api/crm/crm_client/accounts/get_accounts_observable_responses.go index 239e9d2..8c12fef 100644 --- a/api/crm/crm_client/accounts/get_accounts_observable_responses.go +++ b/api/crm/crm_client/accounts/get_accounts_observable_responses.go @@ -76,7 +76,7 @@ func NewGetAccountsObservableOK() *GetAccountsObservableOK { /* GetAccountsObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Account objects +Response with an array of Account objects */ type GetAccountsObservableOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/accounts/get_accounts_parameters.go b/api/crm/crm_client/accounts/get_accounts_parameters.go index bf03bf6..99664db 100644 --- a/api/crm/crm_client/accounts/get_accounts_parameters.go +++ b/api/crm/crm_client/accounts/get_accounts_parameters.go @@ -68,7 +68,7 @@ type GetAccountsParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string diff --git a/api/crm/crm_client/accounts/get_accounts_responses.go b/api/crm/crm_client/accounts/get_accounts_responses.go index 8d268e4..4cff2c8 100644 --- a/api/crm/crm_client/accounts/get_accounts_responses.go +++ b/api/crm/crm_client/accounts/get_accounts_responses.go @@ -76,7 +76,7 @@ func NewGetAccountsOK() *GetAccountsOK { /* GetAccountsOK describes a response with status code 200, with default header values. -Taxnexus Response with Account objects with Contacts +Response with Account objects with Contacts */ type GetAccountsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/accounts/post_accounts_responses.go b/api/crm/crm_client/accounts/post_accounts_responses.go index 581cc52..4e72f5a 100644 --- a/api/crm/crm_client/accounts/post_accounts_responses.go +++ b/api/crm/crm_client/accounts/post_accounts_responses.go @@ -76,7 +76,7 @@ func NewPostAccountsOK() *PostAccountsOK { /* PostAccountsOK describes a response with status code 200, with default header values. -Taxnexus Response with Account objects with Contacts +Response with Account objects with Contacts */ type PostAccountsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/accounts/put_account_responses.go b/api/crm/crm_client/accounts/put_account_responses.go index ffdcd14..3dc37d8 100644 --- a/api/crm/crm_client/accounts/put_account_responses.go +++ b/api/crm/crm_client/accounts/put_account_responses.go @@ -76,7 +76,7 @@ func NewPutAccountOK() *PutAccountOK { /* PutAccountOK describes a response with status code 200, with default header values. -Taxnexus Response with Account objects with Contacts +Response with Account objects with Contacts */ type PutAccountOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/assets/delete_asset_parameters.go b/api/crm/crm_client/assets/delete_asset_parameters.go index 470b8d1..5a950e4 100644 --- a/api/crm/crm_client/assets/delete_asset_parameters.go +++ b/api/crm/crm_client/assets/delete_asset_parameters.go @@ -67,7 +67,7 @@ type DeleteAssetParams struct { /* AssetID. - Taxnexus Record Id of an Asset + Record Id of an Asset */ AssetID *string diff --git a/api/crm/crm_client/assets/delete_asset_responses.go b/api/crm/crm_client/assets/delete_asset_responses.go index a162c06..7ca596f 100644 --- a/api/crm/crm_client/assets/delete_asset_responses.go +++ b/api/crm/crm_client/assets/delete_asset_responses.go @@ -76,7 +76,7 @@ func NewDeleteAssetOK() *DeleteAssetOK { /* DeleteAssetOK describes a response with status code 200, with default header values. -Taxnexus Response with Message Objects with Delete Status +Response with Message Objects with Delete Status */ type DeleteAssetOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/assets/get_assets_observable_parameters.go b/api/crm/crm_client/assets/get_assets_observable_parameters.go index f74bb8d..0054389 100644 --- a/api/crm/crm_client/assets/get_assets_observable_parameters.go +++ b/api/crm/crm_client/assets/get_assets_observable_parameters.go @@ -67,13 +67,13 @@ type GetAssetsObservableParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string /* AssetID. - Taxnexus Record Id of an Asset + Record Id of an Asset */ AssetID *string diff --git a/api/crm/crm_client/assets/get_assets_observable_responses.go b/api/crm/crm_client/assets/get_assets_observable_responses.go index 978f9ae..c34bc96 100644 --- a/api/crm/crm_client/assets/get_assets_observable_responses.go +++ b/api/crm/crm_client/assets/get_assets_observable_responses.go @@ -76,7 +76,7 @@ func NewGetAssetsObservableOK() *GetAssetsObservableOK { /* GetAssetsObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Asset objects +Response with an array of Asset objects */ type GetAssetsObservableOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/assets/get_assets_parameters.go b/api/crm/crm_client/assets/get_assets_parameters.go index f79057f..1f05065 100644 --- a/api/crm/crm_client/assets/get_assets_parameters.go +++ b/api/crm/crm_client/assets/get_assets_parameters.go @@ -68,13 +68,13 @@ type GetAssetsParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string /* AssetID. - Taxnexus Record Id of an Asset + Record Id of an Asset */ AssetID *string diff --git a/api/crm/crm_client/assets/get_assets_responses.go b/api/crm/crm_client/assets/get_assets_responses.go index 7ca14e4..b30b9d8 100644 --- a/api/crm/crm_client/assets/get_assets_responses.go +++ b/api/crm/crm_client/assets/get_assets_responses.go @@ -76,7 +76,7 @@ func NewGetAssetsOK() *GetAssetsOK { /* GetAssetsOK describes a response with status code 200, with default header values. -Taxnexus Response with Asset objects with Contacts +Response with Asset objects with Contacts */ type GetAssetsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/assets/post_assets_responses.go b/api/crm/crm_client/assets/post_assets_responses.go index c80f414..bcf898f 100644 --- a/api/crm/crm_client/assets/post_assets_responses.go +++ b/api/crm/crm_client/assets/post_assets_responses.go @@ -76,7 +76,7 @@ func NewPostAssetsOK() *PostAssetsOK { /* PostAssetsOK describes a response with status code 200, with default header values. -Taxnexus Response with Asset objects with Contacts +Response with Asset objects with Contacts */ type PostAssetsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/assets/put_asset_responses.go b/api/crm/crm_client/assets/put_asset_responses.go index ec72a22..8927a6e 100644 --- a/api/crm/crm_client/assets/put_asset_responses.go +++ b/api/crm/crm_client/assets/put_asset_responses.go @@ -76,7 +76,7 @@ func NewPutAssetOK() *PutAssetOK { /* PutAssetOK describes a response with status code 200, with default header values. -Taxnexus Response with Asset objects with Contacts +Response with Asset objects with Contacts */ type PutAssetOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contacts/delete_contact_parameters.go b/api/crm/crm_client/contacts/delete_contact_parameters.go index ea54993..5a46cb9 100644 --- a/api/crm/crm_client/contacts/delete_contact_parameters.go +++ b/api/crm/crm_client/contacts/delete_contact_parameters.go @@ -67,7 +67,7 @@ type DeleteContactParams struct { /* ContactID. - Taxnexus Contact record ID + Contact record ID */ ContactID *string diff --git a/api/crm/crm_client/contacts/delete_contact_responses.go b/api/crm/crm_client/contacts/delete_contact_responses.go index 1029e55..e3fd38e 100644 --- a/api/crm/crm_client/contacts/delete_contact_responses.go +++ b/api/crm/crm_client/contacts/delete_contact_responses.go @@ -76,7 +76,7 @@ func NewDeleteContactOK() *DeleteContactOK { /* DeleteContactOK describes a response with status code 200, with default header values. -Taxnexus Response with Message Objects with Delete Status +Response with Message Objects with Delete Status */ type DeleteContactOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contacts/get_contacts_observable_parameters.go b/api/crm/crm_client/contacts/get_contacts_observable_parameters.go index c9ac511..843abe2 100644 --- a/api/crm/crm_client/contacts/get_contacts_observable_parameters.go +++ b/api/crm/crm_client/contacts/get_contacts_observable_parameters.go @@ -74,7 +74,7 @@ type GetContactsObservableParams struct { /* ContactID. - Taxnexus Contact record ID + Contact record ID */ ContactID *string diff --git a/api/crm/crm_client/contacts/get_contacts_observable_responses.go b/api/crm/crm_client/contacts/get_contacts_observable_responses.go index c171047..c99284f 100644 --- a/api/crm/crm_client/contacts/get_contacts_observable_responses.go +++ b/api/crm/crm_client/contacts/get_contacts_observable_responses.go @@ -76,7 +76,7 @@ func NewGetContactsObservableOK() *GetContactsObservableOK { /* GetContactsObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contact objects +Response with an array of Contact objects */ type GetContactsObservableOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contacts/get_contacts_parameters.go b/api/crm/crm_client/contacts/get_contacts_parameters.go index 59b36ab..9268797 100644 --- a/api/crm/crm_client/contacts/get_contacts_parameters.go +++ b/api/crm/crm_client/contacts/get_contacts_parameters.go @@ -74,7 +74,7 @@ type GetContactsParams struct { /* ContactID. - Taxnexus Contact record ID + Contact record ID */ ContactID *string diff --git a/api/crm/crm_client/contacts/get_contacts_responses.go b/api/crm/crm_client/contacts/get_contacts_responses.go index 130ffb2..2616882 100644 --- a/api/crm/crm_client/contacts/get_contacts_responses.go +++ b/api/crm/crm_client/contacts/get_contacts_responses.go @@ -76,7 +76,7 @@ func NewGetContactsOK() *GetContactsOK { /* GetContactsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contact objects +Response with an array of Contact objects */ type GetContactsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contacts/post_contacts_responses.go b/api/crm/crm_client/contacts/post_contacts_responses.go index 08095a2..1a0ae17 100644 --- a/api/crm/crm_client/contacts/post_contacts_responses.go +++ b/api/crm/crm_client/contacts/post_contacts_responses.go @@ -76,7 +76,7 @@ func NewPostContactsOK() *PostContactsOK { /* PostContactsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contact objects +Response with an array of Contact objects */ type PostContactsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contacts/put_contacts_responses.go b/api/crm/crm_client/contacts/put_contacts_responses.go index 31c2465..9277c6a 100644 --- a/api/crm/crm_client/contacts/put_contacts_responses.go +++ b/api/crm/crm_client/contacts/put_contacts_responses.go @@ -76,7 +76,7 @@ func NewPutContactsOK() *PutContactsOK { /* PutContactsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contact objects +Response with an array of Contact objects */ type PutContactsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contracts/delete_contract_parameters.go b/api/crm/crm_client/contracts/delete_contract_parameters.go index ad9554b..4cc0597 100644 --- a/api/crm/crm_client/contracts/delete_contract_parameters.go +++ b/api/crm/crm_client/contracts/delete_contract_parameters.go @@ -67,7 +67,7 @@ type DeleteContractParams struct { /* ContractID. - Taxnexus Contact record ID + Contact record ID */ ContractID *string diff --git a/api/crm/crm_client/contracts/delete_contract_responses.go b/api/crm/crm_client/contracts/delete_contract_responses.go index 33a6d1a..214fb07 100644 --- a/api/crm/crm_client/contracts/delete_contract_responses.go +++ b/api/crm/crm_client/contracts/delete_contract_responses.go @@ -76,7 +76,7 @@ func NewDeleteContractOK() *DeleteContractOK { /* DeleteContractOK describes a response with status code 200, with default header values. -Taxnexus Response with Message Objects with Delete Status +Response with Message Objects with Delete Status */ type DeleteContractOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contracts/get_contracts_observable_parameters.go b/api/crm/crm_client/contracts/get_contracts_observable_parameters.go index eea6450..f9e8fca 100644 --- a/api/crm/crm_client/contracts/get_contracts_observable_parameters.go +++ b/api/crm/crm_client/contracts/get_contracts_observable_parameters.go @@ -74,7 +74,7 @@ type GetContractsObservableParams struct { /* ContractID. - Taxnexus Contact record ID + Contact record ID */ ContractID *string diff --git a/api/crm/crm_client/contracts/get_contracts_observable_responses.go b/api/crm/crm_client/contracts/get_contracts_observable_responses.go index c621664..4f03adc 100644 --- a/api/crm/crm_client/contracts/get_contracts_observable_responses.go +++ b/api/crm/crm_client/contracts/get_contracts_observable_responses.go @@ -76,7 +76,7 @@ func NewGetContractsObservableOK() *GetContractsObservableOK { /* GetContractsObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contract objects +Response with an array of Contract objects */ type GetContractsObservableOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contracts/get_contracts_parameters.go b/api/crm/crm_client/contracts/get_contracts_parameters.go index b3aaa02..91d50b7 100644 --- a/api/crm/crm_client/contracts/get_contracts_parameters.go +++ b/api/crm/crm_client/contracts/get_contracts_parameters.go @@ -74,7 +74,7 @@ type GetContractsParams struct { /* ContractID. - Taxnexus Contact record ID + Contact record ID */ ContractID *string diff --git a/api/crm/crm_client/contracts/get_contracts_responses.go b/api/crm/crm_client/contracts/get_contracts_responses.go index 4b3d103..02bbff3 100644 --- a/api/crm/crm_client/contracts/get_contracts_responses.go +++ b/api/crm/crm_client/contracts/get_contracts_responses.go @@ -76,7 +76,7 @@ func NewGetContractsOK() *GetContractsOK { /* GetContractsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contract objects +Response with an array of Contract objects */ type GetContractsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contracts/post_contracts_responses.go b/api/crm/crm_client/contracts/post_contracts_responses.go index a1a3b16..0599494 100644 --- a/api/crm/crm_client/contracts/post_contracts_responses.go +++ b/api/crm/crm_client/contracts/post_contracts_responses.go @@ -76,7 +76,7 @@ func NewPostContractsOK() *PostContractsOK { /* PostContractsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contract objects +Response with an array of Contract objects */ type PostContractsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/contracts/put_contract_responses.go b/api/crm/crm_client/contracts/put_contract_responses.go index 10eb258..21feaca 100644 --- a/api/crm/crm_client/contracts/put_contract_responses.go +++ b/api/crm/crm_client/contracts/put_contract_responses.go @@ -76,7 +76,7 @@ func NewPutContractOK() *PutContractOK { /* PutContractOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contract objects +Response with an array of Contract objects */ type PutContractOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/leads/delete_lead_parameters.go b/api/crm/crm_client/leads/delete_lead_parameters.go index 5a3255c..237cd74 100644 --- a/api/crm/crm_client/leads/delete_lead_parameters.go +++ b/api/crm/crm_client/leads/delete_lead_parameters.go @@ -67,7 +67,7 @@ type DeleteLeadParams struct { /* LeadID. - Taxnexus Lead record ID + Lead record ID */ LeadID *string diff --git a/api/crm/crm_client/leads/delete_lead_responses.go b/api/crm/crm_client/leads/delete_lead_responses.go index 3c20eaa..f05b1aa 100644 --- a/api/crm/crm_client/leads/delete_lead_responses.go +++ b/api/crm/crm_client/leads/delete_lead_responses.go @@ -76,7 +76,7 @@ func NewDeleteLeadOK() *DeleteLeadOK { /* DeleteLeadOK describes a response with status code 200, with default header values. -Taxnexus Response with Message Objects with Delete Status +Response with Message Objects with Delete Status */ type DeleteLeadOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/leads/get_leads_observable_parameters.go b/api/crm/crm_client/leads/get_leads_observable_parameters.go index ba1bcdd..35322cd 100644 --- a/api/crm/crm_client/leads/get_leads_observable_parameters.go +++ b/api/crm/crm_client/leads/get_leads_observable_parameters.go @@ -73,7 +73,7 @@ type GetLeadsObservableParams struct { /* LeadID. - Taxnexus Lead record ID + Lead record ID */ LeadID *string diff --git a/api/crm/crm_client/leads/get_leads_observable_responses.go b/api/crm/crm_client/leads/get_leads_observable_responses.go index 790c331..b1bd6a0 100644 --- a/api/crm/crm_client/leads/get_leads_observable_responses.go +++ b/api/crm/crm_client/leads/get_leads_observable_responses.go @@ -76,7 +76,7 @@ func NewGetLeadsObservableOK() *GetLeadsObservableOK { /* GetLeadsObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Lead objects +Response with an array of Lead objects */ type GetLeadsObservableOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/leads/get_leads_parameters.go b/api/crm/crm_client/leads/get_leads_parameters.go index 99a3e08..dee576e 100644 --- a/api/crm/crm_client/leads/get_leads_parameters.go +++ b/api/crm/crm_client/leads/get_leads_parameters.go @@ -74,7 +74,7 @@ type GetLeadsParams struct { /* LeadID. - Taxnexus Lead record ID + Lead record ID */ LeadID *string diff --git a/api/crm/crm_client/leads/get_leads_responses.go b/api/crm/crm_client/leads/get_leads_responses.go index 8c65b23..5afd3a4 100644 --- a/api/crm/crm_client/leads/get_leads_responses.go +++ b/api/crm/crm_client/leads/get_leads_responses.go @@ -76,7 +76,7 @@ func NewGetLeadsOK() *GetLeadsOK { /* GetLeadsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Lead objects +Response with an array of Lead objects */ type GetLeadsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/leads/post_leads_responses.go b/api/crm/crm_client/leads/post_leads_responses.go index 1c9e817..11fce54 100644 --- a/api/crm/crm_client/leads/post_leads_responses.go +++ b/api/crm/crm_client/leads/post_leads_responses.go @@ -76,7 +76,7 @@ func NewPostLeadsOK() *PostLeadsOK { /* PostLeadsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Lead objects +Response with an array of Lead objects */ type PostLeadsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_client/leads/put_leads_responses.go b/api/crm/crm_client/leads/put_leads_responses.go index d16683d..86bea14 100644 --- a/api/crm/crm_client/leads/put_leads_responses.go +++ b/api/crm/crm_client/leads/put_leads_responses.go @@ -76,7 +76,7 @@ func NewPutLeadsOK() *PutLeadsOK { /* PutLeadsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Lead objects +Response with an array of Lead objects */ type PutLeadsOK struct { AccessControlAllowOrigin string diff --git a/api/crm/crm_models/account.go b/api/crm/crm_models/account.go index 647d435..acd75d9 100644 --- a/api/crm/crm_models/account.go +++ b/api/crm/crm_models/account.go @@ -28,6 +28,9 @@ type Account struct { // The marketing origin of this account AccountSource string `json:"AccountSource,omitempty"` + // active + Active int64 `json:"Active,omitempty"` + // Annual Revenue Estimate AnnualRevenue float64 `json:"AnnualRevenue,omitempty"` @@ -40,6 +43,9 @@ type Account struct { // Close Date CloseDate string `json:"CloseDate,omitempty"` + // cloud revenue total + CloudRevenueTotal float64 `json:"CloudRevenueTotal,omitempty"` + // The type of cloud company CloudType string `json:"CloudType,omitempty"` @@ -58,6 +64,9 @@ type Account struct { // Description of the account Description string `json:"Description,omitempty"` + // e i n + EIN string `json:"EIN,omitempty"` + // Earnings Call Date EarningsCall string `json:"EarningsCall,omitempty"` @@ -76,12 +85,18 @@ type Account struct { // Date company founded FoundedDate string `json:"FoundedDate,omitempty"` - // Taxnexus Account Id + // Account Id ID string `json:"ID,omitempty"` // IPO Date IPODate string `json:"IPODate,omitempty"` + // image URL + ImageURL string `json:"ImageURL,omitempty"` + + // imagealttext + Imagealttext string `json:"Imagealttext,omitempty"` + // Industries Industries string `json:"Industries,omitempty"` @@ -148,6 +163,9 @@ type Account struct { // Account Site Site string `json:"Site,omitempty"` + // Slug + Slug string `json:"Slug,omitempty"` + // Company tagline TagLine string `json:"TagLine,omitempty"` diff --git a/api/crm/crm_models/asset.go b/api/crm/crm_models/asset.go index 052a8e1..5f133dc 100644 --- a/api/crm/crm_models/asset.go +++ b/api/crm/crm_models/asset.go @@ -76,7 +76,7 @@ type Asset struct { // Has Lifecycle Management HasLifecycleManagement bool `json:"HasLifecycleManagement,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Install Date diff --git a/api/crm/crm_models/contact.go b/api/crm/crm_models/contact.go index 6351b89..6bb76fd 100644 --- a/api/crm/crm_models/contact.go +++ b/api/crm/crm_models/contact.go @@ -40,6 +40,9 @@ type Contact struct { // Created Date CreatedDate string `json:"CreatedDate,omitempty"` + // crunchbase URL + CrunchbaseURL string `json:"CrunchbaseURL,omitempty"` + // Department Department string `json:"Department,omitempty"` @@ -73,7 +76,7 @@ type Contact struct { // Home Phone HomePhone string `json:"HomePhone,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Does this contact have bounced emails? @@ -124,6 +127,15 @@ type Contact struct { // URL of a photograph of this User PhotoURL string `json:"PhotoURL,omitempty"` + // Reports To + ReportsToID string `json:"ReportsToID,omitempty"` + + // Salutation + Salutation string `json:"Salutation,omitempty"` + + // Slug + Slug string `json:"Slug,omitempty"` + // Tenant Identifier TenantID string `json:"TenantID,omitempty"` diff --git a/api/crm/crm_models/contract.go b/api/crm/crm_models/contract.go index b97edbe..3f4eab2 100644 --- a/api/crm/crm_models/contract.go +++ b/api/crm/crm_models/contract.go @@ -76,7 +76,7 @@ type Contract struct { // Hourly Rate HourlyRate float64 `json:"HourlyRate,omitempty"` - // Telnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Last Modified By User ID diff --git a/api/crm/crm_models/lead.go b/api/crm/crm_models/lead.go index 4e684f4..4d3b9a5 100644 --- a/api/crm/crm_models/lead.go +++ b/api/crm/crm_models/lead.go @@ -43,7 +43,7 @@ type Lead struct { // First Name FirstName string `json:"FirstName,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Last Modified By User ID diff --git a/api/crm/crm_models/request_meta.go b/api/crm/crm_models/request_meta.go index 8ead7f8..a0dcc95 100644 --- a/api/crm/crm_models/request_meta.go +++ b/api/crm/crm_models/request_meta.go @@ -23,7 +23,7 @@ import ( // swagger:model RequestMeta type RequestMeta struct { - // Taxnexus Account Number of the Reseller or OEM + // Account Number of the Reseller or OEM // Required: true TaxnexusAccount *string `json:"TaxnexusAccount"` } diff --git a/api/crm/crm_models/response_meta.go b/api/crm/crm_models/response_meta.go index e9d006b..958d6e6 100644 --- a/api/crm/crm_models/response_meta.go +++ b/api/crm/crm_models/response_meta.go @@ -55,7 +55,7 @@ type ResponseMeta struct { // Backend Server Timestamp ServerTimestamp string `json:"ServerTimestamp,omitempty"` - // Taxnexus Account Number used for recording transactions + // Account Number used for recording transactions TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` } diff --git a/api/devops/devops_client/cluster/get_cluster_parameters.go b/api/devops/devops_client/cluster/get_cluster_parameters.go index cb115d4..b97a2e9 100644 --- a/api/devops/devops_client/cluster/get_cluster_parameters.go +++ b/api/devops/devops_client/cluster/get_cluster_parameters.go @@ -67,7 +67,7 @@ type GetClusterParams struct { /* ClusterIDPath. - Taxnexus Record Id of a Cluster + Record Id of a Cluster */ ClusterIDPath string diff --git a/api/devops/devops_client/cluster/get_clusters_parameters.go b/api/devops/devops_client/cluster/get_clusters_parameters.go index 2dfee74..19c7cac 100644 --- a/api/devops/devops_client/cluster/get_clusters_parameters.go +++ b/api/devops/devops_client/cluster/get_clusters_parameters.go @@ -68,13 +68,13 @@ type GetClustersParams struct { /* ClusterID. - Taxnexus Record Id of a Cluster + Record Id of a Cluster */ ClusterID *string /* CompanyID. - Taxnexus Record Id of a Company + Record Id of a Company */ CompanyID *string diff --git a/api/devops/devops_client/cluster/get_clusters_responses.go b/api/devops/devops_client/cluster/get_clusters_responses.go index f64fd42..9fc34b1 100644 --- a/api/devops/devops_client/cluster/get_clusters_responses.go +++ b/api/devops/devops_client/cluster/get_clusters_responses.go @@ -76,7 +76,7 @@ func NewGetClustersOK() *GetClustersOK { /* GetClustersOK describes a response with status code 200, with default header values. -Taxnexus Response with Cluster objects +Response with Cluster objects */ type GetClustersOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/cluster/post_clusters_responses.go b/api/devops/devops_client/cluster/post_clusters_responses.go index f042d6b..17602a9 100644 --- a/api/devops/devops_client/cluster/post_clusters_responses.go +++ b/api/devops/devops_client/cluster/post_clusters_responses.go @@ -76,7 +76,7 @@ func NewPostClustersOK() *PostClustersOK { /* PostClustersOK describes a response with status code 200, with default header values. -Taxnexus Response with Cluster objects +Response with Cluster objects */ type PostClustersOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/cluster/put_clusters_responses.go b/api/devops/devops_client/cluster/put_clusters_responses.go index e0869d1..f093255 100644 --- a/api/devops/devops_client/cluster/put_clusters_responses.go +++ b/api/devops/devops_client/cluster/put_clusters_responses.go @@ -76,7 +76,7 @@ func NewPutClustersOK() *PutClustersOK { /* PutClustersOK describes a response with status code 200, with default header values. -Taxnexus Response with Cluster objects +Response with Cluster objects */ type PutClustersOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/database/get_database_parameters.go b/api/devops/devops_client/database/get_database_parameters.go index 2ed5914..aedc830 100644 --- a/api/devops/devops_client/database/get_database_parameters.go +++ b/api/devops/devops_client/database/get_database_parameters.go @@ -67,7 +67,7 @@ type GetDatabaseParams struct { /* DatabaseIDPath. - Taxnexus Record Id of a Database + Record Id of a Database */ DatabaseIDPath string diff --git a/api/devops/devops_client/database/get_databases_parameters.go b/api/devops/devops_client/database/get_databases_parameters.go index 5ad4365..02ab761 100644 --- a/api/devops/devops_client/database/get_databases_parameters.go +++ b/api/devops/devops_client/database/get_databases_parameters.go @@ -68,13 +68,13 @@ type GetDatabasesParams struct { /* CompanyID. - Taxnexus Record Id of a Company + Record Id of a Company */ CompanyID *string /* DatabaseID. - Taxnexus Record Id of a Database + Record Id of a Database */ DatabaseID *string diff --git a/api/devops/devops_client/database/get_databases_responses.go b/api/devops/devops_client/database/get_databases_responses.go index 1ac09be..2ce03d6 100644 --- a/api/devops/devops_client/database/get_databases_responses.go +++ b/api/devops/devops_client/database/get_databases_responses.go @@ -76,7 +76,7 @@ func NewGetDatabasesOK() *GetDatabasesOK { /* GetDatabasesOK describes a response with status code 200, with default header values. -Taxnexus Response with Database objects +Response with Database objects */ type GetDatabasesOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/database/post_databases_responses.go b/api/devops/devops_client/database/post_databases_responses.go index 44fd2d1..b0d800a 100644 --- a/api/devops/devops_client/database/post_databases_responses.go +++ b/api/devops/devops_client/database/post_databases_responses.go @@ -76,7 +76,7 @@ func NewPostDatabasesOK() *PostDatabasesOK { /* PostDatabasesOK describes a response with status code 200, with default header values. -Taxnexus Response with Database objects +Response with Database objects */ type PostDatabasesOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/database/put_databases_responses.go b/api/devops/devops_client/database/put_databases_responses.go index 4fc4cd7..62d9d98 100644 --- a/api/devops/devops_client/database/put_databases_responses.go +++ b/api/devops/devops_client/database/put_databases_responses.go @@ -76,7 +76,7 @@ func NewPutDatabasesOK() *PutDatabasesOK { /* PutDatabasesOK describes a response with status code 200, with default header values. -Taxnexus Response with Database objects +Response with Database objects */ type PutDatabasesOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/template/get_template_parameters.go b/api/devops/devops_client/template/get_template_parameters.go index 3352bb1..2efac73 100644 --- a/api/devops/devops_client/template/get_template_parameters.go +++ b/api/devops/devops_client/template/get_template_parameters.go @@ -67,7 +67,7 @@ type GetTemplateParams struct { /* TemplateIDPath. - Taxnexus Record Id of a Template + Record Id of a Template */ TemplateIDPath string diff --git a/api/devops/devops_client/template/get_templates_responses.go b/api/devops/devops_client/template/get_templates_responses.go index ea639f7..5f42221 100644 --- a/api/devops/devops_client/template/get_templates_responses.go +++ b/api/devops/devops_client/template/get_templates_responses.go @@ -76,7 +76,7 @@ func NewGetTemplatesOK() *GetTemplatesOK { /* GetTemplatesOK describes a response with status code 200, with default header values. -Taxnexus Response with Template objects +Response with Template objects */ type GetTemplatesOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/template/post_templates_responses.go b/api/devops/devops_client/template/post_templates_responses.go index 6398a64..4e3b3e3 100644 --- a/api/devops/devops_client/template/post_templates_responses.go +++ b/api/devops/devops_client/template/post_templates_responses.go @@ -76,7 +76,7 @@ func NewPostTemplatesOK() *PostTemplatesOK { /* PostTemplatesOK describes a response with status code 200, with default header values. -Taxnexus Response with Template objects +Response with Template objects */ type PostTemplatesOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/tenant/get_tenant_parameters.go b/api/devops/devops_client/tenant/get_tenant_parameters.go index f6fd369..8ff7ca2 100644 --- a/api/devops/devops_client/tenant/get_tenant_parameters.go +++ b/api/devops/devops_client/tenant/get_tenant_parameters.go @@ -67,7 +67,7 @@ type GetTenantParams struct { /* TenantIDPath. - Taxnexus Record Id of a Tenant + Record Id of a Tenant */ TenantIDPath string diff --git a/api/devops/devops_client/tenant/get_tenants_parameters.go b/api/devops/devops_client/tenant/get_tenants_parameters.go index 5073137..f831cf5 100644 --- a/api/devops/devops_client/tenant/get_tenants_parameters.go +++ b/api/devops/devops_client/tenant/get_tenants_parameters.go @@ -68,7 +68,7 @@ type GetTenantsParams struct { /* CompanyID. - Taxnexus Record Id of a Company + Record Id of a Company */ CompanyID *string @@ -90,13 +90,13 @@ type GetTenantsParams struct { /* TaxnexusAccount. - Taxnexus Account of a Tenant + Account of a Tenant */ TaxnexusAccount *string /* TenantID. - Taxnexus Record Id of a Tenant + Record Id of a Tenant */ TenantID *string diff --git a/api/devops/devops_client/tenant/get_tenants_responses.go b/api/devops/devops_client/tenant/get_tenants_responses.go index 08d8974..82e0693 100644 --- a/api/devops/devops_client/tenant/get_tenants_responses.go +++ b/api/devops/devops_client/tenant/get_tenants_responses.go @@ -76,7 +76,7 @@ func NewGetTenantsOK() *GetTenantsOK { /* GetTenantsOK describes a response with status code 200, with default header values. -Taxnexus Response with Tenant objects +Response with Tenant objects */ type GetTenantsOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/tenant/post_tenants_responses.go b/api/devops/devops_client/tenant/post_tenants_responses.go index ad53ac7..3f96e77 100644 --- a/api/devops/devops_client/tenant/post_tenants_responses.go +++ b/api/devops/devops_client/tenant/post_tenants_responses.go @@ -76,7 +76,7 @@ func NewPostTenantsOK() *PostTenantsOK { /* PostTenantsOK describes a response with status code 200, with default header values. -Taxnexus Response with Tenant objects +Response with Tenant objects */ type PostTenantsOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/tenant/put_tenants_responses.go b/api/devops/devops_client/tenant/put_tenants_responses.go index 7f34c28..5710972 100644 --- a/api/devops/devops_client/tenant/put_tenants_responses.go +++ b/api/devops/devops_client/tenant/put_tenants_responses.go @@ -76,7 +76,7 @@ func NewPutTenantsOK() *PutTenantsOK { /* PutTenantsOK describes a response with status code 200, with default header values. -Taxnexus Response with Tenant objects +Response with Tenant objects */ type PutTenantsOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/user/get_user_parameters.go b/api/devops/devops_client/user/get_user_parameters.go index 538545b..1fb79e2 100644 --- a/api/devops/devops_client/user/get_user_parameters.go +++ b/api/devops/devops_client/user/get_user_parameters.go @@ -67,7 +67,7 @@ type GetUserParams struct { /* UserIDPath. - Taxnexus Record Id of a User + Record Id of a User */ UserIDPath string diff --git a/api/devops/devops_client/user/get_users_parameters.go b/api/devops/devops_client/user/get_users_parameters.go index 3557138..8fe7f79 100644 --- a/api/devops/devops_client/user/get_users_parameters.go +++ b/api/devops/devops_client/user/get_users_parameters.go @@ -68,7 +68,7 @@ type GetUsersParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string @@ -80,7 +80,7 @@ type GetUsersParams struct { /* ContactID. - Taxnexus Record Id of a Contact + Record Id of a Contact */ ContactID *string @@ -108,7 +108,7 @@ type GetUsersParams struct { /* UserID. - Taxnexus User ID (unique) + User ID (unique) */ UserID *string diff --git a/api/devops/devops_client/user/get_users_responses.go b/api/devops/devops_client/user/get_users_responses.go index 1ce4b3e..357cdd1 100644 --- a/api/devops/devops_client/user/get_users_responses.go +++ b/api/devops/devops_client/user/get_users_responses.go @@ -76,7 +76,7 @@ func NewGetUsersOK() *GetUsersOK { /* GetUsersOK describes a response with status code 200, with default header values. -Taxnexus Response with User objects +Response with User objects */ type GetUsersOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/user/post_users_responses.go b/api/devops/devops_client/user/post_users_responses.go index 2cc1ef7..084a417 100644 --- a/api/devops/devops_client/user/post_users_responses.go +++ b/api/devops/devops_client/user/post_users_responses.go @@ -76,7 +76,7 @@ func NewPostUsersOK() *PostUsersOK { /* PostUsersOK describes a response with status code 200, with default header values. -Taxnexus Response with User objects +Response with User objects */ type PostUsersOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_client/user/put_users_responses.go b/api/devops/devops_client/user/put_users_responses.go index f8a99c9..bf0e975 100644 --- a/api/devops/devops_client/user/put_users_responses.go +++ b/api/devops/devops_client/user/put_users_responses.go @@ -76,7 +76,7 @@ func NewPutUsersOK() *PutUsersOK { /* PutUsersOK describes a response with status code 200, with default header values. -Taxnexus Response with User objects +Response with User objects */ type PutUsersOK struct { AccessControlAllowOrigin string diff --git a/api/devops/devops_models/cluster.go b/api/devops/devops_models/cluster.go index a5cfd76..a1c0af6 100644 --- a/api/devops/devops_models/cluster.go +++ b/api/devops/devops_models/cluster.go @@ -36,7 +36,7 @@ type Cluster struct { // Gateway Gateway string `json:"Gateway,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // IP Address diff --git a/api/devops/devops_models/request_meta.go b/api/devops/devops_models/request_meta.go index f806956..b01b2d1 100644 --- a/api/devops/devops_models/request_meta.go +++ b/api/devops/devops_models/request_meta.go @@ -23,7 +23,7 @@ import ( // swagger:model RequestMeta type RequestMeta struct { - // Taxnexus Account Number of the Reseller or OEM + // Account Number of the Reseller or OEM // Required: true TaxnexusAccount *string `json:"TaxnexusAccount"` } diff --git a/api/devops/devops_models/response_meta.go b/api/devops/devops_models/response_meta.go index dda6e3a..3f8dab8 100644 --- a/api/devops/devops_models/response_meta.go +++ b/api/devops/devops_models/response_meta.go @@ -55,7 +55,7 @@ type ResponseMeta struct { // Backend Server Timestamp ServerTimestamp string `json:"ServerTimestamp,omitempty"` - // Taxnexus Account Number used for recording transactions + // Account Number used for recording transactions TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` } diff --git a/api/devops/devops_models/template.go b/api/devops/devops_models/template.go index ddc5553..dfe7e40 100644 --- a/api/devops/devops_models/template.go +++ b/api/devops/devops_models/template.go @@ -37,7 +37,7 @@ type Template struct { // Format: byte HTML strfmt.Base64 `json:"HTML,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Active? diff --git a/api/devops/devops_models/tenant.go b/api/devops/devops_models/tenant.go index 16a3276..7282369 100644 --- a/api/devops/devops_models/tenant.go +++ b/api/devops/devops_models/tenant.go @@ -18,7 +18,7 @@ import ( "github.com/go-openapi/swag" ) -// Tenant Taxnexus Account Tenant +// Tenant Account Tenant // // swagger:model Tenant type Tenant struct { diff --git a/api/devops/devops_models/tenant_user.go b/api/devops/devops_models/tenant_user.go index c363644..adf43b5 100644 --- a/api/devops/devops_models/tenant_user.go +++ b/api/devops/devops_models/tenant_user.go @@ -36,7 +36,7 @@ type TenantUser struct { // Contact ID ContactID string `json:"ContactID,omitempty"` - // Taxnexus Account + // Account TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` // Tenant active? diff --git a/api/devops/devops_models/user.go b/api/devops/devops_models/user.go index 31939f9..4606ace 100644 --- a/api/devops/devops_models/user.go +++ b/api/devops/devops_models/user.go @@ -95,7 +95,7 @@ type User struct { // Full Photo URL FullPhotoURL string `json:"FullPhotoURL,omitempty"` - // Taxnexus ID + // Record ID ID string `json:"ID,omitempty"` // Active @@ -170,7 +170,7 @@ type User struct { // The time day starts StartOfDay string `json:"StartOfDay,omitempty"` - // Taxnexus Account + // Account TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` // Tenant ID associated with this user diff --git a/api/devops/devops_models/user_role.go b/api/devops/devops_models/user_role.go index ae9805b..295d289 100644 --- a/api/devops/devops_models/user_role.go +++ b/api/devops/devops_models/user_role.go @@ -45,7 +45,7 @@ type UserRole struct { // Role Name RoleName string `json:"RoleName,omitempty"` - // Taxnexus Account Number + // Account Number TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` // User Email Address diff --git a/api/auth0/auth0_client/auth0_client.go b/api/members/members_client/members_client.go similarity index 71% rename from api/auth0/auth0_client/auth0_client.go rename to api/members/members_client/members_client.go index 605eab5..baa3a62 100644 --- a/api/auth0/auth0_client/auth0_client.go +++ b/api/members/members_client/members_client.go @@ -4,44 +4,41 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package auth0_client +package members_client // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( + "code.tnxs.net/vernonkeenan/lib/api/members/members_client/operations" "github.com/go-openapi/runtime" httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_client/auth" - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_client/role" - "code.tnxs.net/vernonkeenan/lib/api/auth0/auth0_client/user" ) -// Default auth0 HTTP client. +// Default members HTTP client. var Default = NewHTTPClient(nil) const ( // DefaultHost is the default Host // found in Meta (info) section of spec file - DefaultHost string = "taxnexus.auth0.com" + DefaultHost string = "members.vernonkeenan.com:8080" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file - DefaultBasePath string = "/" + DefaultBasePath string = "/v1" ) // DefaultSchemes are the default schemes found in Meta (info) section of spec file -var DefaultSchemes = []string{"https"} +var DefaultSchemes = []string{"http"} -// NewHTTPClient creates a new auth0 HTTP client. -func NewHTTPClient(formats strfmt.Registry) *Auth0 { +// NewHTTPClient creates a new members HTTP client. +func NewHTTPClient(formats strfmt.Registry) *Members { return NewHTTPClientWithConfig(formats, nil) } -// NewHTTPClientWithConfig creates a new auth0 HTTP client, +// NewHTTPClientWithConfig creates a new members HTTP client, // using a customizable transport config. -func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Auth0 { +func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Members { // ensure nullable parameters have default if cfg == nil { cfg = DefaultTransportConfig() @@ -52,18 +49,16 @@ func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Aut return New(transport, formats) } -// New creates a new auth0 client -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Auth0 { +// New creates a new members client +func New(transport runtime.ClientTransport, formats strfmt.Registry) *Members { // ensure nullable parameters have default if formats == nil { formats = strfmt.Default } - cli := new(Auth0) + cli := new(Members) cli.Transport = transport - cli.Auth = auth.New(transport, formats) - cli.Role = role.New(transport, formats) - cli.User = user.New(transport, formats) + cli.Operations = operations.New(transport, formats) return cli } @@ -106,21 +101,15 @@ func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { return cfg } -// Auth0 is a client for auth0 -type Auth0 struct { - Auth auth.ClientService - - Role role.ClientService - - User user.ClientService +// Members is a client for members +type Members struct { + Operations operations.ClientService Transport runtime.ClientTransport } // SetTransport changes the transport on the client and all its subresources -func (c *Auth0) SetTransport(transport runtime.ClientTransport) { +func (c *Members) SetTransport(transport runtime.ClientTransport) { c.Transport = transport - c.Auth.SetTransport(transport) - c.Role.SetTransport(transport) - c.User.SetTransport(transport) + c.Operations.SetTransport(transport) } diff --git a/api/members/members_client/operations/create_attendee_parameters.go b/api/members/members_client/operations/create_attendee_parameters.go new file mode 100644 index 0000000..e802bdd --- /dev/null +++ b/api/members/members_client/operations/create_attendee_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateAttendeeParams creates a new CreateAttendeeParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateAttendeeParams() *CreateAttendeeParams { + return &CreateAttendeeParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateAttendeeParamsWithTimeout creates a new CreateAttendeeParams object +// with the ability to set a timeout on a request. +func NewCreateAttendeeParamsWithTimeout(timeout time.Duration) *CreateAttendeeParams { + return &CreateAttendeeParams{ + timeout: timeout, + } +} + +// NewCreateAttendeeParamsWithContext creates a new CreateAttendeeParams object +// with the ability to set a context for a request. +func NewCreateAttendeeParamsWithContext(ctx context.Context) *CreateAttendeeParams { + return &CreateAttendeeParams{ + Context: ctx, + } +} + +// NewCreateAttendeeParamsWithHTTPClient creates a new CreateAttendeeParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateAttendeeParamsWithHTTPClient(client *http.Client) *CreateAttendeeParams { + return &CreateAttendeeParams{ + HTTPClient: client, + } +} + +/* +CreateAttendeeParams contains all the parameters to send to the API endpoint + + for the create attendee operation. + + Typically these are written to a http.Request. +*/ +type CreateAttendeeParams struct { + + /* AttendeeRequest. + + An array of new Attendee records + */ + AttendeeRequest *members_models.AttendeeRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create attendee params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateAttendeeParams) WithDefaults() *CreateAttendeeParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create attendee params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateAttendeeParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create attendee params +func (o *CreateAttendeeParams) WithTimeout(timeout time.Duration) *CreateAttendeeParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create attendee params +func (o *CreateAttendeeParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create attendee params +func (o *CreateAttendeeParams) WithContext(ctx context.Context) *CreateAttendeeParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create attendee params +func (o *CreateAttendeeParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create attendee params +func (o *CreateAttendeeParams) WithHTTPClient(client *http.Client) *CreateAttendeeParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create attendee params +func (o *CreateAttendeeParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAttendeeRequest adds the attendeeRequest to the create attendee params +func (o *CreateAttendeeParams) WithAttendeeRequest(attendeeRequest *members_models.AttendeeRequest) *CreateAttendeeParams { + o.SetAttendeeRequest(attendeeRequest) + return o +} + +// SetAttendeeRequest adds the attendeeRequest to the create attendee params +func (o *CreateAttendeeParams) SetAttendeeRequest(attendeeRequest *members_models.AttendeeRequest) { + o.AttendeeRequest = attendeeRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateAttendeeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.AttendeeRequest != nil { + if err := r.SetBodyParam(o.AttendeeRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_attendee_responses.go b/api/members/members_client/operations/create_attendee_responses.go new file mode 100644 index 0000000..2665106 --- /dev/null +++ b/api/members/members_client/operations/create_attendee_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateAttendeeReader is a Reader for the CreateAttendee structure. +type CreateAttendeeReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateAttendeeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateAttendeeCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateAttendeeCreated creates a CreateAttendeeCreated with default headers values +func NewCreateAttendeeCreated() *CreateAttendeeCreated { + return &CreateAttendeeCreated{} +} + +/* +CreateAttendeeCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateAttendeeCreated struct { +} + +// IsSuccess returns true when this create attendee created response has a 2xx status code +func (o *CreateAttendeeCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create attendee created response has a 3xx status code +func (o *CreateAttendeeCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create attendee created response has a 4xx status code +func (o *CreateAttendeeCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create attendee created response has a 5xx status code +func (o *CreateAttendeeCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create attendee created response a status code equal to that given +func (o *CreateAttendeeCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create attendee created response +func (o *CreateAttendeeCreated) Code() int { + return 201 +} + +func (o *CreateAttendeeCreated) Error() string { + return fmt.Sprintf("[POST /attendees][%d] createAttendeeCreated ", 201) +} + +func (o *CreateAttendeeCreated) String() string { + return fmt.Sprintf("[POST /attendees][%d] createAttendeeCreated ", 201) +} + +func (o *CreateAttendeeCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_certificate_parameters.go b/api/members/members_client/operations/create_certificate_parameters.go new file mode 100644 index 0000000..2b9dc50 --- /dev/null +++ b/api/members/members_client/operations/create_certificate_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateCertificateParams creates a new CreateCertificateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateCertificateParams() *CreateCertificateParams { + return &CreateCertificateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateCertificateParamsWithTimeout creates a new CreateCertificateParams object +// with the ability to set a timeout on a request. +func NewCreateCertificateParamsWithTimeout(timeout time.Duration) *CreateCertificateParams { + return &CreateCertificateParams{ + timeout: timeout, + } +} + +// NewCreateCertificateParamsWithContext creates a new CreateCertificateParams object +// with the ability to set a context for a request. +func NewCreateCertificateParamsWithContext(ctx context.Context) *CreateCertificateParams { + return &CreateCertificateParams{ + Context: ctx, + } +} + +// NewCreateCertificateParamsWithHTTPClient creates a new CreateCertificateParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateCertificateParamsWithHTTPClient(client *http.Client) *CreateCertificateParams { + return &CreateCertificateParams{ + HTTPClient: client, + } +} + +/* +CreateCertificateParams contains all the parameters to send to the API endpoint + + for the create certificate operation. + + Typically these are written to a http.Request. +*/ +type CreateCertificateParams struct { + + /* CertificateRequest. + + An array of new Certificate records + */ + CertificateRequest *members_models.CertificateRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCertificateParams) WithDefaults() *CreateCertificateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCertificateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create certificate params +func (o *CreateCertificateParams) WithTimeout(timeout time.Duration) *CreateCertificateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create certificate params +func (o *CreateCertificateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create certificate params +func (o *CreateCertificateParams) WithContext(ctx context.Context) *CreateCertificateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create certificate params +func (o *CreateCertificateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create certificate params +func (o *CreateCertificateParams) WithHTTPClient(client *http.Client) *CreateCertificateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create certificate params +func (o *CreateCertificateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithCertificateRequest adds the certificateRequest to the create certificate params +func (o *CreateCertificateParams) WithCertificateRequest(certificateRequest *members_models.CertificateRequest) *CreateCertificateParams { + o.SetCertificateRequest(certificateRequest) + return o +} + +// SetCertificateRequest adds the certificateRequest to the create certificate params +func (o *CreateCertificateParams) SetCertificateRequest(certificateRequest *members_models.CertificateRequest) { + o.CertificateRequest = certificateRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateCertificateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.CertificateRequest != nil { + if err := r.SetBodyParam(o.CertificateRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_certificate_responses.go b/api/members/members_client/operations/create_certificate_responses.go new file mode 100644 index 0000000..fe91cd8 --- /dev/null +++ b/api/members/members_client/operations/create_certificate_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateCertificateReader is a Reader for the CreateCertificate structure. +type CreateCertificateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateCertificateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateCertificateCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateCertificateCreated creates a CreateCertificateCreated with default headers values +func NewCreateCertificateCreated() *CreateCertificateCreated { + return &CreateCertificateCreated{} +} + +/* +CreateCertificateCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateCertificateCreated struct { +} + +// IsSuccess returns true when this create certificate created response has a 2xx status code +func (o *CreateCertificateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create certificate created response has a 3xx status code +func (o *CreateCertificateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create certificate created response has a 4xx status code +func (o *CreateCertificateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create certificate created response has a 5xx status code +func (o *CreateCertificateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create certificate created response a status code equal to that given +func (o *CreateCertificateCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create certificate created response +func (o *CreateCertificateCreated) Code() int { + return 201 +} + +func (o *CreateCertificateCreated) Error() string { + return fmt.Sprintf("[POST /certificates][%d] createCertificateCreated ", 201) +} + +func (o *CreateCertificateCreated) String() string { + return fmt.Sprintf("[POST /certificates][%d] createCertificateCreated ", 201) +} + +func (o *CreateCertificateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_course_lesson_parameters.go b/api/members/members_client/operations/create_course_lesson_parameters.go new file mode 100644 index 0000000..62e66d1 --- /dev/null +++ b/api/members/members_client/operations/create_course_lesson_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateCourseLessonParams creates a new CreateCourseLessonParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateCourseLessonParams() *CreateCourseLessonParams { + return &CreateCourseLessonParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateCourseLessonParamsWithTimeout creates a new CreateCourseLessonParams object +// with the ability to set a timeout on a request. +func NewCreateCourseLessonParamsWithTimeout(timeout time.Duration) *CreateCourseLessonParams { + return &CreateCourseLessonParams{ + timeout: timeout, + } +} + +// NewCreateCourseLessonParamsWithContext creates a new CreateCourseLessonParams object +// with the ability to set a context for a request. +func NewCreateCourseLessonParamsWithContext(ctx context.Context) *CreateCourseLessonParams { + return &CreateCourseLessonParams{ + Context: ctx, + } +} + +// NewCreateCourseLessonParamsWithHTTPClient creates a new CreateCourseLessonParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateCourseLessonParamsWithHTTPClient(client *http.Client) *CreateCourseLessonParams { + return &CreateCourseLessonParams{ + HTTPClient: client, + } +} + +/* +CreateCourseLessonParams contains all the parameters to send to the API endpoint + + for the create course lesson operation. + + Typically these are written to a http.Request. +*/ +type CreateCourseLessonParams struct { + + /* CourselessonRequest. + + An array of new CourseLesson records + */ + CourselessonRequest *members_models.CourseLessonRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create course lesson params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCourseLessonParams) WithDefaults() *CreateCourseLessonParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create course lesson params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCourseLessonParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create course lesson params +func (o *CreateCourseLessonParams) WithTimeout(timeout time.Duration) *CreateCourseLessonParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create course lesson params +func (o *CreateCourseLessonParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create course lesson params +func (o *CreateCourseLessonParams) WithContext(ctx context.Context) *CreateCourseLessonParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create course lesson params +func (o *CreateCourseLessonParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create course lesson params +func (o *CreateCourseLessonParams) WithHTTPClient(client *http.Client) *CreateCourseLessonParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create course lesson params +func (o *CreateCourseLessonParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithCourselessonRequest adds the courselessonRequest to the create course lesson params +func (o *CreateCourseLessonParams) WithCourselessonRequest(courselessonRequest *members_models.CourseLessonRequest) *CreateCourseLessonParams { + o.SetCourselessonRequest(courselessonRequest) + return o +} + +// SetCourselessonRequest adds the courselessonRequest to the create course lesson params +func (o *CreateCourseLessonParams) SetCourselessonRequest(courselessonRequest *members_models.CourseLessonRequest) { + o.CourselessonRequest = courselessonRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateCourseLessonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.CourselessonRequest != nil { + if err := r.SetBodyParam(o.CourselessonRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_course_lesson_responses.go b/api/members/members_client/operations/create_course_lesson_responses.go new file mode 100644 index 0000000..b5ecb7f --- /dev/null +++ b/api/members/members_client/operations/create_course_lesson_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateCourseLessonReader is a Reader for the CreateCourseLesson structure. +type CreateCourseLessonReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateCourseLessonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateCourseLessonCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateCourseLessonCreated creates a CreateCourseLessonCreated with default headers values +func NewCreateCourseLessonCreated() *CreateCourseLessonCreated { + return &CreateCourseLessonCreated{} +} + +/* +CreateCourseLessonCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateCourseLessonCreated struct { +} + +// IsSuccess returns true when this create course lesson created response has a 2xx status code +func (o *CreateCourseLessonCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create course lesson created response has a 3xx status code +func (o *CreateCourseLessonCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create course lesson created response has a 4xx status code +func (o *CreateCourseLessonCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create course lesson created response has a 5xx status code +func (o *CreateCourseLessonCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create course lesson created response a status code equal to that given +func (o *CreateCourseLessonCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create course lesson created response +func (o *CreateCourseLessonCreated) Code() int { + return 201 +} + +func (o *CreateCourseLessonCreated) Error() string { + return fmt.Sprintf("[POST /courselessons][%d] createCourseLessonCreated ", 201) +} + +func (o *CreateCourseLessonCreated) String() string { + return fmt.Sprintf("[POST /courselessons][%d] createCourseLessonCreated ", 201) +} + +func (o *CreateCourseLessonCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_course_parameters.go b/api/members/members_client/operations/create_course_parameters.go new file mode 100644 index 0000000..3112852 --- /dev/null +++ b/api/members/members_client/operations/create_course_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateCourseParams creates a new CreateCourseParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateCourseParams() *CreateCourseParams { + return &CreateCourseParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateCourseParamsWithTimeout creates a new CreateCourseParams object +// with the ability to set a timeout on a request. +func NewCreateCourseParamsWithTimeout(timeout time.Duration) *CreateCourseParams { + return &CreateCourseParams{ + timeout: timeout, + } +} + +// NewCreateCourseParamsWithContext creates a new CreateCourseParams object +// with the ability to set a context for a request. +func NewCreateCourseParamsWithContext(ctx context.Context) *CreateCourseParams { + return &CreateCourseParams{ + Context: ctx, + } +} + +// NewCreateCourseParamsWithHTTPClient creates a new CreateCourseParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateCourseParamsWithHTTPClient(client *http.Client) *CreateCourseParams { + return &CreateCourseParams{ + HTTPClient: client, + } +} + +/* +CreateCourseParams contains all the parameters to send to the API endpoint + + for the create course operation. + + Typically these are written to a http.Request. +*/ +type CreateCourseParams struct { + + /* CourseRequest. + + An array of new Course records + */ + CourseRequest *members_models.CourseRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create course params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCourseParams) WithDefaults() *CreateCourseParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create course params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCourseParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create course params +func (o *CreateCourseParams) WithTimeout(timeout time.Duration) *CreateCourseParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create course params +func (o *CreateCourseParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create course params +func (o *CreateCourseParams) WithContext(ctx context.Context) *CreateCourseParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create course params +func (o *CreateCourseParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create course params +func (o *CreateCourseParams) WithHTTPClient(client *http.Client) *CreateCourseParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create course params +func (o *CreateCourseParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithCourseRequest adds the courseRequest to the create course params +func (o *CreateCourseParams) WithCourseRequest(courseRequest *members_models.CourseRequest) *CreateCourseParams { + o.SetCourseRequest(courseRequest) + return o +} + +// SetCourseRequest adds the courseRequest to the create course params +func (o *CreateCourseParams) SetCourseRequest(courseRequest *members_models.CourseRequest) { + o.CourseRequest = courseRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateCourseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.CourseRequest != nil { + if err := r.SetBodyParam(o.CourseRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_course_responses.go b/api/members/members_client/operations/create_course_responses.go new file mode 100644 index 0000000..41d3894 --- /dev/null +++ b/api/members/members_client/operations/create_course_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateCourseReader is a Reader for the CreateCourse structure. +type CreateCourseReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateCourseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateCourseCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateCourseCreated creates a CreateCourseCreated with default headers values +func NewCreateCourseCreated() *CreateCourseCreated { + return &CreateCourseCreated{} +} + +/* +CreateCourseCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateCourseCreated struct { +} + +// IsSuccess returns true when this create course created response has a 2xx status code +func (o *CreateCourseCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create course created response has a 3xx status code +func (o *CreateCourseCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create course created response has a 4xx status code +func (o *CreateCourseCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create course created response has a 5xx status code +func (o *CreateCourseCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create course created response a status code equal to that given +func (o *CreateCourseCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create course created response +func (o *CreateCourseCreated) Code() int { + return 201 +} + +func (o *CreateCourseCreated) Error() string { + return fmt.Sprintf("[POST /courses][%d] createCourseCreated ", 201) +} + +func (o *CreateCourseCreated) String() string { + return fmt.Sprintf("[POST /courses][%d] createCourseCreated ", 201) +} + +func (o *CreateCourseCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_course_section_parameters.go b/api/members/members_client/operations/create_course_section_parameters.go new file mode 100644 index 0000000..1a6d9bd --- /dev/null +++ b/api/members/members_client/operations/create_course_section_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateCourseSectionParams creates a new CreateCourseSectionParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateCourseSectionParams() *CreateCourseSectionParams { + return &CreateCourseSectionParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateCourseSectionParamsWithTimeout creates a new CreateCourseSectionParams object +// with the ability to set a timeout on a request. +func NewCreateCourseSectionParamsWithTimeout(timeout time.Duration) *CreateCourseSectionParams { + return &CreateCourseSectionParams{ + timeout: timeout, + } +} + +// NewCreateCourseSectionParamsWithContext creates a new CreateCourseSectionParams object +// with the ability to set a context for a request. +func NewCreateCourseSectionParamsWithContext(ctx context.Context) *CreateCourseSectionParams { + return &CreateCourseSectionParams{ + Context: ctx, + } +} + +// NewCreateCourseSectionParamsWithHTTPClient creates a new CreateCourseSectionParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateCourseSectionParamsWithHTTPClient(client *http.Client) *CreateCourseSectionParams { + return &CreateCourseSectionParams{ + HTTPClient: client, + } +} + +/* +CreateCourseSectionParams contains all the parameters to send to the API endpoint + + for the create course section operation. + + Typically these are written to a http.Request. +*/ +type CreateCourseSectionParams struct { + + /* CoursesectionRequest. + + An array of new CourseSection records + */ + CoursesectionRequest *members_models.CourseSectionRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create course section params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCourseSectionParams) WithDefaults() *CreateCourseSectionParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create course section params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateCourseSectionParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create course section params +func (o *CreateCourseSectionParams) WithTimeout(timeout time.Duration) *CreateCourseSectionParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create course section params +func (o *CreateCourseSectionParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create course section params +func (o *CreateCourseSectionParams) WithContext(ctx context.Context) *CreateCourseSectionParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create course section params +func (o *CreateCourseSectionParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create course section params +func (o *CreateCourseSectionParams) WithHTTPClient(client *http.Client) *CreateCourseSectionParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create course section params +func (o *CreateCourseSectionParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithCoursesectionRequest adds the coursesectionRequest to the create course section params +func (o *CreateCourseSectionParams) WithCoursesectionRequest(coursesectionRequest *members_models.CourseSectionRequest) *CreateCourseSectionParams { + o.SetCoursesectionRequest(coursesectionRequest) + return o +} + +// SetCoursesectionRequest adds the coursesectionRequest to the create course section params +func (o *CreateCourseSectionParams) SetCoursesectionRequest(coursesectionRequest *members_models.CourseSectionRequest) { + o.CoursesectionRequest = coursesectionRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateCourseSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.CoursesectionRequest != nil { + if err := r.SetBodyParam(o.CoursesectionRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_course_section_responses.go b/api/members/members_client/operations/create_course_section_responses.go new file mode 100644 index 0000000..0c68a17 --- /dev/null +++ b/api/members/members_client/operations/create_course_section_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateCourseSectionReader is a Reader for the CreateCourseSection structure. +type CreateCourseSectionReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateCourseSectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateCourseSectionCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateCourseSectionCreated creates a CreateCourseSectionCreated with default headers values +func NewCreateCourseSectionCreated() *CreateCourseSectionCreated { + return &CreateCourseSectionCreated{} +} + +/* +CreateCourseSectionCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateCourseSectionCreated struct { +} + +// IsSuccess returns true when this create course section created response has a 2xx status code +func (o *CreateCourseSectionCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create course section created response has a 3xx status code +func (o *CreateCourseSectionCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create course section created response has a 4xx status code +func (o *CreateCourseSectionCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create course section created response has a 5xx status code +func (o *CreateCourseSectionCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create course section created response a status code equal to that given +func (o *CreateCourseSectionCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create course section created response +func (o *CreateCourseSectionCreated) Code() int { + return 201 +} + +func (o *CreateCourseSectionCreated) Error() string { + return fmt.Sprintf("[POST /coursesections][%d] createCourseSectionCreated ", 201) +} + +func (o *CreateCourseSectionCreated) String() string { + return fmt.Sprintf("[POST /coursesections][%d] createCourseSectionCreated ", 201) +} + +func (o *CreateCourseSectionCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_enrollment_parameters.go b/api/members/members_client/operations/create_enrollment_parameters.go new file mode 100644 index 0000000..f61c743 --- /dev/null +++ b/api/members/members_client/operations/create_enrollment_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateEnrollmentParams creates a new CreateEnrollmentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateEnrollmentParams() *CreateEnrollmentParams { + return &CreateEnrollmentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateEnrollmentParamsWithTimeout creates a new CreateEnrollmentParams object +// with the ability to set a timeout on a request. +func NewCreateEnrollmentParamsWithTimeout(timeout time.Duration) *CreateEnrollmentParams { + return &CreateEnrollmentParams{ + timeout: timeout, + } +} + +// NewCreateEnrollmentParamsWithContext creates a new CreateEnrollmentParams object +// with the ability to set a context for a request. +func NewCreateEnrollmentParamsWithContext(ctx context.Context) *CreateEnrollmentParams { + return &CreateEnrollmentParams{ + Context: ctx, + } +} + +// NewCreateEnrollmentParamsWithHTTPClient creates a new CreateEnrollmentParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateEnrollmentParamsWithHTTPClient(client *http.Client) *CreateEnrollmentParams { + return &CreateEnrollmentParams{ + HTTPClient: client, + } +} + +/* +CreateEnrollmentParams contains all the parameters to send to the API endpoint + + for the create enrollment operation. + + Typically these are written to a http.Request. +*/ +type CreateEnrollmentParams struct { + + /* EnrollmentRequest. + + An array of new Enrollment records + */ + EnrollmentRequest *members_models.EnrollmentRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create enrollment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEnrollmentParams) WithDefaults() *CreateEnrollmentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create enrollment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEnrollmentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create enrollment params +func (o *CreateEnrollmentParams) WithTimeout(timeout time.Duration) *CreateEnrollmentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create enrollment params +func (o *CreateEnrollmentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create enrollment params +func (o *CreateEnrollmentParams) WithContext(ctx context.Context) *CreateEnrollmentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create enrollment params +func (o *CreateEnrollmentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create enrollment params +func (o *CreateEnrollmentParams) WithHTTPClient(client *http.Client) *CreateEnrollmentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create enrollment params +func (o *CreateEnrollmentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithEnrollmentRequest adds the enrollmentRequest to the create enrollment params +func (o *CreateEnrollmentParams) WithEnrollmentRequest(enrollmentRequest *members_models.EnrollmentRequest) *CreateEnrollmentParams { + o.SetEnrollmentRequest(enrollmentRequest) + return o +} + +// SetEnrollmentRequest adds the enrollmentRequest to the create enrollment params +func (o *CreateEnrollmentParams) SetEnrollmentRequest(enrollmentRequest *members_models.EnrollmentRequest) { + o.EnrollmentRequest = enrollmentRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.EnrollmentRequest != nil { + if err := r.SetBodyParam(o.EnrollmentRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_enrollment_responses.go b/api/members/members_client/operations/create_enrollment_responses.go new file mode 100644 index 0000000..3637194 --- /dev/null +++ b/api/members/members_client/operations/create_enrollment_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateEnrollmentReader is a Reader for the CreateEnrollment structure. +type CreateEnrollmentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateEnrollmentCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateEnrollmentCreated creates a CreateEnrollmentCreated with default headers values +func NewCreateEnrollmentCreated() *CreateEnrollmentCreated { + return &CreateEnrollmentCreated{} +} + +/* +CreateEnrollmentCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateEnrollmentCreated struct { +} + +// IsSuccess returns true when this create enrollment created response has a 2xx status code +func (o *CreateEnrollmentCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create enrollment created response has a 3xx status code +func (o *CreateEnrollmentCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create enrollment created response has a 4xx status code +func (o *CreateEnrollmentCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create enrollment created response has a 5xx status code +func (o *CreateEnrollmentCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create enrollment created response a status code equal to that given +func (o *CreateEnrollmentCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create enrollment created response +func (o *CreateEnrollmentCreated) Code() int { + return 201 +} + +func (o *CreateEnrollmentCreated) Error() string { + return fmt.Sprintf("[POST /enrollments][%d] createEnrollmentCreated ", 201) +} + +func (o *CreateEnrollmentCreated) String() string { + return fmt.Sprintf("[POST /enrollments][%d] createEnrollmentCreated ", 201) +} + +func (o *CreateEnrollmentCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_event_category_assignment_parameters.go b/api/members/members_client/operations/create_event_category_assignment_parameters.go new file mode 100644 index 0000000..00c7e57 --- /dev/null +++ b/api/members/members_client/operations/create_event_category_assignment_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateEventCategoryAssignmentParams creates a new CreateEventCategoryAssignmentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateEventCategoryAssignmentParams() *CreateEventCategoryAssignmentParams { + return &CreateEventCategoryAssignmentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateEventCategoryAssignmentParamsWithTimeout creates a new CreateEventCategoryAssignmentParams object +// with the ability to set a timeout on a request. +func NewCreateEventCategoryAssignmentParamsWithTimeout(timeout time.Duration) *CreateEventCategoryAssignmentParams { + return &CreateEventCategoryAssignmentParams{ + timeout: timeout, + } +} + +// NewCreateEventCategoryAssignmentParamsWithContext creates a new CreateEventCategoryAssignmentParams object +// with the ability to set a context for a request. +func NewCreateEventCategoryAssignmentParamsWithContext(ctx context.Context) *CreateEventCategoryAssignmentParams { + return &CreateEventCategoryAssignmentParams{ + Context: ctx, + } +} + +// NewCreateEventCategoryAssignmentParamsWithHTTPClient creates a new CreateEventCategoryAssignmentParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateEventCategoryAssignmentParamsWithHTTPClient(client *http.Client) *CreateEventCategoryAssignmentParams { + return &CreateEventCategoryAssignmentParams{ + HTTPClient: client, + } +} + +/* +CreateEventCategoryAssignmentParams contains all the parameters to send to the API endpoint + + for the create event category assignment operation. + + Typically these are written to a http.Request. +*/ +type CreateEventCategoryAssignmentParams struct { + + /* EventcategoryassignmentRequest. + + An array of new EventCategoryAssignment records + */ + EventcategoryassignmentRequest *members_models.EventCategoryAssignmentRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create event category assignment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEventCategoryAssignmentParams) WithDefaults() *CreateEventCategoryAssignmentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create event category assignment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEventCategoryAssignmentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) WithTimeout(timeout time.Duration) *CreateEventCategoryAssignmentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) WithContext(ctx context.Context) *CreateEventCategoryAssignmentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) WithHTTPClient(client *http.Client) *CreateEventCategoryAssignmentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithEventcategoryassignmentRequest adds the eventcategoryassignmentRequest to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) WithEventcategoryassignmentRequest(eventcategoryassignmentRequest *members_models.EventCategoryAssignmentRequest) *CreateEventCategoryAssignmentParams { + o.SetEventcategoryassignmentRequest(eventcategoryassignmentRequest) + return o +} + +// SetEventcategoryassignmentRequest adds the eventcategoryassignmentRequest to the create event category assignment params +func (o *CreateEventCategoryAssignmentParams) SetEventcategoryassignmentRequest(eventcategoryassignmentRequest *members_models.EventCategoryAssignmentRequest) { + o.EventcategoryassignmentRequest = eventcategoryassignmentRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateEventCategoryAssignmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.EventcategoryassignmentRequest != nil { + if err := r.SetBodyParam(o.EventcategoryassignmentRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_event_category_assignment_responses.go b/api/members/members_client/operations/create_event_category_assignment_responses.go new file mode 100644 index 0000000..0c747ee --- /dev/null +++ b/api/members/members_client/operations/create_event_category_assignment_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateEventCategoryAssignmentReader is a Reader for the CreateEventCategoryAssignment structure. +type CreateEventCategoryAssignmentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateEventCategoryAssignmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateEventCategoryAssignmentCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateEventCategoryAssignmentCreated creates a CreateEventCategoryAssignmentCreated with default headers values +func NewCreateEventCategoryAssignmentCreated() *CreateEventCategoryAssignmentCreated { + return &CreateEventCategoryAssignmentCreated{} +} + +/* +CreateEventCategoryAssignmentCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateEventCategoryAssignmentCreated struct { +} + +// IsSuccess returns true when this create event category assignment created response has a 2xx status code +func (o *CreateEventCategoryAssignmentCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create event category assignment created response has a 3xx status code +func (o *CreateEventCategoryAssignmentCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create event category assignment created response has a 4xx status code +func (o *CreateEventCategoryAssignmentCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create event category assignment created response has a 5xx status code +func (o *CreateEventCategoryAssignmentCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create event category assignment created response a status code equal to that given +func (o *CreateEventCategoryAssignmentCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create event category assignment created response +func (o *CreateEventCategoryAssignmentCreated) Code() int { + return 201 +} + +func (o *CreateEventCategoryAssignmentCreated) Error() string { + return fmt.Sprintf("[POST /eventcategoryassignments][%d] createEventCategoryAssignmentCreated ", 201) +} + +func (o *CreateEventCategoryAssignmentCreated) String() string { + return fmt.Sprintf("[POST /eventcategoryassignments][%d] createEventCategoryAssignmentCreated ", 201) +} + +func (o *CreateEventCategoryAssignmentCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_event_category_parameters.go b/api/members/members_client/operations/create_event_category_parameters.go new file mode 100644 index 0000000..2f94395 --- /dev/null +++ b/api/members/members_client/operations/create_event_category_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateEventCategoryParams creates a new CreateEventCategoryParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateEventCategoryParams() *CreateEventCategoryParams { + return &CreateEventCategoryParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateEventCategoryParamsWithTimeout creates a new CreateEventCategoryParams object +// with the ability to set a timeout on a request. +func NewCreateEventCategoryParamsWithTimeout(timeout time.Duration) *CreateEventCategoryParams { + return &CreateEventCategoryParams{ + timeout: timeout, + } +} + +// NewCreateEventCategoryParamsWithContext creates a new CreateEventCategoryParams object +// with the ability to set a context for a request. +func NewCreateEventCategoryParamsWithContext(ctx context.Context) *CreateEventCategoryParams { + return &CreateEventCategoryParams{ + Context: ctx, + } +} + +// NewCreateEventCategoryParamsWithHTTPClient creates a new CreateEventCategoryParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateEventCategoryParamsWithHTTPClient(client *http.Client) *CreateEventCategoryParams { + return &CreateEventCategoryParams{ + HTTPClient: client, + } +} + +/* +CreateEventCategoryParams contains all the parameters to send to the API endpoint + + for the create event category operation. + + Typically these are written to a http.Request. +*/ +type CreateEventCategoryParams struct { + + /* EventcategoryRequest. + + An array of new EventCategory records + */ + EventcategoryRequest *members_models.EventCategoryRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create event category params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEventCategoryParams) WithDefaults() *CreateEventCategoryParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create event category params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEventCategoryParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create event category params +func (o *CreateEventCategoryParams) WithTimeout(timeout time.Duration) *CreateEventCategoryParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create event category params +func (o *CreateEventCategoryParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create event category params +func (o *CreateEventCategoryParams) WithContext(ctx context.Context) *CreateEventCategoryParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create event category params +func (o *CreateEventCategoryParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create event category params +func (o *CreateEventCategoryParams) WithHTTPClient(client *http.Client) *CreateEventCategoryParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create event category params +func (o *CreateEventCategoryParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithEventcategoryRequest adds the eventcategoryRequest to the create event category params +func (o *CreateEventCategoryParams) WithEventcategoryRequest(eventcategoryRequest *members_models.EventCategoryRequest) *CreateEventCategoryParams { + o.SetEventcategoryRequest(eventcategoryRequest) + return o +} + +// SetEventcategoryRequest adds the eventcategoryRequest to the create event category params +func (o *CreateEventCategoryParams) SetEventcategoryRequest(eventcategoryRequest *members_models.EventCategoryRequest) { + o.EventcategoryRequest = eventcategoryRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateEventCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.EventcategoryRequest != nil { + if err := r.SetBodyParam(o.EventcategoryRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_event_category_responses.go b/api/members/members_client/operations/create_event_category_responses.go new file mode 100644 index 0000000..6c4393e --- /dev/null +++ b/api/members/members_client/operations/create_event_category_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateEventCategoryReader is a Reader for the CreateEventCategory structure. +type CreateEventCategoryReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateEventCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateEventCategoryCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateEventCategoryCreated creates a CreateEventCategoryCreated with default headers values +func NewCreateEventCategoryCreated() *CreateEventCategoryCreated { + return &CreateEventCategoryCreated{} +} + +/* +CreateEventCategoryCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateEventCategoryCreated struct { +} + +// IsSuccess returns true when this create event category created response has a 2xx status code +func (o *CreateEventCategoryCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create event category created response has a 3xx status code +func (o *CreateEventCategoryCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create event category created response has a 4xx status code +func (o *CreateEventCategoryCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create event category created response has a 5xx status code +func (o *CreateEventCategoryCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create event category created response a status code equal to that given +func (o *CreateEventCategoryCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create event category created response +func (o *CreateEventCategoryCreated) Code() int { + return 201 +} + +func (o *CreateEventCategoryCreated) Error() string { + return fmt.Sprintf("[POST /eventcategorys][%d] createEventCategoryCreated ", 201) +} + +func (o *CreateEventCategoryCreated) String() string { + return fmt.Sprintf("[POST /eventcategorys][%d] createEventCategoryCreated ", 201) +} + +func (o *CreateEventCategoryCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_event_parameters.go b/api/members/members_client/operations/create_event_parameters.go new file mode 100644 index 0000000..27a4fc4 --- /dev/null +++ b/api/members/members_client/operations/create_event_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateEventParams creates a new CreateEventParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateEventParams() *CreateEventParams { + return &CreateEventParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateEventParamsWithTimeout creates a new CreateEventParams object +// with the ability to set a timeout on a request. +func NewCreateEventParamsWithTimeout(timeout time.Duration) *CreateEventParams { + return &CreateEventParams{ + timeout: timeout, + } +} + +// NewCreateEventParamsWithContext creates a new CreateEventParams object +// with the ability to set a context for a request. +func NewCreateEventParamsWithContext(ctx context.Context) *CreateEventParams { + return &CreateEventParams{ + Context: ctx, + } +} + +// NewCreateEventParamsWithHTTPClient creates a new CreateEventParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateEventParamsWithHTTPClient(client *http.Client) *CreateEventParams { + return &CreateEventParams{ + HTTPClient: client, + } +} + +/* +CreateEventParams contains all the parameters to send to the API endpoint + + for the create event operation. + + Typically these are written to a http.Request. +*/ +type CreateEventParams struct { + + /* EventRequest. + + An array of new Event records + */ + EventRequest *members_models.EventRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create event params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEventParams) WithDefaults() *CreateEventParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create event params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateEventParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create event params +func (o *CreateEventParams) WithTimeout(timeout time.Duration) *CreateEventParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create event params +func (o *CreateEventParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create event params +func (o *CreateEventParams) WithContext(ctx context.Context) *CreateEventParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create event params +func (o *CreateEventParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create event params +func (o *CreateEventParams) WithHTTPClient(client *http.Client) *CreateEventParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create event params +func (o *CreateEventParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithEventRequest adds the eventRequest to the create event params +func (o *CreateEventParams) WithEventRequest(eventRequest *members_models.EventRequest) *CreateEventParams { + o.SetEventRequest(eventRequest) + return o +} + +// SetEventRequest adds the eventRequest to the create event params +func (o *CreateEventParams) SetEventRequest(eventRequest *members_models.EventRequest) { + o.EventRequest = eventRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.EventRequest != nil { + if err := r.SetBodyParam(o.EventRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_event_responses.go b/api/members/members_client/operations/create_event_responses.go new file mode 100644 index 0000000..5e601b2 --- /dev/null +++ b/api/members/members_client/operations/create_event_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateEventReader is a Reader for the CreateEvent structure. +type CreateEventReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateEventCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateEventCreated creates a CreateEventCreated with default headers values +func NewCreateEventCreated() *CreateEventCreated { + return &CreateEventCreated{} +} + +/* +CreateEventCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateEventCreated struct { +} + +// IsSuccess returns true when this create event created response has a 2xx status code +func (o *CreateEventCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create event created response has a 3xx status code +func (o *CreateEventCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create event created response has a 4xx status code +func (o *CreateEventCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create event created response has a 5xx status code +func (o *CreateEventCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create event created response a status code equal to that given +func (o *CreateEventCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create event created response +func (o *CreateEventCreated) Code() int { + return 201 +} + +func (o *CreateEventCreated) Error() string { + return fmt.Sprintf("[POST /events][%d] createEventCreated ", 201) +} + +func (o *CreateEventCreated) String() string { + return fmt.Sprintf("[POST /events][%d] createEventCreated ", 201) +} + +func (o *CreateEventCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_favorite_parameters.go b/api/members/members_client/operations/create_favorite_parameters.go new file mode 100644 index 0000000..49e4398 --- /dev/null +++ b/api/members/members_client/operations/create_favorite_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateFavoriteParams creates a new CreateFavoriteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateFavoriteParams() *CreateFavoriteParams { + return &CreateFavoriteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateFavoriteParamsWithTimeout creates a new CreateFavoriteParams object +// with the ability to set a timeout on a request. +func NewCreateFavoriteParamsWithTimeout(timeout time.Duration) *CreateFavoriteParams { + return &CreateFavoriteParams{ + timeout: timeout, + } +} + +// NewCreateFavoriteParamsWithContext creates a new CreateFavoriteParams object +// with the ability to set a context for a request. +func NewCreateFavoriteParamsWithContext(ctx context.Context) *CreateFavoriteParams { + return &CreateFavoriteParams{ + Context: ctx, + } +} + +// NewCreateFavoriteParamsWithHTTPClient creates a new CreateFavoriteParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateFavoriteParamsWithHTTPClient(client *http.Client) *CreateFavoriteParams { + return &CreateFavoriteParams{ + HTTPClient: client, + } +} + +/* +CreateFavoriteParams contains all the parameters to send to the API endpoint + + for the create favorite operation. + + Typically these are written to a http.Request. +*/ +type CreateFavoriteParams struct { + + /* FavoriteRequest. + + An array of new Favorite records + */ + FavoriteRequest *members_models.FavoriteRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create favorite params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateFavoriteParams) WithDefaults() *CreateFavoriteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create favorite params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateFavoriteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create favorite params +func (o *CreateFavoriteParams) WithTimeout(timeout time.Duration) *CreateFavoriteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create favorite params +func (o *CreateFavoriteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create favorite params +func (o *CreateFavoriteParams) WithContext(ctx context.Context) *CreateFavoriteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create favorite params +func (o *CreateFavoriteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create favorite params +func (o *CreateFavoriteParams) WithHTTPClient(client *http.Client) *CreateFavoriteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create favorite params +func (o *CreateFavoriteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithFavoriteRequest adds the favoriteRequest to the create favorite params +func (o *CreateFavoriteParams) WithFavoriteRequest(favoriteRequest *members_models.FavoriteRequest) *CreateFavoriteParams { + o.SetFavoriteRequest(favoriteRequest) + return o +} + +// SetFavoriteRequest adds the favoriteRequest to the create favorite params +func (o *CreateFavoriteParams) SetFavoriteRequest(favoriteRequest *members_models.FavoriteRequest) { + o.FavoriteRequest = favoriteRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateFavoriteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.FavoriteRequest != nil { + if err := r.SetBodyParam(o.FavoriteRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_favorite_responses.go b/api/members/members_client/operations/create_favorite_responses.go new file mode 100644 index 0000000..1c5ea89 --- /dev/null +++ b/api/members/members_client/operations/create_favorite_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateFavoriteReader is a Reader for the CreateFavorite structure. +type CreateFavoriteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateFavoriteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateFavoriteCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateFavoriteCreated creates a CreateFavoriteCreated with default headers values +func NewCreateFavoriteCreated() *CreateFavoriteCreated { + return &CreateFavoriteCreated{} +} + +/* +CreateFavoriteCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateFavoriteCreated struct { +} + +// IsSuccess returns true when this create favorite created response has a 2xx status code +func (o *CreateFavoriteCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create favorite created response has a 3xx status code +func (o *CreateFavoriteCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create favorite created response has a 4xx status code +func (o *CreateFavoriteCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create favorite created response has a 5xx status code +func (o *CreateFavoriteCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create favorite created response a status code equal to that given +func (o *CreateFavoriteCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create favorite created response +func (o *CreateFavoriteCreated) Code() int { + return 201 +} + +func (o *CreateFavoriteCreated) Error() string { + return fmt.Sprintf("[POST /favorites][%d] createFavoriteCreated ", 201) +} + +func (o *CreateFavoriteCreated) String() string { + return fmt.Sprintf("[POST /favorites][%d] createFavoriteCreated ", 201) +} + +func (o *CreateFavoriteCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_invoice_parameters.go b/api/members/members_client/operations/create_invoice_parameters.go new file mode 100644 index 0000000..237424f --- /dev/null +++ b/api/members/members_client/operations/create_invoice_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateInvoiceParams creates a new CreateInvoiceParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateInvoiceParams() *CreateInvoiceParams { + return &CreateInvoiceParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateInvoiceParamsWithTimeout creates a new CreateInvoiceParams object +// with the ability to set a timeout on a request. +func NewCreateInvoiceParamsWithTimeout(timeout time.Duration) *CreateInvoiceParams { + return &CreateInvoiceParams{ + timeout: timeout, + } +} + +// NewCreateInvoiceParamsWithContext creates a new CreateInvoiceParams object +// with the ability to set a context for a request. +func NewCreateInvoiceParamsWithContext(ctx context.Context) *CreateInvoiceParams { + return &CreateInvoiceParams{ + Context: ctx, + } +} + +// NewCreateInvoiceParamsWithHTTPClient creates a new CreateInvoiceParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateInvoiceParamsWithHTTPClient(client *http.Client) *CreateInvoiceParams { + return &CreateInvoiceParams{ + HTTPClient: client, + } +} + +/* +CreateInvoiceParams contains all the parameters to send to the API endpoint + + for the create invoice operation. + + Typically these are written to a http.Request. +*/ +type CreateInvoiceParams struct { + + /* InvoiceRequest. + + An array of new Invoice records + */ + InvoiceRequest *members_models.InvoiceRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create invoice params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateInvoiceParams) WithDefaults() *CreateInvoiceParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create invoice params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateInvoiceParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create invoice params +func (o *CreateInvoiceParams) WithTimeout(timeout time.Duration) *CreateInvoiceParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create invoice params +func (o *CreateInvoiceParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create invoice params +func (o *CreateInvoiceParams) WithContext(ctx context.Context) *CreateInvoiceParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create invoice params +func (o *CreateInvoiceParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create invoice params +func (o *CreateInvoiceParams) WithHTTPClient(client *http.Client) *CreateInvoiceParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create invoice params +func (o *CreateInvoiceParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithInvoiceRequest adds the invoiceRequest to the create invoice params +func (o *CreateInvoiceParams) WithInvoiceRequest(invoiceRequest *members_models.InvoiceRequest) *CreateInvoiceParams { + o.SetInvoiceRequest(invoiceRequest) + return o +} + +// SetInvoiceRequest adds the invoiceRequest to the create invoice params +func (o *CreateInvoiceParams) SetInvoiceRequest(invoiceRequest *members_models.InvoiceRequest) { + o.InvoiceRequest = invoiceRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateInvoiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.InvoiceRequest != nil { + if err := r.SetBodyParam(o.InvoiceRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_invoice_responses.go b/api/members/members_client/operations/create_invoice_responses.go new file mode 100644 index 0000000..7433f79 --- /dev/null +++ b/api/members/members_client/operations/create_invoice_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateInvoiceReader is a Reader for the CreateInvoice structure. +type CreateInvoiceReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateInvoiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateInvoiceCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateInvoiceCreated creates a CreateInvoiceCreated with default headers values +func NewCreateInvoiceCreated() *CreateInvoiceCreated { + return &CreateInvoiceCreated{} +} + +/* +CreateInvoiceCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateInvoiceCreated struct { +} + +// IsSuccess returns true when this create invoice created response has a 2xx status code +func (o *CreateInvoiceCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create invoice created response has a 3xx status code +func (o *CreateInvoiceCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create invoice created response has a 4xx status code +func (o *CreateInvoiceCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create invoice created response has a 5xx status code +func (o *CreateInvoiceCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create invoice created response a status code equal to that given +func (o *CreateInvoiceCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create invoice created response +func (o *CreateInvoiceCreated) Code() int { + return 201 +} + +func (o *CreateInvoiceCreated) Error() string { + return fmt.Sprintf("[POST /invoices][%d] createInvoiceCreated ", 201) +} + +func (o *CreateInvoiceCreated) String() string { + return fmt.Sprintf("[POST /invoices][%d] createInvoiceCreated ", 201) +} + +func (o *CreateInvoiceCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_issued_certificate_parameters.go b/api/members/members_client/operations/create_issued_certificate_parameters.go new file mode 100644 index 0000000..b9e477a --- /dev/null +++ b/api/members/members_client/operations/create_issued_certificate_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateIssuedCertificateParams creates a new CreateIssuedCertificateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateIssuedCertificateParams() *CreateIssuedCertificateParams { + return &CreateIssuedCertificateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateIssuedCertificateParamsWithTimeout creates a new CreateIssuedCertificateParams object +// with the ability to set a timeout on a request. +func NewCreateIssuedCertificateParamsWithTimeout(timeout time.Duration) *CreateIssuedCertificateParams { + return &CreateIssuedCertificateParams{ + timeout: timeout, + } +} + +// NewCreateIssuedCertificateParamsWithContext creates a new CreateIssuedCertificateParams object +// with the ability to set a context for a request. +func NewCreateIssuedCertificateParamsWithContext(ctx context.Context) *CreateIssuedCertificateParams { + return &CreateIssuedCertificateParams{ + Context: ctx, + } +} + +// NewCreateIssuedCertificateParamsWithHTTPClient creates a new CreateIssuedCertificateParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateIssuedCertificateParamsWithHTTPClient(client *http.Client) *CreateIssuedCertificateParams { + return &CreateIssuedCertificateParams{ + HTTPClient: client, + } +} + +/* +CreateIssuedCertificateParams contains all the parameters to send to the API endpoint + + for the create issued certificate operation. + + Typically these are written to a http.Request. +*/ +type CreateIssuedCertificateParams struct { + + /* IssuedcertificateRequest. + + An array of new IssuedCertificate records + */ + IssuedcertificateRequest *members_models.IssuedCertificateRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create issued certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateIssuedCertificateParams) WithDefaults() *CreateIssuedCertificateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create issued certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateIssuedCertificateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create issued certificate params +func (o *CreateIssuedCertificateParams) WithTimeout(timeout time.Duration) *CreateIssuedCertificateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create issued certificate params +func (o *CreateIssuedCertificateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create issued certificate params +func (o *CreateIssuedCertificateParams) WithContext(ctx context.Context) *CreateIssuedCertificateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create issued certificate params +func (o *CreateIssuedCertificateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create issued certificate params +func (o *CreateIssuedCertificateParams) WithHTTPClient(client *http.Client) *CreateIssuedCertificateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create issued certificate params +func (o *CreateIssuedCertificateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithIssuedcertificateRequest adds the issuedcertificateRequest to the create issued certificate params +func (o *CreateIssuedCertificateParams) WithIssuedcertificateRequest(issuedcertificateRequest *members_models.IssuedCertificateRequest) *CreateIssuedCertificateParams { + o.SetIssuedcertificateRequest(issuedcertificateRequest) + return o +} + +// SetIssuedcertificateRequest adds the issuedcertificateRequest to the create issued certificate params +func (o *CreateIssuedCertificateParams) SetIssuedcertificateRequest(issuedcertificateRequest *members_models.IssuedCertificateRequest) { + o.IssuedcertificateRequest = issuedcertificateRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateIssuedCertificateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.IssuedcertificateRequest != nil { + if err := r.SetBodyParam(o.IssuedcertificateRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_issued_certificate_responses.go b/api/members/members_client/operations/create_issued_certificate_responses.go new file mode 100644 index 0000000..0ba12b2 --- /dev/null +++ b/api/members/members_client/operations/create_issued_certificate_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateIssuedCertificateReader is a Reader for the CreateIssuedCertificate structure. +type CreateIssuedCertificateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateIssuedCertificateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateIssuedCertificateCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateIssuedCertificateCreated creates a CreateIssuedCertificateCreated with default headers values +func NewCreateIssuedCertificateCreated() *CreateIssuedCertificateCreated { + return &CreateIssuedCertificateCreated{} +} + +/* +CreateIssuedCertificateCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateIssuedCertificateCreated struct { +} + +// IsSuccess returns true when this create issued certificate created response has a 2xx status code +func (o *CreateIssuedCertificateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create issued certificate created response has a 3xx status code +func (o *CreateIssuedCertificateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create issued certificate created response has a 4xx status code +func (o *CreateIssuedCertificateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create issued certificate created response has a 5xx status code +func (o *CreateIssuedCertificateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create issued certificate created response a status code equal to that given +func (o *CreateIssuedCertificateCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create issued certificate created response +func (o *CreateIssuedCertificateCreated) Code() int { + return 201 +} + +func (o *CreateIssuedCertificateCreated) Error() string { + return fmt.Sprintf("[POST /issuedcertificates][%d] createIssuedCertificateCreated ", 201) +} + +func (o *CreateIssuedCertificateCreated) String() string { + return fmt.Sprintf("[POST /issuedcertificates][%d] createIssuedCertificateCreated ", 201) +} + +func (o *CreateIssuedCertificateCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_lesson_progress_parameters.go b/api/members/members_client/operations/create_lesson_progress_parameters.go new file mode 100644 index 0000000..dff6072 --- /dev/null +++ b/api/members/members_client/operations/create_lesson_progress_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateLessonProgressParams creates a new CreateLessonProgressParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateLessonProgressParams() *CreateLessonProgressParams { + return &CreateLessonProgressParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateLessonProgressParamsWithTimeout creates a new CreateLessonProgressParams object +// with the ability to set a timeout on a request. +func NewCreateLessonProgressParamsWithTimeout(timeout time.Duration) *CreateLessonProgressParams { + return &CreateLessonProgressParams{ + timeout: timeout, + } +} + +// NewCreateLessonProgressParamsWithContext creates a new CreateLessonProgressParams object +// with the ability to set a context for a request. +func NewCreateLessonProgressParamsWithContext(ctx context.Context) *CreateLessonProgressParams { + return &CreateLessonProgressParams{ + Context: ctx, + } +} + +// NewCreateLessonProgressParamsWithHTTPClient creates a new CreateLessonProgressParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateLessonProgressParamsWithHTTPClient(client *http.Client) *CreateLessonProgressParams { + return &CreateLessonProgressParams{ + HTTPClient: client, + } +} + +/* +CreateLessonProgressParams contains all the parameters to send to the API endpoint + + for the create lesson progress operation. + + Typically these are written to a http.Request. +*/ +type CreateLessonProgressParams struct { + + /* LessonprogressRequest. + + An array of new LessonProgress records + */ + LessonprogressRequest *members_models.LessonProgressRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateLessonProgressParams) WithDefaults() *CreateLessonProgressParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateLessonProgressParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create lesson progress params +func (o *CreateLessonProgressParams) WithTimeout(timeout time.Duration) *CreateLessonProgressParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create lesson progress params +func (o *CreateLessonProgressParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create lesson progress params +func (o *CreateLessonProgressParams) WithContext(ctx context.Context) *CreateLessonProgressParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create lesson progress params +func (o *CreateLessonProgressParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create lesson progress params +func (o *CreateLessonProgressParams) WithHTTPClient(client *http.Client) *CreateLessonProgressParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create lesson progress params +func (o *CreateLessonProgressParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithLessonprogressRequest adds the lessonprogressRequest to the create lesson progress params +func (o *CreateLessonProgressParams) WithLessonprogressRequest(lessonprogressRequest *members_models.LessonProgressRequest) *CreateLessonProgressParams { + o.SetLessonprogressRequest(lessonprogressRequest) + return o +} + +// SetLessonprogressRequest adds the lessonprogressRequest to the create lesson progress params +func (o *CreateLessonProgressParams) SetLessonprogressRequest(lessonprogressRequest *members_models.LessonProgressRequest) { + o.LessonprogressRequest = lessonprogressRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateLessonProgressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.LessonprogressRequest != nil { + if err := r.SetBodyParam(o.LessonprogressRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_lesson_progress_responses.go b/api/members/members_client/operations/create_lesson_progress_responses.go new file mode 100644 index 0000000..964cd65 --- /dev/null +++ b/api/members/members_client/operations/create_lesson_progress_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateLessonProgressReader is a Reader for the CreateLessonProgress structure. +type CreateLessonProgressReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateLessonProgressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateLessonProgressCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateLessonProgressCreated creates a CreateLessonProgressCreated with default headers values +func NewCreateLessonProgressCreated() *CreateLessonProgressCreated { + return &CreateLessonProgressCreated{} +} + +/* +CreateLessonProgressCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateLessonProgressCreated struct { +} + +// IsSuccess returns true when this create lesson progress created response has a 2xx status code +func (o *CreateLessonProgressCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create lesson progress created response has a 3xx status code +func (o *CreateLessonProgressCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create lesson progress created response has a 4xx status code +func (o *CreateLessonProgressCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create lesson progress created response has a 5xx status code +func (o *CreateLessonProgressCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create lesson progress created response a status code equal to that given +func (o *CreateLessonProgressCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create lesson progress created response +func (o *CreateLessonProgressCreated) Code() int { + return 201 +} + +func (o *CreateLessonProgressCreated) Error() string { + return fmt.Sprintf("[POST /lessonprogress][%d] createLessonProgressCreated ", 201) +} + +func (o *CreateLessonProgressCreated) String() string { + return fmt.Sprintf("[POST /lessonprogress][%d] createLessonProgressCreated ", 201) +} + +func (o *CreateLessonProgressCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_order_parameters.go b/api/members/members_client/operations/create_order_parameters.go new file mode 100644 index 0000000..f9262ca --- /dev/null +++ b/api/members/members_client/operations/create_order_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateOrderParams creates a new CreateOrderParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateOrderParams() *CreateOrderParams { + return &CreateOrderParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateOrderParamsWithTimeout creates a new CreateOrderParams object +// with the ability to set a timeout on a request. +func NewCreateOrderParamsWithTimeout(timeout time.Duration) *CreateOrderParams { + return &CreateOrderParams{ + timeout: timeout, + } +} + +// NewCreateOrderParamsWithContext creates a new CreateOrderParams object +// with the ability to set a context for a request. +func NewCreateOrderParamsWithContext(ctx context.Context) *CreateOrderParams { + return &CreateOrderParams{ + Context: ctx, + } +} + +// NewCreateOrderParamsWithHTTPClient creates a new CreateOrderParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateOrderParamsWithHTTPClient(client *http.Client) *CreateOrderParams { + return &CreateOrderParams{ + HTTPClient: client, + } +} + +/* +CreateOrderParams contains all the parameters to send to the API endpoint + + for the create order operation. + + Typically these are written to a http.Request. +*/ +type CreateOrderParams struct { + + /* OrderRequest. + + An array of new Order records + */ + OrderRequest *members_models.OrderRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create order params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateOrderParams) WithDefaults() *CreateOrderParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create order params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateOrderParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create order params +func (o *CreateOrderParams) WithTimeout(timeout time.Duration) *CreateOrderParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create order params +func (o *CreateOrderParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create order params +func (o *CreateOrderParams) WithContext(ctx context.Context) *CreateOrderParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create order params +func (o *CreateOrderParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create order params +func (o *CreateOrderParams) WithHTTPClient(client *http.Client) *CreateOrderParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create order params +func (o *CreateOrderParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithOrderRequest adds the orderRequest to the create order params +func (o *CreateOrderParams) WithOrderRequest(orderRequest *members_models.OrderRequest) *CreateOrderParams { + o.SetOrderRequest(orderRequest) + return o +} + +// SetOrderRequest adds the orderRequest to the create order params +func (o *CreateOrderParams) SetOrderRequest(orderRequest *members_models.OrderRequest) { + o.OrderRequest = orderRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.OrderRequest != nil { + if err := r.SetBodyParam(o.OrderRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_order_responses.go b/api/members/members_client/operations/create_order_responses.go new file mode 100644 index 0000000..b7a77c3 --- /dev/null +++ b/api/members/members_client/operations/create_order_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateOrderReader is a Reader for the CreateOrder structure. +type CreateOrderReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateOrderCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateOrderCreated creates a CreateOrderCreated with default headers values +func NewCreateOrderCreated() *CreateOrderCreated { + return &CreateOrderCreated{} +} + +/* +CreateOrderCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateOrderCreated struct { +} + +// IsSuccess returns true when this create order created response has a 2xx status code +func (o *CreateOrderCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create order created response has a 3xx status code +func (o *CreateOrderCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create order created response has a 4xx status code +func (o *CreateOrderCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create order created response has a 5xx status code +func (o *CreateOrderCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create order created response a status code equal to that given +func (o *CreateOrderCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create order created response +func (o *CreateOrderCreated) Code() int { + return 201 +} + +func (o *CreateOrderCreated) Error() string { + return fmt.Sprintf("[POST /orders][%d] createOrderCreated ", 201) +} + +func (o *CreateOrderCreated) String() string { + return fmt.Sprintf("[POST /orders][%d] createOrderCreated ", 201) +} + +func (o *CreateOrderCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_payment_method_parameters.go b/api/members/members_client/operations/create_payment_method_parameters.go new file mode 100644 index 0000000..3d843ec --- /dev/null +++ b/api/members/members_client/operations/create_payment_method_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreatePaymentMethodParams creates a new CreatePaymentMethodParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreatePaymentMethodParams() *CreatePaymentMethodParams { + return &CreatePaymentMethodParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreatePaymentMethodParamsWithTimeout creates a new CreatePaymentMethodParams object +// with the ability to set a timeout on a request. +func NewCreatePaymentMethodParamsWithTimeout(timeout time.Duration) *CreatePaymentMethodParams { + return &CreatePaymentMethodParams{ + timeout: timeout, + } +} + +// NewCreatePaymentMethodParamsWithContext creates a new CreatePaymentMethodParams object +// with the ability to set a context for a request. +func NewCreatePaymentMethodParamsWithContext(ctx context.Context) *CreatePaymentMethodParams { + return &CreatePaymentMethodParams{ + Context: ctx, + } +} + +// NewCreatePaymentMethodParamsWithHTTPClient creates a new CreatePaymentMethodParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreatePaymentMethodParamsWithHTTPClient(client *http.Client) *CreatePaymentMethodParams { + return &CreatePaymentMethodParams{ + HTTPClient: client, + } +} + +/* +CreatePaymentMethodParams contains all the parameters to send to the API endpoint + + for the create payment method operation. + + Typically these are written to a http.Request. +*/ +type CreatePaymentMethodParams struct { + + /* PaymentmethodRequest. + + An array of new PaymentMethod records + */ + PaymentmethodRequest *members_models.PaymentMethodRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create payment method params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreatePaymentMethodParams) WithDefaults() *CreatePaymentMethodParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create payment method params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreatePaymentMethodParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create payment method params +func (o *CreatePaymentMethodParams) WithTimeout(timeout time.Duration) *CreatePaymentMethodParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create payment method params +func (o *CreatePaymentMethodParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create payment method params +func (o *CreatePaymentMethodParams) WithContext(ctx context.Context) *CreatePaymentMethodParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create payment method params +func (o *CreatePaymentMethodParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create payment method params +func (o *CreatePaymentMethodParams) WithHTTPClient(client *http.Client) *CreatePaymentMethodParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create payment method params +func (o *CreatePaymentMethodParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithPaymentmethodRequest adds the paymentmethodRequest to the create payment method params +func (o *CreatePaymentMethodParams) WithPaymentmethodRequest(paymentmethodRequest *members_models.PaymentMethodRequest) *CreatePaymentMethodParams { + o.SetPaymentmethodRequest(paymentmethodRequest) + return o +} + +// SetPaymentmethodRequest adds the paymentmethodRequest to the create payment method params +func (o *CreatePaymentMethodParams) SetPaymentmethodRequest(paymentmethodRequest *members_models.PaymentMethodRequest) { + o.PaymentmethodRequest = paymentmethodRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreatePaymentMethodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.PaymentmethodRequest != nil { + if err := r.SetBodyParam(o.PaymentmethodRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_payment_method_responses.go b/api/members/members_client/operations/create_payment_method_responses.go new file mode 100644 index 0000000..3877710 --- /dev/null +++ b/api/members/members_client/operations/create_payment_method_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreatePaymentMethodReader is a Reader for the CreatePaymentMethod structure. +type CreatePaymentMethodReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreatePaymentMethodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreatePaymentMethodCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreatePaymentMethodCreated creates a CreatePaymentMethodCreated with default headers values +func NewCreatePaymentMethodCreated() *CreatePaymentMethodCreated { + return &CreatePaymentMethodCreated{} +} + +/* +CreatePaymentMethodCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreatePaymentMethodCreated struct { +} + +// IsSuccess returns true when this create payment method created response has a 2xx status code +func (o *CreatePaymentMethodCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create payment method created response has a 3xx status code +func (o *CreatePaymentMethodCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create payment method created response has a 4xx status code +func (o *CreatePaymentMethodCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create payment method created response has a 5xx status code +func (o *CreatePaymentMethodCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create payment method created response a status code equal to that given +func (o *CreatePaymentMethodCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create payment method created response +func (o *CreatePaymentMethodCreated) Code() int { + return 201 +} + +func (o *CreatePaymentMethodCreated) Error() string { + return fmt.Sprintf("[POST /paymentmethods][%d] createPaymentMethodCreated ", 201) +} + +func (o *CreatePaymentMethodCreated) String() string { + return fmt.Sprintf("[POST /paymentmethods][%d] createPaymentMethodCreated ", 201) +} + +func (o *CreatePaymentMethodCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_research_project_company_parameters.go b/api/members/members_client/operations/create_research_project_company_parameters.go new file mode 100644 index 0000000..f50fde4 --- /dev/null +++ b/api/members/members_client/operations/create_research_project_company_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateResearchProjectCompanyParams creates a new CreateResearchProjectCompanyParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateResearchProjectCompanyParams() *CreateResearchProjectCompanyParams { + return &CreateResearchProjectCompanyParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateResearchProjectCompanyParamsWithTimeout creates a new CreateResearchProjectCompanyParams object +// with the ability to set a timeout on a request. +func NewCreateResearchProjectCompanyParamsWithTimeout(timeout time.Duration) *CreateResearchProjectCompanyParams { + return &CreateResearchProjectCompanyParams{ + timeout: timeout, + } +} + +// NewCreateResearchProjectCompanyParamsWithContext creates a new CreateResearchProjectCompanyParams object +// with the ability to set a context for a request. +func NewCreateResearchProjectCompanyParamsWithContext(ctx context.Context) *CreateResearchProjectCompanyParams { + return &CreateResearchProjectCompanyParams{ + Context: ctx, + } +} + +// NewCreateResearchProjectCompanyParamsWithHTTPClient creates a new CreateResearchProjectCompanyParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateResearchProjectCompanyParamsWithHTTPClient(client *http.Client) *CreateResearchProjectCompanyParams { + return &CreateResearchProjectCompanyParams{ + HTTPClient: client, + } +} + +/* +CreateResearchProjectCompanyParams contains all the parameters to send to the API endpoint + + for the create research project company operation. + + Typically these are written to a http.Request. +*/ +type CreateResearchProjectCompanyParams struct { + + /* ResearchprojectcompanyRequest. + + An array of new ResearchProjectCompany records + */ + ResearchprojectcompanyRequest *members_models.ResearchProjectCompanyRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create research project company params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateResearchProjectCompanyParams) WithDefaults() *CreateResearchProjectCompanyParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create research project company params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateResearchProjectCompanyParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create research project company params +func (o *CreateResearchProjectCompanyParams) WithTimeout(timeout time.Duration) *CreateResearchProjectCompanyParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create research project company params +func (o *CreateResearchProjectCompanyParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create research project company params +func (o *CreateResearchProjectCompanyParams) WithContext(ctx context.Context) *CreateResearchProjectCompanyParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create research project company params +func (o *CreateResearchProjectCompanyParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create research project company params +func (o *CreateResearchProjectCompanyParams) WithHTTPClient(client *http.Client) *CreateResearchProjectCompanyParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create research project company params +func (o *CreateResearchProjectCompanyParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithResearchprojectcompanyRequest adds the researchprojectcompanyRequest to the create research project company params +func (o *CreateResearchProjectCompanyParams) WithResearchprojectcompanyRequest(researchprojectcompanyRequest *members_models.ResearchProjectCompanyRequest) *CreateResearchProjectCompanyParams { + o.SetResearchprojectcompanyRequest(researchprojectcompanyRequest) + return o +} + +// SetResearchprojectcompanyRequest adds the researchprojectcompanyRequest to the create research project company params +func (o *CreateResearchProjectCompanyParams) SetResearchprojectcompanyRequest(researchprojectcompanyRequest *members_models.ResearchProjectCompanyRequest) { + o.ResearchprojectcompanyRequest = researchprojectcompanyRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateResearchProjectCompanyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ResearchprojectcompanyRequest != nil { + if err := r.SetBodyParam(o.ResearchprojectcompanyRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_research_project_company_responses.go b/api/members/members_client/operations/create_research_project_company_responses.go new file mode 100644 index 0000000..d7617c0 --- /dev/null +++ b/api/members/members_client/operations/create_research_project_company_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateResearchProjectCompanyReader is a Reader for the CreateResearchProjectCompany structure. +type CreateResearchProjectCompanyReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateResearchProjectCompanyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateResearchProjectCompanyCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateResearchProjectCompanyCreated creates a CreateResearchProjectCompanyCreated with default headers values +func NewCreateResearchProjectCompanyCreated() *CreateResearchProjectCompanyCreated { + return &CreateResearchProjectCompanyCreated{} +} + +/* +CreateResearchProjectCompanyCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateResearchProjectCompanyCreated struct { +} + +// IsSuccess returns true when this create research project company created response has a 2xx status code +func (o *CreateResearchProjectCompanyCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create research project company created response has a 3xx status code +func (o *CreateResearchProjectCompanyCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create research project company created response has a 4xx status code +func (o *CreateResearchProjectCompanyCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create research project company created response has a 5xx status code +func (o *CreateResearchProjectCompanyCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create research project company created response a status code equal to that given +func (o *CreateResearchProjectCompanyCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create research project company created response +func (o *CreateResearchProjectCompanyCreated) Code() int { + return 201 +} + +func (o *CreateResearchProjectCompanyCreated) Error() string { + return fmt.Sprintf("[POST /researchprojectcompanys][%d] createResearchProjectCompanyCreated ", 201) +} + +func (o *CreateResearchProjectCompanyCreated) String() string { + return fmt.Sprintf("[POST /researchprojectcompanys][%d] createResearchProjectCompanyCreated ", 201) +} + +func (o *CreateResearchProjectCompanyCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_research_project_parameters.go b/api/members/members_client/operations/create_research_project_parameters.go new file mode 100644 index 0000000..11aed37 --- /dev/null +++ b/api/members/members_client/operations/create_research_project_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateResearchProjectParams creates a new CreateResearchProjectParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateResearchProjectParams() *CreateResearchProjectParams { + return &CreateResearchProjectParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateResearchProjectParamsWithTimeout creates a new CreateResearchProjectParams object +// with the ability to set a timeout on a request. +func NewCreateResearchProjectParamsWithTimeout(timeout time.Duration) *CreateResearchProjectParams { + return &CreateResearchProjectParams{ + timeout: timeout, + } +} + +// NewCreateResearchProjectParamsWithContext creates a new CreateResearchProjectParams object +// with the ability to set a context for a request. +func NewCreateResearchProjectParamsWithContext(ctx context.Context) *CreateResearchProjectParams { + return &CreateResearchProjectParams{ + Context: ctx, + } +} + +// NewCreateResearchProjectParamsWithHTTPClient creates a new CreateResearchProjectParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateResearchProjectParamsWithHTTPClient(client *http.Client) *CreateResearchProjectParams { + return &CreateResearchProjectParams{ + HTTPClient: client, + } +} + +/* +CreateResearchProjectParams contains all the parameters to send to the API endpoint + + for the create research project operation. + + Typically these are written to a http.Request. +*/ +type CreateResearchProjectParams struct { + + /* ResearchprojectRequest. + + An array of new ResearchProject records + */ + ResearchprojectRequest *members_models.ResearchProjectRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create research project params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateResearchProjectParams) WithDefaults() *CreateResearchProjectParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create research project params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateResearchProjectParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create research project params +func (o *CreateResearchProjectParams) WithTimeout(timeout time.Duration) *CreateResearchProjectParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create research project params +func (o *CreateResearchProjectParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create research project params +func (o *CreateResearchProjectParams) WithContext(ctx context.Context) *CreateResearchProjectParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create research project params +func (o *CreateResearchProjectParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create research project params +func (o *CreateResearchProjectParams) WithHTTPClient(client *http.Client) *CreateResearchProjectParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create research project params +func (o *CreateResearchProjectParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithResearchprojectRequest adds the researchprojectRequest to the create research project params +func (o *CreateResearchProjectParams) WithResearchprojectRequest(researchprojectRequest *members_models.ResearchProjectRequest) *CreateResearchProjectParams { + o.SetResearchprojectRequest(researchprojectRequest) + return o +} + +// SetResearchprojectRequest adds the researchprojectRequest to the create research project params +func (o *CreateResearchProjectParams) SetResearchprojectRequest(researchprojectRequest *members_models.ResearchProjectRequest) { + o.ResearchprojectRequest = researchprojectRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateResearchProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ResearchprojectRequest != nil { + if err := r.SetBodyParam(o.ResearchprojectRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_research_project_responses.go b/api/members/members_client/operations/create_research_project_responses.go new file mode 100644 index 0000000..53048aa --- /dev/null +++ b/api/members/members_client/operations/create_research_project_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateResearchProjectReader is a Reader for the CreateResearchProject structure. +type CreateResearchProjectReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateResearchProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateResearchProjectCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateResearchProjectCreated creates a CreateResearchProjectCreated with default headers values +func NewCreateResearchProjectCreated() *CreateResearchProjectCreated { + return &CreateResearchProjectCreated{} +} + +/* +CreateResearchProjectCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateResearchProjectCreated struct { +} + +// IsSuccess returns true when this create research project created response has a 2xx status code +func (o *CreateResearchProjectCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create research project created response has a 3xx status code +func (o *CreateResearchProjectCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create research project created response has a 4xx status code +func (o *CreateResearchProjectCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create research project created response has a 5xx status code +func (o *CreateResearchProjectCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create research project created response a status code equal to that given +func (o *CreateResearchProjectCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create research project created response +func (o *CreateResearchProjectCreated) Code() int { + return 201 +} + +func (o *CreateResearchProjectCreated) Error() string { + return fmt.Sprintf("[POST /researchprojects][%d] createResearchProjectCreated ", 201) +} + +func (o *CreateResearchProjectCreated) String() string { + return fmt.Sprintf("[POST /researchprojects][%d] createResearchProjectCreated ", 201) +} + +func (o *CreateResearchProjectCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_research_project_topic_parameters.go b/api/members/members_client/operations/create_research_project_topic_parameters.go new file mode 100644 index 0000000..7977a73 --- /dev/null +++ b/api/members/members_client/operations/create_research_project_topic_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateResearchProjectTopicParams creates a new CreateResearchProjectTopicParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateResearchProjectTopicParams() *CreateResearchProjectTopicParams { + return &CreateResearchProjectTopicParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateResearchProjectTopicParamsWithTimeout creates a new CreateResearchProjectTopicParams object +// with the ability to set a timeout on a request. +func NewCreateResearchProjectTopicParamsWithTimeout(timeout time.Duration) *CreateResearchProjectTopicParams { + return &CreateResearchProjectTopicParams{ + timeout: timeout, + } +} + +// NewCreateResearchProjectTopicParamsWithContext creates a new CreateResearchProjectTopicParams object +// with the ability to set a context for a request. +func NewCreateResearchProjectTopicParamsWithContext(ctx context.Context) *CreateResearchProjectTopicParams { + return &CreateResearchProjectTopicParams{ + Context: ctx, + } +} + +// NewCreateResearchProjectTopicParamsWithHTTPClient creates a new CreateResearchProjectTopicParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateResearchProjectTopicParamsWithHTTPClient(client *http.Client) *CreateResearchProjectTopicParams { + return &CreateResearchProjectTopicParams{ + HTTPClient: client, + } +} + +/* +CreateResearchProjectTopicParams contains all the parameters to send to the API endpoint + + for the create research project topic operation. + + Typically these are written to a http.Request. +*/ +type CreateResearchProjectTopicParams struct { + + /* ResearchprojecttopicRequest. + + An array of new ResearchProjectTopic records + */ + ResearchprojecttopicRequest *members_models.ResearchProjectTopicRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create research project topic params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateResearchProjectTopicParams) WithDefaults() *CreateResearchProjectTopicParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create research project topic params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateResearchProjectTopicParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create research project topic params +func (o *CreateResearchProjectTopicParams) WithTimeout(timeout time.Duration) *CreateResearchProjectTopicParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create research project topic params +func (o *CreateResearchProjectTopicParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create research project topic params +func (o *CreateResearchProjectTopicParams) WithContext(ctx context.Context) *CreateResearchProjectTopicParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create research project topic params +func (o *CreateResearchProjectTopicParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create research project topic params +func (o *CreateResearchProjectTopicParams) WithHTTPClient(client *http.Client) *CreateResearchProjectTopicParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create research project topic params +func (o *CreateResearchProjectTopicParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithResearchprojecttopicRequest adds the researchprojecttopicRequest to the create research project topic params +func (o *CreateResearchProjectTopicParams) WithResearchprojecttopicRequest(researchprojecttopicRequest *members_models.ResearchProjectTopicRequest) *CreateResearchProjectTopicParams { + o.SetResearchprojecttopicRequest(researchprojecttopicRequest) + return o +} + +// SetResearchprojecttopicRequest adds the researchprojecttopicRequest to the create research project topic params +func (o *CreateResearchProjectTopicParams) SetResearchprojecttopicRequest(researchprojecttopicRequest *members_models.ResearchProjectTopicRequest) { + o.ResearchprojecttopicRequest = researchprojecttopicRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateResearchProjectTopicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ResearchprojecttopicRequest != nil { + if err := r.SetBodyParam(o.ResearchprojecttopicRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_research_project_topic_responses.go b/api/members/members_client/operations/create_research_project_topic_responses.go new file mode 100644 index 0000000..16002cf --- /dev/null +++ b/api/members/members_client/operations/create_research_project_topic_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateResearchProjectTopicReader is a Reader for the CreateResearchProjectTopic structure. +type CreateResearchProjectTopicReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateResearchProjectTopicReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateResearchProjectTopicCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateResearchProjectTopicCreated creates a CreateResearchProjectTopicCreated with default headers values +func NewCreateResearchProjectTopicCreated() *CreateResearchProjectTopicCreated { + return &CreateResearchProjectTopicCreated{} +} + +/* +CreateResearchProjectTopicCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateResearchProjectTopicCreated struct { +} + +// IsSuccess returns true when this create research project topic created response has a 2xx status code +func (o *CreateResearchProjectTopicCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create research project topic created response has a 3xx status code +func (o *CreateResearchProjectTopicCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create research project topic created response has a 4xx status code +func (o *CreateResearchProjectTopicCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create research project topic created response has a 5xx status code +func (o *CreateResearchProjectTopicCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create research project topic created response a status code equal to that given +func (o *CreateResearchProjectTopicCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create research project topic created response +func (o *CreateResearchProjectTopicCreated) Code() int { + return 201 +} + +func (o *CreateResearchProjectTopicCreated) Error() string { + return fmt.Sprintf("[POST /researchprojecttopics][%d] createResearchProjectTopicCreated ", 201) +} + +func (o *CreateResearchProjectTopicCreated) String() string { + return fmt.Sprintf("[POST /researchprojecttopics][%d] createResearchProjectTopicCreated ", 201) +} + +func (o *CreateResearchProjectTopicCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_ticket_parameters.go b/api/members/members_client/operations/create_ticket_parameters.go new file mode 100644 index 0000000..53df858 --- /dev/null +++ b/api/members/members_client/operations/create_ticket_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateTicketParams creates a new CreateTicketParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateTicketParams() *CreateTicketParams { + return &CreateTicketParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateTicketParamsWithTimeout creates a new CreateTicketParams object +// with the ability to set a timeout on a request. +func NewCreateTicketParamsWithTimeout(timeout time.Duration) *CreateTicketParams { + return &CreateTicketParams{ + timeout: timeout, + } +} + +// NewCreateTicketParamsWithContext creates a new CreateTicketParams object +// with the ability to set a context for a request. +func NewCreateTicketParamsWithContext(ctx context.Context) *CreateTicketParams { + return &CreateTicketParams{ + Context: ctx, + } +} + +// NewCreateTicketParamsWithHTTPClient creates a new CreateTicketParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateTicketParamsWithHTTPClient(client *http.Client) *CreateTicketParams { + return &CreateTicketParams{ + HTTPClient: client, + } +} + +/* +CreateTicketParams contains all the parameters to send to the API endpoint + + for the create ticket operation. + + Typically these are written to a http.Request. +*/ +type CreateTicketParams struct { + + /* TicketRequest. + + An array of new Ticket records + */ + TicketRequest *members_models.TicketRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create ticket params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateTicketParams) WithDefaults() *CreateTicketParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create ticket params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateTicketParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create ticket params +func (o *CreateTicketParams) WithTimeout(timeout time.Duration) *CreateTicketParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create ticket params +func (o *CreateTicketParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create ticket params +func (o *CreateTicketParams) WithContext(ctx context.Context) *CreateTicketParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create ticket params +func (o *CreateTicketParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create ticket params +func (o *CreateTicketParams) WithHTTPClient(client *http.Client) *CreateTicketParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create ticket params +func (o *CreateTicketParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithTicketRequest adds the ticketRequest to the create ticket params +func (o *CreateTicketParams) WithTicketRequest(ticketRequest *members_models.TicketRequest) *CreateTicketParams { + o.SetTicketRequest(ticketRequest) + return o +} + +// SetTicketRequest adds the ticketRequest to the create ticket params +func (o *CreateTicketParams) SetTicketRequest(ticketRequest *members_models.TicketRequest) { + o.TicketRequest = ticketRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.TicketRequest != nil { + if err := r.SetBodyParam(o.TicketRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_ticket_responses.go b/api/members/members_client/operations/create_ticket_responses.go new file mode 100644 index 0000000..edd2869 --- /dev/null +++ b/api/members/members_client/operations/create_ticket_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateTicketReader is a Reader for the CreateTicket structure. +type CreateTicketReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateTicketReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateTicketCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateTicketCreated creates a CreateTicketCreated with default headers values +func NewCreateTicketCreated() *CreateTicketCreated { + return &CreateTicketCreated{} +} + +/* +CreateTicketCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateTicketCreated struct { +} + +// IsSuccess returns true when this create ticket created response has a 2xx status code +func (o *CreateTicketCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create ticket created response has a 3xx status code +func (o *CreateTicketCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create ticket created response has a 4xx status code +func (o *CreateTicketCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create ticket created response has a 5xx status code +func (o *CreateTicketCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create ticket created response a status code equal to that given +func (o *CreateTicketCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create ticket created response +func (o *CreateTicketCreated) Code() int { + return 201 +} + +func (o *CreateTicketCreated) Error() string { + return fmt.Sprintf("[POST /tickets][%d] createTicketCreated ", 201) +} + +func (o *CreateTicketCreated) String() string { + return fmt.Sprintf("[POST /tickets][%d] createTicketCreated ", 201) +} + +func (o *CreateTicketCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/create_transaction_parameters.go b/api/members/members_client/operations/create_transaction_parameters.go new file mode 100644 index 0000000..6baee3e --- /dev/null +++ b/api/members/members_client/operations/create_transaction_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/members/members_models" +) + +// NewCreateTransactionParams creates a new CreateTransactionParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateTransactionParams() *CreateTransactionParams { + return &CreateTransactionParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateTransactionParamsWithTimeout creates a new CreateTransactionParams object +// with the ability to set a timeout on a request. +func NewCreateTransactionParamsWithTimeout(timeout time.Duration) *CreateTransactionParams { + return &CreateTransactionParams{ + timeout: timeout, + } +} + +// NewCreateTransactionParamsWithContext creates a new CreateTransactionParams object +// with the ability to set a context for a request. +func NewCreateTransactionParamsWithContext(ctx context.Context) *CreateTransactionParams { + return &CreateTransactionParams{ + Context: ctx, + } +} + +// NewCreateTransactionParamsWithHTTPClient creates a new CreateTransactionParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateTransactionParamsWithHTTPClient(client *http.Client) *CreateTransactionParams { + return &CreateTransactionParams{ + HTTPClient: client, + } +} + +/* +CreateTransactionParams contains all the parameters to send to the API endpoint + + for the create transaction operation. + + Typically these are written to a http.Request. +*/ +type CreateTransactionParams struct { + + /* TransactionRequest. + + An array of new Transaction records + */ + TransactionRequest *members_models.TransactionRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create transaction params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateTransactionParams) WithDefaults() *CreateTransactionParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create transaction params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateTransactionParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create transaction params +func (o *CreateTransactionParams) WithTimeout(timeout time.Duration) *CreateTransactionParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create transaction params +func (o *CreateTransactionParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create transaction params +func (o *CreateTransactionParams) WithContext(ctx context.Context) *CreateTransactionParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create transaction params +func (o *CreateTransactionParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create transaction params +func (o *CreateTransactionParams) WithHTTPClient(client *http.Client) *CreateTransactionParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create transaction params +func (o *CreateTransactionParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithTransactionRequest adds the transactionRequest to the create transaction params +func (o *CreateTransactionParams) WithTransactionRequest(transactionRequest *members_models.TransactionRequest) *CreateTransactionParams { + o.SetTransactionRequest(transactionRequest) + return o +} + +// SetTransactionRequest adds the transactionRequest to the create transaction params +func (o *CreateTransactionParams) SetTransactionRequest(transactionRequest *members_models.TransactionRequest) { + o.TransactionRequest = transactionRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.TransactionRequest != nil { + if err := r.SetBodyParam(o.TransactionRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/create_transaction_responses.go b/api/members/members_client/operations/create_transaction_responses.go new file mode 100644 index 0000000..e7bf53f --- /dev/null +++ b/api/members/members_client/operations/create_transaction_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// CreateTransactionReader is a Reader for the CreateTransaction structure. +type CreateTransactionReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateTransactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewCreateTransactionCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCreateTransactionCreated creates a CreateTransactionCreated with default headers values +func NewCreateTransactionCreated() *CreateTransactionCreated { + return &CreateTransactionCreated{} +} + +/* +CreateTransactionCreated describes a response with status code 201, with default header values. + +Created +*/ +type CreateTransactionCreated struct { +} + +// IsSuccess returns true when this create transaction created response has a 2xx status code +func (o *CreateTransactionCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create transaction created response has a 3xx status code +func (o *CreateTransactionCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create transaction created response has a 4xx status code +func (o *CreateTransactionCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this create transaction created response has a 5xx status code +func (o *CreateTransactionCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this create transaction created response a status code equal to that given +func (o *CreateTransactionCreated) IsCode(code int) bool { + return code == 201 +} + +// Code gets the status code for the create transaction created response +func (o *CreateTransactionCreated) Code() int { + return 201 +} + +func (o *CreateTransactionCreated) Error() string { + return fmt.Sprintf("[POST /transactions][%d] createTransactionCreated ", 201) +} + +func (o *CreateTransactionCreated) String() string { + return fmt.Sprintf("[POST /transactions][%d] createTransactionCreated ", 201) +} + +func (o *CreateTransactionCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_attendee_parameters.go b/api/members/members_client/operations/delete_attendee_parameters.go new file mode 100644 index 0000000..e826552 --- /dev/null +++ b/api/members/members_client/operations/delete_attendee_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteAttendeeParams creates a new DeleteAttendeeParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteAttendeeParams() *DeleteAttendeeParams { + return &DeleteAttendeeParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteAttendeeParamsWithTimeout creates a new DeleteAttendeeParams object +// with the ability to set a timeout on a request. +func NewDeleteAttendeeParamsWithTimeout(timeout time.Duration) *DeleteAttendeeParams { + return &DeleteAttendeeParams{ + timeout: timeout, + } +} + +// NewDeleteAttendeeParamsWithContext creates a new DeleteAttendeeParams object +// with the ability to set a context for a request. +func NewDeleteAttendeeParamsWithContext(ctx context.Context) *DeleteAttendeeParams { + return &DeleteAttendeeParams{ + Context: ctx, + } +} + +// NewDeleteAttendeeParamsWithHTTPClient creates a new DeleteAttendeeParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteAttendeeParamsWithHTTPClient(client *http.Client) *DeleteAttendeeParams { + return &DeleteAttendeeParams{ + HTTPClient: client, + } +} + +/* +DeleteAttendeeParams contains all the parameters to send to the API endpoint + + for the delete attendee operation. + + Typically these are written to a http.Request. +*/ +type DeleteAttendeeParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete attendee params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteAttendeeParams) WithDefaults() *DeleteAttendeeParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete attendee params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteAttendeeParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete attendee params +func (o *DeleteAttendeeParams) WithTimeout(timeout time.Duration) *DeleteAttendeeParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete attendee params +func (o *DeleteAttendeeParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete attendee params +func (o *DeleteAttendeeParams) WithContext(ctx context.Context) *DeleteAttendeeParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete attendee params +func (o *DeleteAttendeeParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete attendee params +func (o *DeleteAttendeeParams) WithHTTPClient(client *http.Client) *DeleteAttendeeParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete attendee params +func (o *DeleteAttendeeParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete attendee params +func (o *DeleteAttendeeParams) WithID(id *string) *DeleteAttendeeParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete attendee params +func (o *DeleteAttendeeParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteAttendeeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_attendee_responses.go b/api/members/members_client/operations/delete_attendee_responses.go new file mode 100644 index 0000000..1cd0309 --- /dev/null +++ b/api/members/members_client/operations/delete_attendee_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteAttendeeReader is a Reader for the DeleteAttendee structure. +type DeleteAttendeeReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteAttendeeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteAttendeeNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteAttendeeNoContent creates a DeleteAttendeeNoContent with default headers values +func NewDeleteAttendeeNoContent() *DeleteAttendeeNoContent { + return &DeleteAttendeeNoContent{} +} + +/* +DeleteAttendeeNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteAttendeeNoContent struct { +} + +// IsSuccess returns true when this delete attendee no content response has a 2xx status code +func (o *DeleteAttendeeNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete attendee no content response has a 3xx status code +func (o *DeleteAttendeeNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete attendee no content response has a 4xx status code +func (o *DeleteAttendeeNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete attendee no content response has a 5xx status code +func (o *DeleteAttendeeNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete attendee no content response a status code equal to that given +func (o *DeleteAttendeeNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete attendee no content response +func (o *DeleteAttendeeNoContent) Code() int { + return 204 +} + +func (o *DeleteAttendeeNoContent) Error() string { + return fmt.Sprintf("[DELETE /attendees][%d] deleteAttendeeNoContent ", 204) +} + +func (o *DeleteAttendeeNoContent) String() string { + return fmt.Sprintf("[DELETE /attendees][%d] deleteAttendeeNoContent ", 204) +} + +func (o *DeleteAttendeeNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_certificate_parameters.go b/api/members/members_client/operations/delete_certificate_parameters.go new file mode 100644 index 0000000..740b2eb --- /dev/null +++ b/api/members/members_client/operations/delete_certificate_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteCertificateParams creates a new DeleteCertificateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteCertificateParams() *DeleteCertificateParams { + return &DeleteCertificateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteCertificateParamsWithTimeout creates a new DeleteCertificateParams object +// with the ability to set a timeout on a request. +func NewDeleteCertificateParamsWithTimeout(timeout time.Duration) *DeleteCertificateParams { + return &DeleteCertificateParams{ + timeout: timeout, + } +} + +// NewDeleteCertificateParamsWithContext creates a new DeleteCertificateParams object +// with the ability to set a context for a request. +func NewDeleteCertificateParamsWithContext(ctx context.Context) *DeleteCertificateParams { + return &DeleteCertificateParams{ + Context: ctx, + } +} + +// NewDeleteCertificateParamsWithHTTPClient creates a new DeleteCertificateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteCertificateParamsWithHTTPClient(client *http.Client) *DeleteCertificateParams { + return &DeleteCertificateParams{ + HTTPClient: client, + } +} + +/* +DeleteCertificateParams contains all the parameters to send to the API endpoint + + for the delete certificate operation. + + Typically these are written to a http.Request. +*/ +type DeleteCertificateParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCertificateParams) WithDefaults() *DeleteCertificateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCertificateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete certificate params +func (o *DeleteCertificateParams) WithTimeout(timeout time.Duration) *DeleteCertificateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete certificate params +func (o *DeleteCertificateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete certificate params +func (o *DeleteCertificateParams) WithContext(ctx context.Context) *DeleteCertificateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete certificate params +func (o *DeleteCertificateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete certificate params +func (o *DeleteCertificateParams) WithHTTPClient(client *http.Client) *DeleteCertificateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete certificate params +func (o *DeleteCertificateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete certificate params +func (o *DeleteCertificateParams) WithID(id *string) *DeleteCertificateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete certificate params +func (o *DeleteCertificateParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteCertificateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_certificate_responses.go b/api/members/members_client/operations/delete_certificate_responses.go new file mode 100644 index 0000000..647306c --- /dev/null +++ b/api/members/members_client/operations/delete_certificate_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteCertificateReader is a Reader for the DeleteCertificate structure. +type DeleteCertificateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteCertificateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteCertificateNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteCertificateNoContent creates a DeleteCertificateNoContent with default headers values +func NewDeleteCertificateNoContent() *DeleteCertificateNoContent { + return &DeleteCertificateNoContent{} +} + +/* +DeleteCertificateNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteCertificateNoContent struct { +} + +// IsSuccess returns true when this delete certificate no content response has a 2xx status code +func (o *DeleteCertificateNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete certificate no content response has a 3xx status code +func (o *DeleteCertificateNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete certificate no content response has a 4xx status code +func (o *DeleteCertificateNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete certificate no content response has a 5xx status code +func (o *DeleteCertificateNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete certificate no content response a status code equal to that given +func (o *DeleteCertificateNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete certificate no content response +func (o *DeleteCertificateNoContent) Code() int { + return 204 +} + +func (o *DeleteCertificateNoContent) Error() string { + return fmt.Sprintf("[DELETE /certificates][%d] deleteCertificateNoContent ", 204) +} + +func (o *DeleteCertificateNoContent) String() string { + return fmt.Sprintf("[DELETE /certificates][%d] deleteCertificateNoContent ", 204) +} + +func (o *DeleteCertificateNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_course_lesson_parameters.go b/api/members/members_client/operations/delete_course_lesson_parameters.go new file mode 100644 index 0000000..cfac4e1 --- /dev/null +++ b/api/members/members_client/operations/delete_course_lesson_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteCourseLessonParams creates a new DeleteCourseLessonParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteCourseLessonParams() *DeleteCourseLessonParams { + return &DeleteCourseLessonParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteCourseLessonParamsWithTimeout creates a new DeleteCourseLessonParams object +// with the ability to set a timeout on a request. +func NewDeleteCourseLessonParamsWithTimeout(timeout time.Duration) *DeleteCourseLessonParams { + return &DeleteCourseLessonParams{ + timeout: timeout, + } +} + +// NewDeleteCourseLessonParamsWithContext creates a new DeleteCourseLessonParams object +// with the ability to set a context for a request. +func NewDeleteCourseLessonParamsWithContext(ctx context.Context) *DeleteCourseLessonParams { + return &DeleteCourseLessonParams{ + Context: ctx, + } +} + +// NewDeleteCourseLessonParamsWithHTTPClient creates a new DeleteCourseLessonParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteCourseLessonParamsWithHTTPClient(client *http.Client) *DeleteCourseLessonParams { + return &DeleteCourseLessonParams{ + HTTPClient: client, + } +} + +/* +DeleteCourseLessonParams contains all the parameters to send to the API endpoint + + for the delete course lesson operation. + + Typically these are written to a http.Request. +*/ +type DeleteCourseLessonParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete course lesson params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCourseLessonParams) WithDefaults() *DeleteCourseLessonParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete course lesson params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCourseLessonParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete course lesson params +func (o *DeleteCourseLessonParams) WithTimeout(timeout time.Duration) *DeleteCourseLessonParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete course lesson params +func (o *DeleteCourseLessonParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete course lesson params +func (o *DeleteCourseLessonParams) WithContext(ctx context.Context) *DeleteCourseLessonParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete course lesson params +func (o *DeleteCourseLessonParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete course lesson params +func (o *DeleteCourseLessonParams) WithHTTPClient(client *http.Client) *DeleteCourseLessonParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete course lesson params +func (o *DeleteCourseLessonParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete course lesson params +func (o *DeleteCourseLessonParams) WithID(id *string) *DeleteCourseLessonParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete course lesson params +func (o *DeleteCourseLessonParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteCourseLessonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_course_lesson_responses.go b/api/members/members_client/operations/delete_course_lesson_responses.go new file mode 100644 index 0000000..fb5948a --- /dev/null +++ b/api/members/members_client/operations/delete_course_lesson_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteCourseLessonReader is a Reader for the DeleteCourseLesson structure. +type DeleteCourseLessonReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteCourseLessonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteCourseLessonNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteCourseLessonNoContent creates a DeleteCourseLessonNoContent with default headers values +func NewDeleteCourseLessonNoContent() *DeleteCourseLessonNoContent { + return &DeleteCourseLessonNoContent{} +} + +/* +DeleteCourseLessonNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteCourseLessonNoContent struct { +} + +// IsSuccess returns true when this delete course lesson no content response has a 2xx status code +func (o *DeleteCourseLessonNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete course lesson no content response has a 3xx status code +func (o *DeleteCourseLessonNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete course lesson no content response has a 4xx status code +func (o *DeleteCourseLessonNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete course lesson no content response has a 5xx status code +func (o *DeleteCourseLessonNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete course lesson no content response a status code equal to that given +func (o *DeleteCourseLessonNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete course lesson no content response +func (o *DeleteCourseLessonNoContent) Code() int { + return 204 +} + +func (o *DeleteCourseLessonNoContent) Error() string { + return fmt.Sprintf("[DELETE /courselessons][%d] deleteCourseLessonNoContent ", 204) +} + +func (o *DeleteCourseLessonNoContent) String() string { + return fmt.Sprintf("[DELETE /courselessons][%d] deleteCourseLessonNoContent ", 204) +} + +func (o *DeleteCourseLessonNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_course_parameters.go b/api/members/members_client/operations/delete_course_parameters.go new file mode 100644 index 0000000..306e3cc --- /dev/null +++ b/api/members/members_client/operations/delete_course_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteCourseParams creates a new DeleteCourseParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteCourseParams() *DeleteCourseParams { + return &DeleteCourseParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteCourseParamsWithTimeout creates a new DeleteCourseParams object +// with the ability to set a timeout on a request. +func NewDeleteCourseParamsWithTimeout(timeout time.Duration) *DeleteCourseParams { + return &DeleteCourseParams{ + timeout: timeout, + } +} + +// NewDeleteCourseParamsWithContext creates a new DeleteCourseParams object +// with the ability to set a context for a request. +func NewDeleteCourseParamsWithContext(ctx context.Context) *DeleteCourseParams { + return &DeleteCourseParams{ + Context: ctx, + } +} + +// NewDeleteCourseParamsWithHTTPClient creates a new DeleteCourseParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteCourseParamsWithHTTPClient(client *http.Client) *DeleteCourseParams { + return &DeleteCourseParams{ + HTTPClient: client, + } +} + +/* +DeleteCourseParams contains all the parameters to send to the API endpoint + + for the delete course operation. + + Typically these are written to a http.Request. +*/ +type DeleteCourseParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete course params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCourseParams) WithDefaults() *DeleteCourseParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete course params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCourseParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete course params +func (o *DeleteCourseParams) WithTimeout(timeout time.Duration) *DeleteCourseParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete course params +func (o *DeleteCourseParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete course params +func (o *DeleteCourseParams) WithContext(ctx context.Context) *DeleteCourseParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete course params +func (o *DeleteCourseParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete course params +func (o *DeleteCourseParams) WithHTTPClient(client *http.Client) *DeleteCourseParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete course params +func (o *DeleteCourseParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete course params +func (o *DeleteCourseParams) WithID(id *string) *DeleteCourseParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete course params +func (o *DeleteCourseParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteCourseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_course_responses.go b/api/members/members_client/operations/delete_course_responses.go new file mode 100644 index 0000000..c18a782 --- /dev/null +++ b/api/members/members_client/operations/delete_course_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteCourseReader is a Reader for the DeleteCourse structure. +type DeleteCourseReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteCourseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteCourseNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteCourseNoContent creates a DeleteCourseNoContent with default headers values +func NewDeleteCourseNoContent() *DeleteCourseNoContent { + return &DeleteCourseNoContent{} +} + +/* +DeleteCourseNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteCourseNoContent struct { +} + +// IsSuccess returns true when this delete course no content response has a 2xx status code +func (o *DeleteCourseNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete course no content response has a 3xx status code +func (o *DeleteCourseNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete course no content response has a 4xx status code +func (o *DeleteCourseNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete course no content response has a 5xx status code +func (o *DeleteCourseNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete course no content response a status code equal to that given +func (o *DeleteCourseNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete course no content response +func (o *DeleteCourseNoContent) Code() int { + return 204 +} + +func (o *DeleteCourseNoContent) Error() string { + return fmt.Sprintf("[DELETE /courses][%d] deleteCourseNoContent ", 204) +} + +func (o *DeleteCourseNoContent) String() string { + return fmt.Sprintf("[DELETE /courses][%d] deleteCourseNoContent ", 204) +} + +func (o *DeleteCourseNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_course_section_parameters.go b/api/members/members_client/operations/delete_course_section_parameters.go new file mode 100644 index 0000000..9933ac9 --- /dev/null +++ b/api/members/members_client/operations/delete_course_section_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteCourseSectionParams creates a new DeleteCourseSectionParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteCourseSectionParams() *DeleteCourseSectionParams { + return &DeleteCourseSectionParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteCourseSectionParamsWithTimeout creates a new DeleteCourseSectionParams object +// with the ability to set a timeout on a request. +func NewDeleteCourseSectionParamsWithTimeout(timeout time.Duration) *DeleteCourseSectionParams { + return &DeleteCourseSectionParams{ + timeout: timeout, + } +} + +// NewDeleteCourseSectionParamsWithContext creates a new DeleteCourseSectionParams object +// with the ability to set a context for a request. +func NewDeleteCourseSectionParamsWithContext(ctx context.Context) *DeleteCourseSectionParams { + return &DeleteCourseSectionParams{ + Context: ctx, + } +} + +// NewDeleteCourseSectionParamsWithHTTPClient creates a new DeleteCourseSectionParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteCourseSectionParamsWithHTTPClient(client *http.Client) *DeleteCourseSectionParams { + return &DeleteCourseSectionParams{ + HTTPClient: client, + } +} + +/* +DeleteCourseSectionParams contains all the parameters to send to the API endpoint + + for the delete course section operation. + + Typically these are written to a http.Request. +*/ +type DeleteCourseSectionParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete course section params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCourseSectionParams) WithDefaults() *DeleteCourseSectionParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete course section params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteCourseSectionParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete course section params +func (o *DeleteCourseSectionParams) WithTimeout(timeout time.Duration) *DeleteCourseSectionParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete course section params +func (o *DeleteCourseSectionParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete course section params +func (o *DeleteCourseSectionParams) WithContext(ctx context.Context) *DeleteCourseSectionParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete course section params +func (o *DeleteCourseSectionParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete course section params +func (o *DeleteCourseSectionParams) WithHTTPClient(client *http.Client) *DeleteCourseSectionParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete course section params +func (o *DeleteCourseSectionParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete course section params +func (o *DeleteCourseSectionParams) WithID(id *string) *DeleteCourseSectionParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete course section params +func (o *DeleteCourseSectionParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteCourseSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_course_section_responses.go b/api/members/members_client/operations/delete_course_section_responses.go new file mode 100644 index 0000000..cb3074a --- /dev/null +++ b/api/members/members_client/operations/delete_course_section_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteCourseSectionReader is a Reader for the DeleteCourseSection structure. +type DeleteCourseSectionReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteCourseSectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteCourseSectionNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteCourseSectionNoContent creates a DeleteCourseSectionNoContent with default headers values +func NewDeleteCourseSectionNoContent() *DeleteCourseSectionNoContent { + return &DeleteCourseSectionNoContent{} +} + +/* +DeleteCourseSectionNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteCourseSectionNoContent struct { +} + +// IsSuccess returns true when this delete course section no content response has a 2xx status code +func (o *DeleteCourseSectionNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete course section no content response has a 3xx status code +func (o *DeleteCourseSectionNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete course section no content response has a 4xx status code +func (o *DeleteCourseSectionNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete course section no content response has a 5xx status code +func (o *DeleteCourseSectionNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete course section no content response a status code equal to that given +func (o *DeleteCourseSectionNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete course section no content response +func (o *DeleteCourseSectionNoContent) Code() int { + return 204 +} + +func (o *DeleteCourseSectionNoContent) Error() string { + return fmt.Sprintf("[DELETE /coursesections][%d] deleteCourseSectionNoContent ", 204) +} + +func (o *DeleteCourseSectionNoContent) String() string { + return fmt.Sprintf("[DELETE /coursesections][%d] deleteCourseSectionNoContent ", 204) +} + +func (o *DeleteCourseSectionNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_enrollment_parameters.go b/api/members/members_client/operations/delete_enrollment_parameters.go new file mode 100644 index 0000000..64d78bf --- /dev/null +++ b/api/members/members_client/operations/delete_enrollment_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteEnrollmentParams creates a new DeleteEnrollmentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteEnrollmentParams() *DeleteEnrollmentParams { + return &DeleteEnrollmentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteEnrollmentParamsWithTimeout creates a new DeleteEnrollmentParams object +// with the ability to set a timeout on a request. +func NewDeleteEnrollmentParamsWithTimeout(timeout time.Duration) *DeleteEnrollmentParams { + return &DeleteEnrollmentParams{ + timeout: timeout, + } +} + +// NewDeleteEnrollmentParamsWithContext creates a new DeleteEnrollmentParams object +// with the ability to set a context for a request. +func NewDeleteEnrollmentParamsWithContext(ctx context.Context) *DeleteEnrollmentParams { + return &DeleteEnrollmentParams{ + Context: ctx, + } +} + +// NewDeleteEnrollmentParamsWithHTTPClient creates a new DeleteEnrollmentParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteEnrollmentParamsWithHTTPClient(client *http.Client) *DeleteEnrollmentParams { + return &DeleteEnrollmentParams{ + HTTPClient: client, + } +} + +/* +DeleteEnrollmentParams contains all the parameters to send to the API endpoint + + for the delete enrollment operation. + + Typically these are written to a http.Request. +*/ +type DeleteEnrollmentParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete enrollment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEnrollmentParams) WithDefaults() *DeleteEnrollmentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete enrollment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEnrollmentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete enrollment params +func (o *DeleteEnrollmentParams) WithTimeout(timeout time.Duration) *DeleteEnrollmentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete enrollment params +func (o *DeleteEnrollmentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete enrollment params +func (o *DeleteEnrollmentParams) WithContext(ctx context.Context) *DeleteEnrollmentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete enrollment params +func (o *DeleteEnrollmentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete enrollment params +func (o *DeleteEnrollmentParams) WithHTTPClient(client *http.Client) *DeleteEnrollmentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete enrollment params +func (o *DeleteEnrollmentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete enrollment params +func (o *DeleteEnrollmentParams) WithID(id *string) *DeleteEnrollmentParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete enrollment params +func (o *DeleteEnrollmentParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_enrollment_responses.go b/api/members/members_client/operations/delete_enrollment_responses.go new file mode 100644 index 0000000..b3382e1 --- /dev/null +++ b/api/members/members_client/operations/delete_enrollment_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteEnrollmentReader is a Reader for the DeleteEnrollment structure. +type DeleteEnrollmentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteEnrollmentNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteEnrollmentNoContent creates a DeleteEnrollmentNoContent with default headers values +func NewDeleteEnrollmentNoContent() *DeleteEnrollmentNoContent { + return &DeleteEnrollmentNoContent{} +} + +/* +DeleteEnrollmentNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteEnrollmentNoContent struct { +} + +// IsSuccess returns true when this delete enrollment no content response has a 2xx status code +func (o *DeleteEnrollmentNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete enrollment no content response has a 3xx status code +func (o *DeleteEnrollmentNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete enrollment no content response has a 4xx status code +func (o *DeleteEnrollmentNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete enrollment no content response has a 5xx status code +func (o *DeleteEnrollmentNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete enrollment no content response a status code equal to that given +func (o *DeleteEnrollmentNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete enrollment no content response +func (o *DeleteEnrollmentNoContent) Code() int { + return 204 +} + +func (o *DeleteEnrollmentNoContent) Error() string { + return fmt.Sprintf("[DELETE /enrollments][%d] deleteEnrollmentNoContent ", 204) +} + +func (o *DeleteEnrollmentNoContent) String() string { + return fmt.Sprintf("[DELETE /enrollments][%d] deleteEnrollmentNoContent ", 204) +} + +func (o *DeleteEnrollmentNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_event_category_assignment_parameters.go b/api/members/members_client/operations/delete_event_category_assignment_parameters.go new file mode 100644 index 0000000..4593fe0 --- /dev/null +++ b/api/members/members_client/operations/delete_event_category_assignment_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteEventCategoryAssignmentParams creates a new DeleteEventCategoryAssignmentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteEventCategoryAssignmentParams() *DeleteEventCategoryAssignmentParams { + return &DeleteEventCategoryAssignmentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteEventCategoryAssignmentParamsWithTimeout creates a new DeleteEventCategoryAssignmentParams object +// with the ability to set a timeout on a request. +func NewDeleteEventCategoryAssignmentParamsWithTimeout(timeout time.Duration) *DeleteEventCategoryAssignmentParams { + return &DeleteEventCategoryAssignmentParams{ + timeout: timeout, + } +} + +// NewDeleteEventCategoryAssignmentParamsWithContext creates a new DeleteEventCategoryAssignmentParams object +// with the ability to set a context for a request. +func NewDeleteEventCategoryAssignmentParamsWithContext(ctx context.Context) *DeleteEventCategoryAssignmentParams { + return &DeleteEventCategoryAssignmentParams{ + Context: ctx, + } +} + +// NewDeleteEventCategoryAssignmentParamsWithHTTPClient creates a new DeleteEventCategoryAssignmentParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteEventCategoryAssignmentParamsWithHTTPClient(client *http.Client) *DeleteEventCategoryAssignmentParams { + return &DeleteEventCategoryAssignmentParams{ + HTTPClient: client, + } +} + +/* +DeleteEventCategoryAssignmentParams contains all the parameters to send to the API endpoint + + for the delete event category assignment operation. + + Typically these are written to a http.Request. +*/ +type DeleteEventCategoryAssignmentParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete event category assignment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEventCategoryAssignmentParams) WithDefaults() *DeleteEventCategoryAssignmentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete event category assignment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEventCategoryAssignmentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) WithTimeout(timeout time.Duration) *DeleteEventCategoryAssignmentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) WithContext(ctx context.Context) *DeleteEventCategoryAssignmentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) WithHTTPClient(client *http.Client) *DeleteEventCategoryAssignmentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) WithID(id *string) *DeleteEventCategoryAssignmentParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete event category assignment params +func (o *DeleteEventCategoryAssignmentParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteEventCategoryAssignmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_event_category_assignment_responses.go b/api/members/members_client/operations/delete_event_category_assignment_responses.go new file mode 100644 index 0000000..0e01148 --- /dev/null +++ b/api/members/members_client/operations/delete_event_category_assignment_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteEventCategoryAssignmentReader is a Reader for the DeleteEventCategoryAssignment structure. +type DeleteEventCategoryAssignmentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteEventCategoryAssignmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteEventCategoryAssignmentNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteEventCategoryAssignmentNoContent creates a DeleteEventCategoryAssignmentNoContent with default headers values +func NewDeleteEventCategoryAssignmentNoContent() *DeleteEventCategoryAssignmentNoContent { + return &DeleteEventCategoryAssignmentNoContent{} +} + +/* +DeleteEventCategoryAssignmentNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteEventCategoryAssignmentNoContent struct { +} + +// IsSuccess returns true when this delete event category assignment no content response has a 2xx status code +func (o *DeleteEventCategoryAssignmentNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete event category assignment no content response has a 3xx status code +func (o *DeleteEventCategoryAssignmentNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete event category assignment no content response has a 4xx status code +func (o *DeleteEventCategoryAssignmentNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete event category assignment no content response has a 5xx status code +func (o *DeleteEventCategoryAssignmentNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete event category assignment no content response a status code equal to that given +func (o *DeleteEventCategoryAssignmentNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete event category assignment no content response +func (o *DeleteEventCategoryAssignmentNoContent) Code() int { + return 204 +} + +func (o *DeleteEventCategoryAssignmentNoContent) Error() string { + return fmt.Sprintf("[DELETE /eventcategoryassignments][%d] deleteEventCategoryAssignmentNoContent ", 204) +} + +func (o *DeleteEventCategoryAssignmentNoContent) String() string { + return fmt.Sprintf("[DELETE /eventcategoryassignments][%d] deleteEventCategoryAssignmentNoContent ", 204) +} + +func (o *DeleteEventCategoryAssignmentNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_event_category_parameters.go b/api/members/members_client/operations/delete_event_category_parameters.go new file mode 100644 index 0000000..55a1154 --- /dev/null +++ b/api/members/members_client/operations/delete_event_category_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteEventCategoryParams creates a new DeleteEventCategoryParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteEventCategoryParams() *DeleteEventCategoryParams { + return &DeleteEventCategoryParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteEventCategoryParamsWithTimeout creates a new DeleteEventCategoryParams object +// with the ability to set a timeout on a request. +func NewDeleteEventCategoryParamsWithTimeout(timeout time.Duration) *DeleteEventCategoryParams { + return &DeleteEventCategoryParams{ + timeout: timeout, + } +} + +// NewDeleteEventCategoryParamsWithContext creates a new DeleteEventCategoryParams object +// with the ability to set a context for a request. +func NewDeleteEventCategoryParamsWithContext(ctx context.Context) *DeleteEventCategoryParams { + return &DeleteEventCategoryParams{ + Context: ctx, + } +} + +// NewDeleteEventCategoryParamsWithHTTPClient creates a new DeleteEventCategoryParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteEventCategoryParamsWithHTTPClient(client *http.Client) *DeleteEventCategoryParams { + return &DeleteEventCategoryParams{ + HTTPClient: client, + } +} + +/* +DeleteEventCategoryParams contains all the parameters to send to the API endpoint + + for the delete event category operation. + + Typically these are written to a http.Request. +*/ +type DeleteEventCategoryParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete event category params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEventCategoryParams) WithDefaults() *DeleteEventCategoryParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete event category params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEventCategoryParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete event category params +func (o *DeleteEventCategoryParams) WithTimeout(timeout time.Duration) *DeleteEventCategoryParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete event category params +func (o *DeleteEventCategoryParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete event category params +func (o *DeleteEventCategoryParams) WithContext(ctx context.Context) *DeleteEventCategoryParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete event category params +func (o *DeleteEventCategoryParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete event category params +func (o *DeleteEventCategoryParams) WithHTTPClient(client *http.Client) *DeleteEventCategoryParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete event category params +func (o *DeleteEventCategoryParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete event category params +func (o *DeleteEventCategoryParams) WithID(id *string) *DeleteEventCategoryParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete event category params +func (o *DeleteEventCategoryParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteEventCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_event_category_responses.go b/api/members/members_client/operations/delete_event_category_responses.go new file mode 100644 index 0000000..ca56bbd --- /dev/null +++ b/api/members/members_client/operations/delete_event_category_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteEventCategoryReader is a Reader for the DeleteEventCategory structure. +type DeleteEventCategoryReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteEventCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteEventCategoryNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteEventCategoryNoContent creates a DeleteEventCategoryNoContent with default headers values +func NewDeleteEventCategoryNoContent() *DeleteEventCategoryNoContent { + return &DeleteEventCategoryNoContent{} +} + +/* +DeleteEventCategoryNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteEventCategoryNoContent struct { +} + +// IsSuccess returns true when this delete event category no content response has a 2xx status code +func (o *DeleteEventCategoryNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete event category no content response has a 3xx status code +func (o *DeleteEventCategoryNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete event category no content response has a 4xx status code +func (o *DeleteEventCategoryNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete event category no content response has a 5xx status code +func (o *DeleteEventCategoryNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete event category no content response a status code equal to that given +func (o *DeleteEventCategoryNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete event category no content response +func (o *DeleteEventCategoryNoContent) Code() int { + return 204 +} + +func (o *DeleteEventCategoryNoContent) Error() string { + return fmt.Sprintf("[DELETE /eventcategorys][%d] deleteEventCategoryNoContent ", 204) +} + +func (o *DeleteEventCategoryNoContent) String() string { + return fmt.Sprintf("[DELETE /eventcategorys][%d] deleteEventCategoryNoContent ", 204) +} + +func (o *DeleteEventCategoryNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_event_parameters.go b/api/members/members_client/operations/delete_event_parameters.go new file mode 100644 index 0000000..0bd76d9 --- /dev/null +++ b/api/members/members_client/operations/delete_event_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteEventParams creates a new DeleteEventParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteEventParams() *DeleteEventParams { + return &DeleteEventParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteEventParamsWithTimeout creates a new DeleteEventParams object +// with the ability to set a timeout on a request. +func NewDeleteEventParamsWithTimeout(timeout time.Duration) *DeleteEventParams { + return &DeleteEventParams{ + timeout: timeout, + } +} + +// NewDeleteEventParamsWithContext creates a new DeleteEventParams object +// with the ability to set a context for a request. +func NewDeleteEventParamsWithContext(ctx context.Context) *DeleteEventParams { + return &DeleteEventParams{ + Context: ctx, + } +} + +// NewDeleteEventParamsWithHTTPClient creates a new DeleteEventParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteEventParamsWithHTTPClient(client *http.Client) *DeleteEventParams { + return &DeleteEventParams{ + HTTPClient: client, + } +} + +/* +DeleteEventParams contains all the parameters to send to the API endpoint + + for the delete event operation. + + Typically these are written to a http.Request. +*/ +type DeleteEventParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete event params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEventParams) WithDefaults() *DeleteEventParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete event params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteEventParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete event params +func (o *DeleteEventParams) WithTimeout(timeout time.Duration) *DeleteEventParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete event params +func (o *DeleteEventParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete event params +func (o *DeleteEventParams) WithContext(ctx context.Context) *DeleteEventParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete event params +func (o *DeleteEventParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete event params +func (o *DeleteEventParams) WithHTTPClient(client *http.Client) *DeleteEventParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete event params +func (o *DeleteEventParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete event params +func (o *DeleteEventParams) WithID(id *string) *DeleteEventParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete event params +func (o *DeleteEventParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_event_responses.go b/api/members/members_client/operations/delete_event_responses.go new file mode 100644 index 0000000..96c6af9 --- /dev/null +++ b/api/members/members_client/operations/delete_event_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteEventReader is a Reader for the DeleteEvent structure. +type DeleteEventReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteEventNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteEventNoContent creates a DeleteEventNoContent with default headers values +func NewDeleteEventNoContent() *DeleteEventNoContent { + return &DeleteEventNoContent{} +} + +/* +DeleteEventNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteEventNoContent struct { +} + +// IsSuccess returns true when this delete event no content response has a 2xx status code +func (o *DeleteEventNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete event no content response has a 3xx status code +func (o *DeleteEventNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete event no content response has a 4xx status code +func (o *DeleteEventNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete event no content response has a 5xx status code +func (o *DeleteEventNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete event no content response a status code equal to that given +func (o *DeleteEventNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete event no content response +func (o *DeleteEventNoContent) Code() int { + return 204 +} + +func (o *DeleteEventNoContent) Error() string { + return fmt.Sprintf("[DELETE /events][%d] deleteEventNoContent ", 204) +} + +func (o *DeleteEventNoContent) String() string { + return fmt.Sprintf("[DELETE /events][%d] deleteEventNoContent ", 204) +} + +func (o *DeleteEventNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_favorite_parameters.go b/api/members/members_client/operations/delete_favorite_parameters.go new file mode 100644 index 0000000..c5d271d --- /dev/null +++ b/api/members/members_client/operations/delete_favorite_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteFavoriteParams creates a new DeleteFavoriteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteFavoriteParams() *DeleteFavoriteParams { + return &DeleteFavoriteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteFavoriteParamsWithTimeout creates a new DeleteFavoriteParams object +// with the ability to set a timeout on a request. +func NewDeleteFavoriteParamsWithTimeout(timeout time.Duration) *DeleteFavoriteParams { + return &DeleteFavoriteParams{ + timeout: timeout, + } +} + +// NewDeleteFavoriteParamsWithContext creates a new DeleteFavoriteParams object +// with the ability to set a context for a request. +func NewDeleteFavoriteParamsWithContext(ctx context.Context) *DeleteFavoriteParams { + return &DeleteFavoriteParams{ + Context: ctx, + } +} + +// NewDeleteFavoriteParamsWithHTTPClient creates a new DeleteFavoriteParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteFavoriteParamsWithHTTPClient(client *http.Client) *DeleteFavoriteParams { + return &DeleteFavoriteParams{ + HTTPClient: client, + } +} + +/* +DeleteFavoriteParams contains all the parameters to send to the API endpoint + + for the delete favorite operation. + + Typically these are written to a http.Request. +*/ +type DeleteFavoriteParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete favorite params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteFavoriteParams) WithDefaults() *DeleteFavoriteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete favorite params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteFavoriteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete favorite params +func (o *DeleteFavoriteParams) WithTimeout(timeout time.Duration) *DeleteFavoriteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete favorite params +func (o *DeleteFavoriteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete favorite params +func (o *DeleteFavoriteParams) WithContext(ctx context.Context) *DeleteFavoriteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete favorite params +func (o *DeleteFavoriteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete favorite params +func (o *DeleteFavoriteParams) WithHTTPClient(client *http.Client) *DeleteFavoriteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete favorite params +func (o *DeleteFavoriteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete favorite params +func (o *DeleteFavoriteParams) WithID(id *string) *DeleteFavoriteParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete favorite params +func (o *DeleteFavoriteParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteFavoriteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_favorite_responses.go b/api/members/members_client/operations/delete_favorite_responses.go new file mode 100644 index 0000000..f757eaf --- /dev/null +++ b/api/members/members_client/operations/delete_favorite_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteFavoriteReader is a Reader for the DeleteFavorite structure. +type DeleteFavoriteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteFavoriteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteFavoriteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteFavoriteNoContent creates a DeleteFavoriteNoContent with default headers values +func NewDeleteFavoriteNoContent() *DeleteFavoriteNoContent { + return &DeleteFavoriteNoContent{} +} + +/* +DeleteFavoriteNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteFavoriteNoContent struct { +} + +// IsSuccess returns true when this delete favorite no content response has a 2xx status code +func (o *DeleteFavoriteNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete favorite no content response has a 3xx status code +func (o *DeleteFavoriteNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete favorite no content response has a 4xx status code +func (o *DeleteFavoriteNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete favorite no content response has a 5xx status code +func (o *DeleteFavoriteNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete favorite no content response a status code equal to that given +func (o *DeleteFavoriteNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete favorite no content response +func (o *DeleteFavoriteNoContent) Code() int { + return 204 +} + +func (o *DeleteFavoriteNoContent) Error() string { + return fmt.Sprintf("[DELETE /favorites][%d] deleteFavoriteNoContent ", 204) +} + +func (o *DeleteFavoriteNoContent) String() string { + return fmt.Sprintf("[DELETE /favorites][%d] deleteFavoriteNoContent ", 204) +} + +func (o *DeleteFavoriteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_invoice_parameters.go b/api/members/members_client/operations/delete_invoice_parameters.go new file mode 100644 index 0000000..82248c5 --- /dev/null +++ b/api/members/members_client/operations/delete_invoice_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteInvoiceParams creates a new DeleteInvoiceParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteInvoiceParams() *DeleteInvoiceParams { + return &DeleteInvoiceParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteInvoiceParamsWithTimeout creates a new DeleteInvoiceParams object +// with the ability to set a timeout on a request. +func NewDeleteInvoiceParamsWithTimeout(timeout time.Duration) *DeleteInvoiceParams { + return &DeleteInvoiceParams{ + timeout: timeout, + } +} + +// NewDeleteInvoiceParamsWithContext creates a new DeleteInvoiceParams object +// with the ability to set a context for a request. +func NewDeleteInvoiceParamsWithContext(ctx context.Context) *DeleteInvoiceParams { + return &DeleteInvoiceParams{ + Context: ctx, + } +} + +// NewDeleteInvoiceParamsWithHTTPClient creates a new DeleteInvoiceParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteInvoiceParamsWithHTTPClient(client *http.Client) *DeleteInvoiceParams { + return &DeleteInvoiceParams{ + HTTPClient: client, + } +} + +/* +DeleteInvoiceParams contains all the parameters to send to the API endpoint + + for the delete invoice operation. + + Typically these are written to a http.Request. +*/ +type DeleteInvoiceParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete invoice params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteInvoiceParams) WithDefaults() *DeleteInvoiceParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete invoice params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteInvoiceParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete invoice params +func (o *DeleteInvoiceParams) WithTimeout(timeout time.Duration) *DeleteInvoiceParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete invoice params +func (o *DeleteInvoiceParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete invoice params +func (o *DeleteInvoiceParams) WithContext(ctx context.Context) *DeleteInvoiceParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete invoice params +func (o *DeleteInvoiceParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete invoice params +func (o *DeleteInvoiceParams) WithHTTPClient(client *http.Client) *DeleteInvoiceParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete invoice params +func (o *DeleteInvoiceParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete invoice params +func (o *DeleteInvoiceParams) WithID(id *string) *DeleteInvoiceParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete invoice params +func (o *DeleteInvoiceParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteInvoiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_invoice_responses.go b/api/members/members_client/operations/delete_invoice_responses.go new file mode 100644 index 0000000..fff13fc --- /dev/null +++ b/api/members/members_client/operations/delete_invoice_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteInvoiceReader is a Reader for the DeleteInvoice structure. +type DeleteInvoiceReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteInvoiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteInvoiceNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteInvoiceNoContent creates a DeleteInvoiceNoContent with default headers values +func NewDeleteInvoiceNoContent() *DeleteInvoiceNoContent { + return &DeleteInvoiceNoContent{} +} + +/* +DeleteInvoiceNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteInvoiceNoContent struct { +} + +// IsSuccess returns true when this delete invoice no content response has a 2xx status code +func (o *DeleteInvoiceNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete invoice no content response has a 3xx status code +func (o *DeleteInvoiceNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete invoice no content response has a 4xx status code +func (o *DeleteInvoiceNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete invoice no content response has a 5xx status code +func (o *DeleteInvoiceNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete invoice no content response a status code equal to that given +func (o *DeleteInvoiceNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete invoice no content response +func (o *DeleteInvoiceNoContent) Code() int { + return 204 +} + +func (o *DeleteInvoiceNoContent) Error() string { + return fmt.Sprintf("[DELETE /invoices][%d] deleteInvoiceNoContent ", 204) +} + +func (o *DeleteInvoiceNoContent) String() string { + return fmt.Sprintf("[DELETE /invoices][%d] deleteInvoiceNoContent ", 204) +} + +func (o *DeleteInvoiceNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_issued_certificate_parameters.go b/api/members/members_client/operations/delete_issued_certificate_parameters.go new file mode 100644 index 0000000..35b9acf --- /dev/null +++ b/api/members/members_client/operations/delete_issued_certificate_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteIssuedCertificateParams creates a new DeleteIssuedCertificateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteIssuedCertificateParams() *DeleteIssuedCertificateParams { + return &DeleteIssuedCertificateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteIssuedCertificateParamsWithTimeout creates a new DeleteIssuedCertificateParams object +// with the ability to set a timeout on a request. +func NewDeleteIssuedCertificateParamsWithTimeout(timeout time.Duration) *DeleteIssuedCertificateParams { + return &DeleteIssuedCertificateParams{ + timeout: timeout, + } +} + +// NewDeleteIssuedCertificateParamsWithContext creates a new DeleteIssuedCertificateParams object +// with the ability to set a context for a request. +func NewDeleteIssuedCertificateParamsWithContext(ctx context.Context) *DeleteIssuedCertificateParams { + return &DeleteIssuedCertificateParams{ + Context: ctx, + } +} + +// NewDeleteIssuedCertificateParamsWithHTTPClient creates a new DeleteIssuedCertificateParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteIssuedCertificateParamsWithHTTPClient(client *http.Client) *DeleteIssuedCertificateParams { + return &DeleteIssuedCertificateParams{ + HTTPClient: client, + } +} + +/* +DeleteIssuedCertificateParams contains all the parameters to send to the API endpoint + + for the delete issued certificate operation. + + Typically these are written to a http.Request. +*/ +type DeleteIssuedCertificateParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete issued certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteIssuedCertificateParams) WithDefaults() *DeleteIssuedCertificateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete issued certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteIssuedCertificateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) WithTimeout(timeout time.Duration) *DeleteIssuedCertificateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) WithContext(ctx context.Context) *DeleteIssuedCertificateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) WithHTTPClient(client *http.Client) *DeleteIssuedCertificateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) WithID(id *string) *DeleteIssuedCertificateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete issued certificate params +func (o *DeleteIssuedCertificateParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteIssuedCertificateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_issued_certificate_responses.go b/api/members/members_client/operations/delete_issued_certificate_responses.go new file mode 100644 index 0000000..50379b8 --- /dev/null +++ b/api/members/members_client/operations/delete_issued_certificate_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteIssuedCertificateReader is a Reader for the DeleteIssuedCertificate structure. +type DeleteIssuedCertificateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteIssuedCertificateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteIssuedCertificateNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteIssuedCertificateNoContent creates a DeleteIssuedCertificateNoContent with default headers values +func NewDeleteIssuedCertificateNoContent() *DeleteIssuedCertificateNoContent { + return &DeleteIssuedCertificateNoContent{} +} + +/* +DeleteIssuedCertificateNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteIssuedCertificateNoContent struct { +} + +// IsSuccess returns true when this delete issued certificate no content response has a 2xx status code +func (o *DeleteIssuedCertificateNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete issued certificate no content response has a 3xx status code +func (o *DeleteIssuedCertificateNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete issued certificate no content response has a 4xx status code +func (o *DeleteIssuedCertificateNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete issued certificate no content response has a 5xx status code +func (o *DeleteIssuedCertificateNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete issued certificate no content response a status code equal to that given +func (o *DeleteIssuedCertificateNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete issued certificate no content response +func (o *DeleteIssuedCertificateNoContent) Code() int { + return 204 +} + +func (o *DeleteIssuedCertificateNoContent) Error() string { + return fmt.Sprintf("[DELETE /issuedcertificates][%d] deleteIssuedCertificateNoContent ", 204) +} + +func (o *DeleteIssuedCertificateNoContent) String() string { + return fmt.Sprintf("[DELETE /issuedcertificates][%d] deleteIssuedCertificateNoContent ", 204) +} + +func (o *DeleteIssuedCertificateNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_lesson_progress_parameters.go b/api/members/members_client/operations/delete_lesson_progress_parameters.go new file mode 100644 index 0000000..e3042e5 --- /dev/null +++ b/api/members/members_client/operations/delete_lesson_progress_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteLessonProgressParams creates a new DeleteLessonProgressParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteLessonProgressParams() *DeleteLessonProgressParams { + return &DeleteLessonProgressParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteLessonProgressParamsWithTimeout creates a new DeleteLessonProgressParams object +// with the ability to set a timeout on a request. +func NewDeleteLessonProgressParamsWithTimeout(timeout time.Duration) *DeleteLessonProgressParams { + return &DeleteLessonProgressParams{ + timeout: timeout, + } +} + +// NewDeleteLessonProgressParamsWithContext creates a new DeleteLessonProgressParams object +// with the ability to set a context for a request. +func NewDeleteLessonProgressParamsWithContext(ctx context.Context) *DeleteLessonProgressParams { + return &DeleteLessonProgressParams{ + Context: ctx, + } +} + +// NewDeleteLessonProgressParamsWithHTTPClient creates a new DeleteLessonProgressParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteLessonProgressParamsWithHTTPClient(client *http.Client) *DeleteLessonProgressParams { + return &DeleteLessonProgressParams{ + HTTPClient: client, + } +} + +/* +DeleteLessonProgressParams contains all the parameters to send to the API endpoint + + for the delete lesson progress operation. + + Typically these are written to a http.Request. +*/ +type DeleteLessonProgressParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteLessonProgressParams) WithDefaults() *DeleteLessonProgressParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteLessonProgressParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete lesson progress params +func (o *DeleteLessonProgressParams) WithTimeout(timeout time.Duration) *DeleteLessonProgressParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete lesson progress params +func (o *DeleteLessonProgressParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete lesson progress params +func (o *DeleteLessonProgressParams) WithContext(ctx context.Context) *DeleteLessonProgressParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete lesson progress params +func (o *DeleteLessonProgressParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete lesson progress params +func (o *DeleteLessonProgressParams) WithHTTPClient(client *http.Client) *DeleteLessonProgressParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete lesson progress params +func (o *DeleteLessonProgressParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete lesson progress params +func (o *DeleteLessonProgressParams) WithID(id *string) *DeleteLessonProgressParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete lesson progress params +func (o *DeleteLessonProgressParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteLessonProgressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_lesson_progress_responses.go b/api/members/members_client/operations/delete_lesson_progress_responses.go new file mode 100644 index 0000000..1450b51 --- /dev/null +++ b/api/members/members_client/operations/delete_lesson_progress_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteLessonProgressReader is a Reader for the DeleteLessonProgress structure. +type DeleteLessonProgressReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteLessonProgressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteLessonProgressNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteLessonProgressNoContent creates a DeleteLessonProgressNoContent with default headers values +func NewDeleteLessonProgressNoContent() *DeleteLessonProgressNoContent { + return &DeleteLessonProgressNoContent{} +} + +/* +DeleteLessonProgressNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteLessonProgressNoContent struct { +} + +// IsSuccess returns true when this delete lesson progress no content response has a 2xx status code +func (o *DeleteLessonProgressNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete lesson progress no content response has a 3xx status code +func (o *DeleteLessonProgressNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete lesson progress no content response has a 4xx status code +func (o *DeleteLessonProgressNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete lesson progress no content response has a 5xx status code +func (o *DeleteLessonProgressNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete lesson progress no content response a status code equal to that given +func (o *DeleteLessonProgressNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete lesson progress no content response +func (o *DeleteLessonProgressNoContent) Code() int { + return 204 +} + +func (o *DeleteLessonProgressNoContent) Error() string { + return fmt.Sprintf("[DELETE /lessonprogress][%d] deleteLessonProgressNoContent ", 204) +} + +func (o *DeleteLessonProgressNoContent) String() string { + return fmt.Sprintf("[DELETE /lessonprogress][%d] deleteLessonProgressNoContent ", 204) +} + +func (o *DeleteLessonProgressNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_order_parameters.go b/api/members/members_client/operations/delete_order_parameters.go new file mode 100644 index 0000000..8ce28df --- /dev/null +++ b/api/members/members_client/operations/delete_order_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteOrderParams creates a new DeleteOrderParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteOrderParams() *DeleteOrderParams { + return &DeleteOrderParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteOrderParamsWithTimeout creates a new DeleteOrderParams object +// with the ability to set a timeout on a request. +func NewDeleteOrderParamsWithTimeout(timeout time.Duration) *DeleteOrderParams { + return &DeleteOrderParams{ + timeout: timeout, + } +} + +// NewDeleteOrderParamsWithContext creates a new DeleteOrderParams object +// with the ability to set a context for a request. +func NewDeleteOrderParamsWithContext(ctx context.Context) *DeleteOrderParams { + return &DeleteOrderParams{ + Context: ctx, + } +} + +// NewDeleteOrderParamsWithHTTPClient creates a new DeleteOrderParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteOrderParamsWithHTTPClient(client *http.Client) *DeleteOrderParams { + return &DeleteOrderParams{ + HTTPClient: client, + } +} + +/* +DeleteOrderParams contains all the parameters to send to the API endpoint + + for the delete order operation. + + Typically these are written to a http.Request. +*/ +type DeleteOrderParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete order params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteOrderParams) WithDefaults() *DeleteOrderParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete order params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteOrderParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete order params +func (o *DeleteOrderParams) WithTimeout(timeout time.Duration) *DeleteOrderParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete order params +func (o *DeleteOrderParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete order params +func (o *DeleteOrderParams) WithContext(ctx context.Context) *DeleteOrderParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete order params +func (o *DeleteOrderParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete order params +func (o *DeleteOrderParams) WithHTTPClient(client *http.Client) *DeleteOrderParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete order params +func (o *DeleteOrderParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete order params +func (o *DeleteOrderParams) WithID(id *string) *DeleteOrderParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete order params +func (o *DeleteOrderParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_order_responses.go b/api/members/members_client/operations/delete_order_responses.go new file mode 100644 index 0000000..7fd8a50 --- /dev/null +++ b/api/members/members_client/operations/delete_order_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteOrderReader is a Reader for the DeleteOrder structure. +type DeleteOrderReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteOrderNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteOrderNoContent creates a DeleteOrderNoContent with default headers values +func NewDeleteOrderNoContent() *DeleteOrderNoContent { + return &DeleteOrderNoContent{} +} + +/* +DeleteOrderNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteOrderNoContent struct { +} + +// IsSuccess returns true when this delete order no content response has a 2xx status code +func (o *DeleteOrderNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete order no content response has a 3xx status code +func (o *DeleteOrderNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete order no content response has a 4xx status code +func (o *DeleteOrderNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete order no content response has a 5xx status code +func (o *DeleteOrderNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete order no content response a status code equal to that given +func (o *DeleteOrderNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete order no content response +func (o *DeleteOrderNoContent) Code() int { + return 204 +} + +func (o *DeleteOrderNoContent) Error() string { + return fmt.Sprintf("[DELETE /orders][%d] deleteOrderNoContent ", 204) +} + +func (o *DeleteOrderNoContent) String() string { + return fmt.Sprintf("[DELETE /orders][%d] deleteOrderNoContent ", 204) +} + +func (o *DeleteOrderNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_payment_method_parameters.go b/api/members/members_client/operations/delete_payment_method_parameters.go new file mode 100644 index 0000000..6205bf8 --- /dev/null +++ b/api/members/members_client/operations/delete_payment_method_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeletePaymentMethodParams creates a new DeletePaymentMethodParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeletePaymentMethodParams() *DeletePaymentMethodParams { + return &DeletePaymentMethodParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeletePaymentMethodParamsWithTimeout creates a new DeletePaymentMethodParams object +// with the ability to set a timeout on a request. +func NewDeletePaymentMethodParamsWithTimeout(timeout time.Duration) *DeletePaymentMethodParams { + return &DeletePaymentMethodParams{ + timeout: timeout, + } +} + +// NewDeletePaymentMethodParamsWithContext creates a new DeletePaymentMethodParams object +// with the ability to set a context for a request. +func NewDeletePaymentMethodParamsWithContext(ctx context.Context) *DeletePaymentMethodParams { + return &DeletePaymentMethodParams{ + Context: ctx, + } +} + +// NewDeletePaymentMethodParamsWithHTTPClient creates a new DeletePaymentMethodParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeletePaymentMethodParamsWithHTTPClient(client *http.Client) *DeletePaymentMethodParams { + return &DeletePaymentMethodParams{ + HTTPClient: client, + } +} + +/* +DeletePaymentMethodParams contains all the parameters to send to the API endpoint + + for the delete payment method operation. + + Typically these are written to a http.Request. +*/ +type DeletePaymentMethodParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete payment method params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeletePaymentMethodParams) WithDefaults() *DeletePaymentMethodParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete payment method params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeletePaymentMethodParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete payment method params +func (o *DeletePaymentMethodParams) WithTimeout(timeout time.Duration) *DeletePaymentMethodParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete payment method params +func (o *DeletePaymentMethodParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete payment method params +func (o *DeletePaymentMethodParams) WithContext(ctx context.Context) *DeletePaymentMethodParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete payment method params +func (o *DeletePaymentMethodParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete payment method params +func (o *DeletePaymentMethodParams) WithHTTPClient(client *http.Client) *DeletePaymentMethodParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete payment method params +func (o *DeletePaymentMethodParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete payment method params +func (o *DeletePaymentMethodParams) WithID(id *string) *DeletePaymentMethodParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete payment method params +func (o *DeletePaymentMethodParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeletePaymentMethodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_payment_method_responses.go b/api/members/members_client/operations/delete_payment_method_responses.go new file mode 100644 index 0000000..a17a739 --- /dev/null +++ b/api/members/members_client/operations/delete_payment_method_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeletePaymentMethodReader is a Reader for the DeletePaymentMethod structure. +type DeletePaymentMethodReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeletePaymentMethodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeletePaymentMethodNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeletePaymentMethodNoContent creates a DeletePaymentMethodNoContent with default headers values +func NewDeletePaymentMethodNoContent() *DeletePaymentMethodNoContent { + return &DeletePaymentMethodNoContent{} +} + +/* +DeletePaymentMethodNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeletePaymentMethodNoContent struct { +} + +// IsSuccess returns true when this delete payment method no content response has a 2xx status code +func (o *DeletePaymentMethodNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete payment method no content response has a 3xx status code +func (o *DeletePaymentMethodNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete payment method no content response has a 4xx status code +func (o *DeletePaymentMethodNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete payment method no content response has a 5xx status code +func (o *DeletePaymentMethodNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete payment method no content response a status code equal to that given +func (o *DeletePaymentMethodNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete payment method no content response +func (o *DeletePaymentMethodNoContent) Code() int { + return 204 +} + +func (o *DeletePaymentMethodNoContent) Error() string { + return fmt.Sprintf("[DELETE /paymentmethods][%d] deletePaymentMethodNoContent ", 204) +} + +func (o *DeletePaymentMethodNoContent) String() string { + return fmt.Sprintf("[DELETE /paymentmethods][%d] deletePaymentMethodNoContent ", 204) +} + +func (o *DeletePaymentMethodNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_research_project_company_parameters.go b/api/members/members_client/operations/delete_research_project_company_parameters.go new file mode 100644 index 0000000..88d667f --- /dev/null +++ b/api/members/members_client/operations/delete_research_project_company_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteResearchProjectCompanyParams creates a new DeleteResearchProjectCompanyParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteResearchProjectCompanyParams() *DeleteResearchProjectCompanyParams { + return &DeleteResearchProjectCompanyParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteResearchProjectCompanyParamsWithTimeout creates a new DeleteResearchProjectCompanyParams object +// with the ability to set a timeout on a request. +func NewDeleteResearchProjectCompanyParamsWithTimeout(timeout time.Duration) *DeleteResearchProjectCompanyParams { + return &DeleteResearchProjectCompanyParams{ + timeout: timeout, + } +} + +// NewDeleteResearchProjectCompanyParamsWithContext creates a new DeleteResearchProjectCompanyParams object +// with the ability to set a context for a request. +func NewDeleteResearchProjectCompanyParamsWithContext(ctx context.Context) *DeleteResearchProjectCompanyParams { + return &DeleteResearchProjectCompanyParams{ + Context: ctx, + } +} + +// NewDeleteResearchProjectCompanyParamsWithHTTPClient creates a new DeleteResearchProjectCompanyParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteResearchProjectCompanyParamsWithHTTPClient(client *http.Client) *DeleteResearchProjectCompanyParams { + return &DeleteResearchProjectCompanyParams{ + HTTPClient: client, + } +} + +/* +DeleteResearchProjectCompanyParams contains all the parameters to send to the API endpoint + + for the delete research project company operation. + + Typically these are written to a http.Request. +*/ +type DeleteResearchProjectCompanyParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete research project company params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteResearchProjectCompanyParams) WithDefaults() *DeleteResearchProjectCompanyParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete research project company params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteResearchProjectCompanyParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) WithTimeout(timeout time.Duration) *DeleteResearchProjectCompanyParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) WithContext(ctx context.Context) *DeleteResearchProjectCompanyParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) WithHTTPClient(client *http.Client) *DeleteResearchProjectCompanyParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) WithID(id *string) *DeleteResearchProjectCompanyParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete research project company params +func (o *DeleteResearchProjectCompanyParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteResearchProjectCompanyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_research_project_company_responses.go b/api/members/members_client/operations/delete_research_project_company_responses.go new file mode 100644 index 0000000..ad3235d --- /dev/null +++ b/api/members/members_client/operations/delete_research_project_company_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteResearchProjectCompanyReader is a Reader for the DeleteResearchProjectCompany structure. +type DeleteResearchProjectCompanyReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteResearchProjectCompanyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteResearchProjectCompanyNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteResearchProjectCompanyNoContent creates a DeleteResearchProjectCompanyNoContent with default headers values +func NewDeleteResearchProjectCompanyNoContent() *DeleteResearchProjectCompanyNoContent { + return &DeleteResearchProjectCompanyNoContent{} +} + +/* +DeleteResearchProjectCompanyNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteResearchProjectCompanyNoContent struct { +} + +// IsSuccess returns true when this delete research project company no content response has a 2xx status code +func (o *DeleteResearchProjectCompanyNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete research project company no content response has a 3xx status code +func (o *DeleteResearchProjectCompanyNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete research project company no content response has a 4xx status code +func (o *DeleteResearchProjectCompanyNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete research project company no content response has a 5xx status code +func (o *DeleteResearchProjectCompanyNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete research project company no content response a status code equal to that given +func (o *DeleteResearchProjectCompanyNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete research project company no content response +func (o *DeleteResearchProjectCompanyNoContent) Code() int { + return 204 +} + +func (o *DeleteResearchProjectCompanyNoContent) Error() string { + return fmt.Sprintf("[DELETE /researchprojectcompanys][%d] deleteResearchProjectCompanyNoContent ", 204) +} + +func (o *DeleteResearchProjectCompanyNoContent) String() string { + return fmt.Sprintf("[DELETE /researchprojectcompanys][%d] deleteResearchProjectCompanyNoContent ", 204) +} + +func (o *DeleteResearchProjectCompanyNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_research_project_parameters.go b/api/members/members_client/operations/delete_research_project_parameters.go new file mode 100644 index 0000000..0582424 --- /dev/null +++ b/api/members/members_client/operations/delete_research_project_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteResearchProjectParams creates a new DeleteResearchProjectParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteResearchProjectParams() *DeleteResearchProjectParams { + return &DeleteResearchProjectParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteResearchProjectParamsWithTimeout creates a new DeleteResearchProjectParams object +// with the ability to set a timeout on a request. +func NewDeleteResearchProjectParamsWithTimeout(timeout time.Duration) *DeleteResearchProjectParams { + return &DeleteResearchProjectParams{ + timeout: timeout, + } +} + +// NewDeleteResearchProjectParamsWithContext creates a new DeleteResearchProjectParams object +// with the ability to set a context for a request. +func NewDeleteResearchProjectParamsWithContext(ctx context.Context) *DeleteResearchProjectParams { + return &DeleteResearchProjectParams{ + Context: ctx, + } +} + +// NewDeleteResearchProjectParamsWithHTTPClient creates a new DeleteResearchProjectParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteResearchProjectParamsWithHTTPClient(client *http.Client) *DeleteResearchProjectParams { + return &DeleteResearchProjectParams{ + HTTPClient: client, + } +} + +/* +DeleteResearchProjectParams contains all the parameters to send to the API endpoint + + for the delete research project operation. + + Typically these are written to a http.Request. +*/ +type DeleteResearchProjectParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete research project params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteResearchProjectParams) WithDefaults() *DeleteResearchProjectParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete research project params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteResearchProjectParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete research project params +func (o *DeleteResearchProjectParams) WithTimeout(timeout time.Duration) *DeleteResearchProjectParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete research project params +func (o *DeleteResearchProjectParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete research project params +func (o *DeleteResearchProjectParams) WithContext(ctx context.Context) *DeleteResearchProjectParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete research project params +func (o *DeleteResearchProjectParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete research project params +func (o *DeleteResearchProjectParams) WithHTTPClient(client *http.Client) *DeleteResearchProjectParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete research project params +func (o *DeleteResearchProjectParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete research project params +func (o *DeleteResearchProjectParams) WithID(id *string) *DeleteResearchProjectParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete research project params +func (o *DeleteResearchProjectParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteResearchProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_research_project_responses.go b/api/members/members_client/operations/delete_research_project_responses.go new file mode 100644 index 0000000..fcafe88 --- /dev/null +++ b/api/members/members_client/operations/delete_research_project_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteResearchProjectReader is a Reader for the DeleteResearchProject structure. +type DeleteResearchProjectReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteResearchProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteResearchProjectNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteResearchProjectNoContent creates a DeleteResearchProjectNoContent with default headers values +func NewDeleteResearchProjectNoContent() *DeleteResearchProjectNoContent { + return &DeleteResearchProjectNoContent{} +} + +/* +DeleteResearchProjectNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteResearchProjectNoContent struct { +} + +// IsSuccess returns true when this delete research project no content response has a 2xx status code +func (o *DeleteResearchProjectNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete research project no content response has a 3xx status code +func (o *DeleteResearchProjectNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete research project no content response has a 4xx status code +func (o *DeleteResearchProjectNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete research project no content response has a 5xx status code +func (o *DeleteResearchProjectNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete research project no content response a status code equal to that given +func (o *DeleteResearchProjectNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete research project no content response +func (o *DeleteResearchProjectNoContent) Code() int { + return 204 +} + +func (o *DeleteResearchProjectNoContent) Error() string { + return fmt.Sprintf("[DELETE /researchprojects][%d] deleteResearchProjectNoContent ", 204) +} + +func (o *DeleteResearchProjectNoContent) String() string { + return fmt.Sprintf("[DELETE /researchprojects][%d] deleteResearchProjectNoContent ", 204) +} + +func (o *DeleteResearchProjectNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_research_project_topic_parameters.go b/api/members/members_client/operations/delete_research_project_topic_parameters.go new file mode 100644 index 0000000..e99319a --- /dev/null +++ b/api/members/members_client/operations/delete_research_project_topic_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteResearchProjectTopicParams creates a new DeleteResearchProjectTopicParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteResearchProjectTopicParams() *DeleteResearchProjectTopicParams { + return &DeleteResearchProjectTopicParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteResearchProjectTopicParamsWithTimeout creates a new DeleteResearchProjectTopicParams object +// with the ability to set a timeout on a request. +func NewDeleteResearchProjectTopicParamsWithTimeout(timeout time.Duration) *DeleteResearchProjectTopicParams { + return &DeleteResearchProjectTopicParams{ + timeout: timeout, + } +} + +// NewDeleteResearchProjectTopicParamsWithContext creates a new DeleteResearchProjectTopicParams object +// with the ability to set a context for a request. +func NewDeleteResearchProjectTopicParamsWithContext(ctx context.Context) *DeleteResearchProjectTopicParams { + return &DeleteResearchProjectTopicParams{ + Context: ctx, + } +} + +// NewDeleteResearchProjectTopicParamsWithHTTPClient creates a new DeleteResearchProjectTopicParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteResearchProjectTopicParamsWithHTTPClient(client *http.Client) *DeleteResearchProjectTopicParams { + return &DeleteResearchProjectTopicParams{ + HTTPClient: client, + } +} + +/* +DeleteResearchProjectTopicParams contains all the parameters to send to the API endpoint + + for the delete research project topic operation. + + Typically these are written to a http.Request. +*/ +type DeleteResearchProjectTopicParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete research project topic params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteResearchProjectTopicParams) WithDefaults() *DeleteResearchProjectTopicParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete research project topic params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteResearchProjectTopicParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) WithTimeout(timeout time.Duration) *DeleteResearchProjectTopicParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) WithContext(ctx context.Context) *DeleteResearchProjectTopicParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) WithHTTPClient(client *http.Client) *DeleteResearchProjectTopicParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) WithID(id *string) *DeleteResearchProjectTopicParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete research project topic params +func (o *DeleteResearchProjectTopicParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteResearchProjectTopicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_research_project_topic_responses.go b/api/members/members_client/operations/delete_research_project_topic_responses.go new file mode 100644 index 0000000..35f5ce9 --- /dev/null +++ b/api/members/members_client/operations/delete_research_project_topic_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteResearchProjectTopicReader is a Reader for the DeleteResearchProjectTopic structure. +type DeleteResearchProjectTopicReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteResearchProjectTopicReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteResearchProjectTopicNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteResearchProjectTopicNoContent creates a DeleteResearchProjectTopicNoContent with default headers values +func NewDeleteResearchProjectTopicNoContent() *DeleteResearchProjectTopicNoContent { + return &DeleteResearchProjectTopicNoContent{} +} + +/* +DeleteResearchProjectTopicNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteResearchProjectTopicNoContent struct { +} + +// IsSuccess returns true when this delete research project topic no content response has a 2xx status code +func (o *DeleteResearchProjectTopicNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete research project topic no content response has a 3xx status code +func (o *DeleteResearchProjectTopicNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete research project topic no content response has a 4xx status code +func (o *DeleteResearchProjectTopicNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete research project topic no content response has a 5xx status code +func (o *DeleteResearchProjectTopicNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete research project topic no content response a status code equal to that given +func (o *DeleteResearchProjectTopicNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete research project topic no content response +func (o *DeleteResearchProjectTopicNoContent) Code() int { + return 204 +} + +func (o *DeleteResearchProjectTopicNoContent) Error() string { + return fmt.Sprintf("[DELETE /researchprojecttopics][%d] deleteResearchProjectTopicNoContent ", 204) +} + +func (o *DeleteResearchProjectTopicNoContent) String() string { + return fmt.Sprintf("[DELETE /researchprojecttopics][%d] deleteResearchProjectTopicNoContent ", 204) +} + +func (o *DeleteResearchProjectTopicNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_ticket_parameters.go b/api/members/members_client/operations/delete_ticket_parameters.go new file mode 100644 index 0000000..88abe42 --- /dev/null +++ b/api/members/members_client/operations/delete_ticket_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteTicketParams creates a new DeleteTicketParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteTicketParams() *DeleteTicketParams { + return &DeleteTicketParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteTicketParamsWithTimeout creates a new DeleteTicketParams object +// with the ability to set a timeout on a request. +func NewDeleteTicketParamsWithTimeout(timeout time.Duration) *DeleteTicketParams { + return &DeleteTicketParams{ + timeout: timeout, + } +} + +// NewDeleteTicketParamsWithContext creates a new DeleteTicketParams object +// with the ability to set a context for a request. +func NewDeleteTicketParamsWithContext(ctx context.Context) *DeleteTicketParams { + return &DeleteTicketParams{ + Context: ctx, + } +} + +// NewDeleteTicketParamsWithHTTPClient creates a new DeleteTicketParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteTicketParamsWithHTTPClient(client *http.Client) *DeleteTicketParams { + return &DeleteTicketParams{ + HTTPClient: client, + } +} + +/* +DeleteTicketParams contains all the parameters to send to the API endpoint + + for the delete ticket operation. + + Typically these are written to a http.Request. +*/ +type DeleteTicketParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete ticket params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteTicketParams) WithDefaults() *DeleteTicketParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete ticket params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteTicketParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete ticket params +func (o *DeleteTicketParams) WithTimeout(timeout time.Duration) *DeleteTicketParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete ticket params +func (o *DeleteTicketParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete ticket params +func (o *DeleteTicketParams) WithContext(ctx context.Context) *DeleteTicketParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete ticket params +func (o *DeleteTicketParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete ticket params +func (o *DeleteTicketParams) WithHTTPClient(client *http.Client) *DeleteTicketParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete ticket params +func (o *DeleteTicketParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete ticket params +func (o *DeleteTicketParams) WithID(id *string) *DeleteTicketParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete ticket params +func (o *DeleteTicketParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_ticket_responses.go b/api/members/members_client/operations/delete_ticket_responses.go new file mode 100644 index 0000000..41e35f7 --- /dev/null +++ b/api/members/members_client/operations/delete_ticket_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteTicketReader is a Reader for the DeleteTicket structure. +type DeleteTicketReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteTicketReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteTicketNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteTicketNoContent creates a DeleteTicketNoContent with default headers values +func NewDeleteTicketNoContent() *DeleteTicketNoContent { + return &DeleteTicketNoContent{} +} + +/* +DeleteTicketNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteTicketNoContent struct { +} + +// IsSuccess returns true when this delete ticket no content response has a 2xx status code +func (o *DeleteTicketNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete ticket no content response has a 3xx status code +func (o *DeleteTicketNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete ticket no content response has a 4xx status code +func (o *DeleteTicketNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete ticket no content response has a 5xx status code +func (o *DeleteTicketNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete ticket no content response a status code equal to that given +func (o *DeleteTicketNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete ticket no content response +func (o *DeleteTicketNoContent) Code() int { + return 204 +} + +func (o *DeleteTicketNoContent) Error() string { + return fmt.Sprintf("[DELETE /tickets][%d] deleteTicketNoContent ", 204) +} + +func (o *DeleteTicketNoContent) String() string { + return fmt.Sprintf("[DELETE /tickets][%d] deleteTicketNoContent ", 204) +} + +func (o *DeleteTicketNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/delete_transaction_parameters.go b/api/members/members_client/operations/delete_transaction_parameters.go new file mode 100644 index 0000000..1c3dcb8 --- /dev/null +++ b/api/members/members_client/operations/delete_transaction_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteTransactionParams creates a new DeleteTransactionParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteTransactionParams() *DeleteTransactionParams { + return &DeleteTransactionParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteTransactionParamsWithTimeout creates a new DeleteTransactionParams object +// with the ability to set a timeout on a request. +func NewDeleteTransactionParamsWithTimeout(timeout time.Duration) *DeleteTransactionParams { + return &DeleteTransactionParams{ + timeout: timeout, + } +} + +// NewDeleteTransactionParamsWithContext creates a new DeleteTransactionParams object +// with the ability to set a context for a request. +func NewDeleteTransactionParamsWithContext(ctx context.Context) *DeleteTransactionParams { + return &DeleteTransactionParams{ + Context: ctx, + } +} + +// NewDeleteTransactionParamsWithHTTPClient creates a new DeleteTransactionParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteTransactionParamsWithHTTPClient(client *http.Client) *DeleteTransactionParams { + return &DeleteTransactionParams{ + HTTPClient: client, + } +} + +/* +DeleteTransactionParams contains all the parameters to send to the API endpoint + + for the delete transaction operation. + + Typically these are written to a http.Request. +*/ +type DeleteTransactionParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete transaction params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteTransactionParams) WithDefaults() *DeleteTransactionParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete transaction params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteTransactionParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete transaction params +func (o *DeleteTransactionParams) WithTimeout(timeout time.Duration) *DeleteTransactionParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete transaction params +func (o *DeleteTransactionParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete transaction params +func (o *DeleteTransactionParams) WithContext(ctx context.Context) *DeleteTransactionParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete transaction params +func (o *DeleteTransactionParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete transaction params +func (o *DeleteTransactionParams) WithHTTPClient(client *http.Client) *DeleteTransactionParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete transaction params +func (o *DeleteTransactionParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the delete transaction params +func (o *DeleteTransactionParams) WithID(id *string) *DeleteTransactionParams { + o.SetID(id) + return o +} + +// SetID adds the id to the delete transaction params +func (o *DeleteTransactionParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/delete_transaction_responses.go b/api/members/members_client/operations/delete_transaction_responses.go new file mode 100644 index 0000000..6914e28 --- /dev/null +++ b/api/members/members_client/operations/delete_transaction_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// DeleteTransactionReader is a Reader for the DeleteTransaction structure. +type DeleteTransactionReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteTransactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewDeleteTransactionNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteTransactionNoContent creates a DeleteTransactionNoContent with default headers values +func NewDeleteTransactionNoContent() *DeleteTransactionNoContent { + return &DeleteTransactionNoContent{} +} + +/* +DeleteTransactionNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type DeleteTransactionNoContent struct { +} + +// IsSuccess returns true when this delete transaction no content response has a 2xx status code +func (o *DeleteTransactionNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete transaction no content response has a 3xx status code +func (o *DeleteTransactionNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete transaction no content response has a 4xx status code +func (o *DeleteTransactionNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete transaction no content response has a 5xx status code +func (o *DeleteTransactionNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this delete transaction no content response a status code equal to that given +func (o *DeleteTransactionNoContent) IsCode(code int) bool { + return code == 204 +} + +// Code gets the status code for the delete transaction no content response +func (o *DeleteTransactionNoContent) Code() int { + return 204 +} + +func (o *DeleteTransactionNoContent) Error() string { + return fmt.Sprintf("[DELETE /transactions][%d] deleteTransactionNoContent ", 204) +} + +func (o *DeleteTransactionNoContent) String() string { + return fmt.Sprintf("[DELETE /transactions][%d] deleteTransactionNoContent ", 204) +} + +func (o *DeleteTransactionNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_attendees_parameters.go b/api/members/members_client/operations/get_attendees_parameters.go new file mode 100644 index 0000000..8a03b00 --- /dev/null +++ b/api/members/members_client/operations/get_attendees_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetAttendeesParams creates a new GetAttendeesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetAttendeesParams() *GetAttendeesParams { + return &GetAttendeesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetAttendeesParamsWithTimeout creates a new GetAttendeesParams object +// with the ability to set a timeout on a request. +func NewGetAttendeesParamsWithTimeout(timeout time.Duration) *GetAttendeesParams { + return &GetAttendeesParams{ + timeout: timeout, + } +} + +// NewGetAttendeesParamsWithContext creates a new GetAttendeesParams object +// with the ability to set a context for a request. +func NewGetAttendeesParamsWithContext(ctx context.Context) *GetAttendeesParams { + return &GetAttendeesParams{ + Context: ctx, + } +} + +// NewGetAttendeesParamsWithHTTPClient creates a new GetAttendeesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetAttendeesParamsWithHTTPClient(client *http.Client) *GetAttendeesParams { + return &GetAttendeesParams{ + HTTPClient: client, + } +} + +/* +GetAttendeesParams contains all the parameters to send to the API endpoint + + for the get attendees operation. + + Typically these are written to a http.Request. +*/ +type GetAttendeesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get attendees params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetAttendeesParams) WithDefaults() *GetAttendeesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get attendees params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetAttendeesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get attendees params +func (o *GetAttendeesParams) WithTimeout(timeout time.Duration) *GetAttendeesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get attendees params +func (o *GetAttendeesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get attendees params +func (o *GetAttendeesParams) WithContext(ctx context.Context) *GetAttendeesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get attendees params +func (o *GetAttendeesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get attendees params +func (o *GetAttendeesParams) WithHTTPClient(client *http.Client) *GetAttendeesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get attendees params +func (o *GetAttendeesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get attendees params +func (o *GetAttendeesParams) WithID(id *string) *GetAttendeesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get attendees params +func (o *GetAttendeesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get attendees params +func (o *GetAttendeesParams) WithLimit(limit *int64) *GetAttendeesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get attendees params +func (o *GetAttendeesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get attendees params +func (o *GetAttendeesParams) WithOffset(offset *int64) *GetAttendeesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get attendees params +func (o *GetAttendeesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetAttendeesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_attendees_responses.go b/api/members/members_client/operations/get_attendees_responses.go new file mode 100644 index 0000000..125b214 --- /dev/null +++ b/api/members/members_client/operations/get_attendees_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetAttendeesReader is a Reader for the GetAttendees structure. +type GetAttendeesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetAttendeesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetAttendeesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetAttendeesOK creates a GetAttendeesOK with default headers values +func NewGetAttendeesOK() *GetAttendeesOK { + return &GetAttendeesOK{} +} + +/* +GetAttendeesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetAttendeesOK struct { +} + +// IsSuccess returns true when this get attendees o k response has a 2xx status code +func (o *GetAttendeesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get attendees o k response has a 3xx status code +func (o *GetAttendeesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get attendees o k response has a 4xx status code +func (o *GetAttendeesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get attendees o k response has a 5xx status code +func (o *GetAttendeesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get attendees o k response a status code equal to that given +func (o *GetAttendeesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get attendees o k response +func (o *GetAttendeesOK) Code() int { + return 200 +} + +func (o *GetAttendeesOK) Error() string { + return fmt.Sprintf("[GET /attendees][%d] getAttendeesOK ", 200) +} + +func (o *GetAttendeesOK) String() string { + return fmt.Sprintf("[GET /attendees][%d] getAttendeesOK ", 200) +} + +func (o *GetAttendeesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_certificates_parameters.go b/api/members/members_client/operations/get_certificates_parameters.go new file mode 100644 index 0000000..db16ae6 --- /dev/null +++ b/api/members/members_client/operations/get_certificates_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetCertificatesParams creates a new GetCertificatesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetCertificatesParams() *GetCertificatesParams { + return &GetCertificatesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetCertificatesParamsWithTimeout creates a new GetCertificatesParams object +// with the ability to set a timeout on a request. +func NewGetCertificatesParamsWithTimeout(timeout time.Duration) *GetCertificatesParams { + return &GetCertificatesParams{ + timeout: timeout, + } +} + +// NewGetCertificatesParamsWithContext creates a new GetCertificatesParams object +// with the ability to set a context for a request. +func NewGetCertificatesParamsWithContext(ctx context.Context) *GetCertificatesParams { + return &GetCertificatesParams{ + Context: ctx, + } +} + +// NewGetCertificatesParamsWithHTTPClient creates a new GetCertificatesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetCertificatesParamsWithHTTPClient(client *http.Client) *GetCertificatesParams { + return &GetCertificatesParams{ + HTTPClient: client, + } +} + +/* +GetCertificatesParams contains all the parameters to send to the API endpoint + + for the get certificates operation. + + Typically these are written to a http.Request. +*/ +type GetCertificatesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get certificates params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCertificatesParams) WithDefaults() *GetCertificatesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get certificates params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCertificatesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get certificates params +func (o *GetCertificatesParams) WithTimeout(timeout time.Duration) *GetCertificatesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get certificates params +func (o *GetCertificatesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get certificates params +func (o *GetCertificatesParams) WithContext(ctx context.Context) *GetCertificatesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get certificates params +func (o *GetCertificatesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get certificates params +func (o *GetCertificatesParams) WithHTTPClient(client *http.Client) *GetCertificatesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get certificates params +func (o *GetCertificatesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get certificates params +func (o *GetCertificatesParams) WithID(id *string) *GetCertificatesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get certificates params +func (o *GetCertificatesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get certificates params +func (o *GetCertificatesParams) WithLimit(limit *int64) *GetCertificatesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get certificates params +func (o *GetCertificatesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get certificates params +func (o *GetCertificatesParams) WithOffset(offset *int64) *GetCertificatesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get certificates params +func (o *GetCertificatesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetCertificatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_certificates_responses.go b/api/members/members_client/operations/get_certificates_responses.go new file mode 100644 index 0000000..6dafc30 --- /dev/null +++ b/api/members/members_client/operations/get_certificates_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetCertificatesReader is a Reader for the GetCertificates structure. +type GetCertificatesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetCertificatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetCertificatesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetCertificatesOK creates a GetCertificatesOK with default headers values +func NewGetCertificatesOK() *GetCertificatesOK { + return &GetCertificatesOK{} +} + +/* +GetCertificatesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetCertificatesOK struct { +} + +// IsSuccess returns true when this get certificates o k response has a 2xx status code +func (o *GetCertificatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get certificates o k response has a 3xx status code +func (o *GetCertificatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get certificates o k response has a 4xx status code +func (o *GetCertificatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get certificates o k response has a 5xx status code +func (o *GetCertificatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get certificates o k response a status code equal to that given +func (o *GetCertificatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get certificates o k response +func (o *GetCertificatesOK) Code() int { + return 200 +} + +func (o *GetCertificatesOK) Error() string { + return fmt.Sprintf("[GET /certificates][%d] getCertificatesOK ", 200) +} + +func (o *GetCertificatesOK) String() string { + return fmt.Sprintf("[GET /certificates][%d] getCertificatesOK ", 200) +} + +func (o *GetCertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_course_lessons_parameters.go b/api/members/members_client/operations/get_course_lessons_parameters.go new file mode 100644 index 0000000..b0eb495 --- /dev/null +++ b/api/members/members_client/operations/get_course_lessons_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetCourseLessonsParams creates a new GetCourseLessonsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetCourseLessonsParams() *GetCourseLessonsParams { + return &GetCourseLessonsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetCourseLessonsParamsWithTimeout creates a new GetCourseLessonsParams object +// with the ability to set a timeout on a request. +func NewGetCourseLessonsParamsWithTimeout(timeout time.Duration) *GetCourseLessonsParams { + return &GetCourseLessonsParams{ + timeout: timeout, + } +} + +// NewGetCourseLessonsParamsWithContext creates a new GetCourseLessonsParams object +// with the ability to set a context for a request. +func NewGetCourseLessonsParamsWithContext(ctx context.Context) *GetCourseLessonsParams { + return &GetCourseLessonsParams{ + Context: ctx, + } +} + +// NewGetCourseLessonsParamsWithHTTPClient creates a new GetCourseLessonsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetCourseLessonsParamsWithHTTPClient(client *http.Client) *GetCourseLessonsParams { + return &GetCourseLessonsParams{ + HTTPClient: client, + } +} + +/* +GetCourseLessonsParams contains all the parameters to send to the API endpoint + + for the get course lessons operation. + + Typically these are written to a http.Request. +*/ +type GetCourseLessonsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get course lessons params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCourseLessonsParams) WithDefaults() *GetCourseLessonsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get course lessons params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCourseLessonsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get course lessons params +func (o *GetCourseLessonsParams) WithTimeout(timeout time.Duration) *GetCourseLessonsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get course lessons params +func (o *GetCourseLessonsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get course lessons params +func (o *GetCourseLessonsParams) WithContext(ctx context.Context) *GetCourseLessonsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get course lessons params +func (o *GetCourseLessonsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get course lessons params +func (o *GetCourseLessonsParams) WithHTTPClient(client *http.Client) *GetCourseLessonsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get course lessons params +func (o *GetCourseLessonsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get course lessons params +func (o *GetCourseLessonsParams) WithID(id *string) *GetCourseLessonsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get course lessons params +func (o *GetCourseLessonsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get course lessons params +func (o *GetCourseLessonsParams) WithLimit(limit *int64) *GetCourseLessonsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get course lessons params +func (o *GetCourseLessonsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get course lessons params +func (o *GetCourseLessonsParams) WithOffset(offset *int64) *GetCourseLessonsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get course lessons params +func (o *GetCourseLessonsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetCourseLessonsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_course_lessons_responses.go b/api/members/members_client/operations/get_course_lessons_responses.go new file mode 100644 index 0000000..15fb8ca --- /dev/null +++ b/api/members/members_client/operations/get_course_lessons_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetCourseLessonsReader is a Reader for the GetCourseLessons structure. +type GetCourseLessonsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetCourseLessonsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetCourseLessonsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetCourseLessonsOK creates a GetCourseLessonsOK with default headers values +func NewGetCourseLessonsOK() *GetCourseLessonsOK { + return &GetCourseLessonsOK{} +} + +/* +GetCourseLessonsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetCourseLessonsOK struct { +} + +// IsSuccess returns true when this get course lessons o k response has a 2xx status code +func (o *GetCourseLessonsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get course lessons o k response has a 3xx status code +func (o *GetCourseLessonsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get course lessons o k response has a 4xx status code +func (o *GetCourseLessonsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get course lessons o k response has a 5xx status code +func (o *GetCourseLessonsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get course lessons o k response a status code equal to that given +func (o *GetCourseLessonsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get course lessons o k response +func (o *GetCourseLessonsOK) Code() int { + return 200 +} + +func (o *GetCourseLessonsOK) Error() string { + return fmt.Sprintf("[GET /courselessons][%d] getCourseLessonsOK ", 200) +} + +func (o *GetCourseLessonsOK) String() string { + return fmt.Sprintf("[GET /courselessons][%d] getCourseLessonsOK ", 200) +} + +func (o *GetCourseLessonsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_course_sections_parameters.go b/api/members/members_client/operations/get_course_sections_parameters.go new file mode 100644 index 0000000..34c891c --- /dev/null +++ b/api/members/members_client/operations/get_course_sections_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetCourseSectionsParams creates a new GetCourseSectionsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetCourseSectionsParams() *GetCourseSectionsParams { + return &GetCourseSectionsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetCourseSectionsParamsWithTimeout creates a new GetCourseSectionsParams object +// with the ability to set a timeout on a request. +func NewGetCourseSectionsParamsWithTimeout(timeout time.Duration) *GetCourseSectionsParams { + return &GetCourseSectionsParams{ + timeout: timeout, + } +} + +// NewGetCourseSectionsParamsWithContext creates a new GetCourseSectionsParams object +// with the ability to set a context for a request. +func NewGetCourseSectionsParamsWithContext(ctx context.Context) *GetCourseSectionsParams { + return &GetCourseSectionsParams{ + Context: ctx, + } +} + +// NewGetCourseSectionsParamsWithHTTPClient creates a new GetCourseSectionsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetCourseSectionsParamsWithHTTPClient(client *http.Client) *GetCourseSectionsParams { + return &GetCourseSectionsParams{ + HTTPClient: client, + } +} + +/* +GetCourseSectionsParams contains all the parameters to send to the API endpoint + + for the get course sections operation. + + Typically these are written to a http.Request. +*/ +type GetCourseSectionsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get course sections params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCourseSectionsParams) WithDefaults() *GetCourseSectionsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get course sections params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCourseSectionsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get course sections params +func (o *GetCourseSectionsParams) WithTimeout(timeout time.Duration) *GetCourseSectionsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get course sections params +func (o *GetCourseSectionsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get course sections params +func (o *GetCourseSectionsParams) WithContext(ctx context.Context) *GetCourseSectionsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get course sections params +func (o *GetCourseSectionsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get course sections params +func (o *GetCourseSectionsParams) WithHTTPClient(client *http.Client) *GetCourseSectionsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get course sections params +func (o *GetCourseSectionsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get course sections params +func (o *GetCourseSectionsParams) WithID(id *string) *GetCourseSectionsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get course sections params +func (o *GetCourseSectionsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get course sections params +func (o *GetCourseSectionsParams) WithLimit(limit *int64) *GetCourseSectionsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get course sections params +func (o *GetCourseSectionsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get course sections params +func (o *GetCourseSectionsParams) WithOffset(offset *int64) *GetCourseSectionsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get course sections params +func (o *GetCourseSectionsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetCourseSectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_course_sections_responses.go b/api/members/members_client/operations/get_course_sections_responses.go new file mode 100644 index 0000000..fc74974 --- /dev/null +++ b/api/members/members_client/operations/get_course_sections_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetCourseSectionsReader is a Reader for the GetCourseSections structure. +type GetCourseSectionsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetCourseSectionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetCourseSectionsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetCourseSectionsOK creates a GetCourseSectionsOK with default headers values +func NewGetCourseSectionsOK() *GetCourseSectionsOK { + return &GetCourseSectionsOK{} +} + +/* +GetCourseSectionsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetCourseSectionsOK struct { +} + +// IsSuccess returns true when this get course sections o k response has a 2xx status code +func (o *GetCourseSectionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get course sections o k response has a 3xx status code +func (o *GetCourseSectionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get course sections o k response has a 4xx status code +func (o *GetCourseSectionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get course sections o k response has a 5xx status code +func (o *GetCourseSectionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get course sections o k response a status code equal to that given +func (o *GetCourseSectionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get course sections o k response +func (o *GetCourseSectionsOK) Code() int { + return 200 +} + +func (o *GetCourseSectionsOK) Error() string { + return fmt.Sprintf("[GET /coursesections][%d] getCourseSectionsOK ", 200) +} + +func (o *GetCourseSectionsOK) String() string { + return fmt.Sprintf("[GET /coursesections][%d] getCourseSectionsOK ", 200) +} + +func (o *GetCourseSectionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_courses_parameters.go b/api/members/members_client/operations/get_courses_parameters.go new file mode 100644 index 0000000..080ebca --- /dev/null +++ b/api/members/members_client/operations/get_courses_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetCoursesParams creates a new GetCoursesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetCoursesParams() *GetCoursesParams { + return &GetCoursesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetCoursesParamsWithTimeout creates a new GetCoursesParams object +// with the ability to set a timeout on a request. +func NewGetCoursesParamsWithTimeout(timeout time.Duration) *GetCoursesParams { + return &GetCoursesParams{ + timeout: timeout, + } +} + +// NewGetCoursesParamsWithContext creates a new GetCoursesParams object +// with the ability to set a context for a request. +func NewGetCoursesParamsWithContext(ctx context.Context) *GetCoursesParams { + return &GetCoursesParams{ + Context: ctx, + } +} + +// NewGetCoursesParamsWithHTTPClient creates a new GetCoursesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetCoursesParamsWithHTTPClient(client *http.Client) *GetCoursesParams { + return &GetCoursesParams{ + HTTPClient: client, + } +} + +/* +GetCoursesParams contains all the parameters to send to the API endpoint + + for the get courses operation. + + Typically these are written to a http.Request. +*/ +type GetCoursesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get courses params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCoursesParams) WithDefaults() *GetCoursesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get courses params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetCoursesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get courses params +func (o *GetCoursesParams) WithTimeout(timeout time.Duration) *GetCoursesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get courses params +func (o *GetCoursesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get courses params +func (o *GetCoursesParams) WithContext(ctx context.Context) *GetCoursesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get courses params +func (o *GetCoursesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get courses params +func (o *GetCoursesParams) WithHTTPClient(client *http.Client) *GetCoursesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get courses params +func (o *GetCoursesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get courses params +func (o *GetCoursesParams) WithID(id *string) *GetCoursesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get courses params +func (o *GetCoursesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get courses params +func (o *GetCoursesParams) WithLimit(limit *int64) *GetCoursesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get courses params +func (o *GetCoursesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get courses params +func (o *GetCoursesParams) WithOffset(offset *int64) *GetCoursesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get courses params +func (o *GetCoursesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetCoursesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_courses_responses.go b/api/members/members_client/operations/get_courses_responses.go new file mode 100644 index 0000000..19ecc2d --- /dev/null +++ b/api/members/members_client/operations/get_courses_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetCoursesReader is a Reader for the GetCourses structure. +type GetCoursesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetCoursesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetCoursesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetCoursesOK creates a GetCoursesOK with default headers values +func NewGetCoursesOK() *GetCoursesOK { + return &GetCoursesOK{} +} + +/* +GetCoursesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetCoursesOK struct { +} + +// IsSuccess returns true when this get courses o k response has a 2xx status code +func (o *GetCoursesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get courses o k response has a 3xx status code +func (o *GetCoursesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get courses o k response has a 4xx status code +func (o *GetCoursesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get courses o k response has a 5xx status code +func (o *GetCoursesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get courses o k response a status code equal to that given +func (o *GetCoursesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get courses o k response +func (o *GetCoursesOK) Code() int { + return 200 +} + +func (o *GetCoursesOK) Error() string { + return fmt.Sprintf("[GET /courses][%d] getCoursesOK ", 200) +} + +func (o *GetCoursesOK) String() string { + return fmt.Sprintf("[GET /courses][%d] getCoursesOK ", 200) +} + +func (o *GetCoursesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_enrollments_parameters.go b/api/members/members_client/operations/get_enrollments_parameters.go new file mode 100644 index 0000000..c6a8072 --- /dev/null +++ b/api/members/members_client/operations/get_enrollments_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetEnrollmentsParams creates a new GetEnrollmentsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetEnrollmentsParams() *GetEnrollmentsParams { + return &GetEnrollmentsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetEnrollmentsParamsWithTimeout creates a new GetEnrollmentsParams object +// with the ability to set a timeout on a request. +func NewGetEnrollmentsParamsWithTimeout(timeout time.Duration) *GetEnrollmentsParams { + return &GetEnrollmentsParams{ + timeout: timeout, + } +} + +// NewGetEnrollmentsParamsWithContext creates a new GetEnrollmentsParams object +// with the ability to set a context for a request. +func NewGetEnrollmentsParamsWithContext(ctx context.Context) *GetEnrollmentsParams { + return &GetEnrollmentsParams{ + Context: ctx, + } +} + +// NewGetEnrollmentsParamsWithHTTPClient creates a new GetEnrollmentsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetEnrollmentsParamsWithHTTPClient(client *http.Client) *GetEnrollmentsParams { + return &GetEnrollmentsParams{ + HTTPClient: client, + } +} + +/* +GetEnrollmentsParams contains all the parameters to send to the API endpoint + + for the get enrollments operation. + + Typically these are written to a http.Request. +*/ +type GetEnrollmentsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get enrollments params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEnrollmentsParams) WithDefaults() *GetEnrollmentsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get enrollments params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEnrollmentsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get enrollments params +func (o *GetEnrollmentsParams) WithTimeout(timeout time.Duration) *GetEnrollmentsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get enrollments params +func (o *GetEnrollmentsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get enrollments params +func (o *GetEnrollmentsParams) WithContext(ctx context.Context) *GetEnrollmentsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get enrollments params +func (o *GetEnrollmentsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get enrollments params +func (o *GetEnrollmentsParams) WithHTTPClient(client *http.Client) *GetEnrollmentsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get enrollments params +func (o *GetEnrollmentsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get enrollments params +func (o *GetEnrollmentsParams) WithID(id *string) *GetEnrollmentsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get enrollments params +func (o *GetEnrollmentsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get enrollments params +func (o *GetEnrollmentsParams) WithLimit(limit *int64) *GetEnrollmentsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get enrollments params +func (o *GetEnrollmentsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get enrollments params +func (o *GetEnrollmentsParams) WithOffset(offset *int64) *GetEnrollmentsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get enrollments params +func (o *GetEnrollmentsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetEnrollmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_enrollments_responses.go b/api/members/members_client/operations/get_enrollments_responses.go new file mode 100644 index 0000000..3b6e83d --- /dev/null +++ b/api/members/members_client/operations/get_enrollments_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetEnrollmentsReader is a Reader for the GetEnrollments structure. +type GetEnrollmentsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetEnrollmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetEnrollmentsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetEnrollmentsOK creates a GetEnrollmentsOK with default headers values +func NewGetEnrollmentsOK() *GetEnrollmentsOK { + return &GetEnrollmentsOK{} +} + +/* +GetEnrollmentsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetEnrollmentsOK struct { +} + +// IsSuccess returns true when this get enrollments o k response has a 2xx status code +func (o *GetEnrollmentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get enrollments o k response has a 3xx status code +func (o *GetEnrollmentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get enrollments o k response has a 4xx status code +func (o *GetEnrollmentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get enrollments o k response has a 5xx status code +func (o *GetEnrollmentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get enrollments o k response a status code equal to that given +func (o *GetEnrollmentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get enrollments o k response +func (o *GetEnrollmentsOK) Code() int { + return 200 +} + +func (o *GetEnrollmentsOK) Error() string { + return fmt.Sprintf("[GET /enrollments][%d] getEnrollmentsOK ", 200) +} + +func (o *GetEnrollmentsOK) String() string { + return fmt.Sprintf("[GET /enrollments][%d] getEnrollmentsOK ", 200) +} + +func (o *GetEnrollmentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_event_categoryassignments_parameters.go b/api/members/members_client/operations/get_event_categoryassignments_parameters.go new file mode 100644 index 0000000..feefd2d --- /dev/null +++ b/api/members/members_client/operations/get_event_categoryassignments_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetEventCategoryassignmentsParams creates a new GetEventCategoryassignmentsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetEventCategoryassignmentsParams() *GetEventCategoryassignmentsParams { + return &GetEventCategoryassignmentsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetEventCategoryassignmentsParamsWithTimeout creates a new GetEventCategoryassignmentsParams object +// with the ability to set a timeout on a request. +func NewGetEventCategoryassignmentsParamsWithTimeout(timeout time.Duration) *GetEventCategoryassignmentsParams { + return &GetEventCategoryassignmentsParams{ + timeout: timeout, + } +} + +// NewGetEventCategoryassignmentsParamsWithContext creates a new GetEventCategoryassignmentsParams object +// with the ability to set a context for a request. +func NewGetEventCategoryassignmentsParamsWithContext(ctx context.Context) *GetEventCategoryassignmentsParams { + return &GetEventCategoryassignmentsParams{ + Context: ctx, + } +} + +// NewGetEventCategoryassignmentsParamsWithHTTPClient creates a new GetEventCategoryassignmentsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetEventCategoryassignmentsParamsWithHTTPClient(client *http.Client) *GetEventCategoryassignmentsParams { + return &GetEventCategoryassignmentsParams{ + HTTPClient: client, + } +} + +/* +GetEventCategoryassignmentsParams contains all the parameters to send to the API endpoint + + for the get event categoryassignments operation. + + Typically these are written to a http.Request. +*/ +type GetEventCategoryassignmentsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get event categoryassignments params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventCategoryassignmentsParams) WithDefaults() *GetEventCategoryassignmentsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get event categoryassignments params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventCategoryassignmentsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) WithTimeout(timeout time.Duration) *GetEventCategoryassignmentsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) WithContext(ctx context.Context) *GetEventCategoryassignmentsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) WithHTTPClient(client *http.Client) *GetEventCategoryassignmentsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) WithID(id *string) *GetEventCategoryassignmentsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) WithLimit(limit *int64) *GetEventCategoryassignmentsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) WithOffset(offset *int64) *GetEventCategoryassignmentsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get event categoryassignments params +func (o *GetEventCategoryassignmentsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetEventCategoryassignmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_event_categoryassignments_responses.go b/api/members/members_client/operations/get_event_categoryassignments_responses.go new file mode 100644 index 0000000..f1f24e9 --- /dev/null +++ b/api/members/members_client/operations/get_event_categoryassignments_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetEventCategoryassignmentsReader is a Reader for the GetEventCategoryassignments structure. +type GetEventCategoryassignmentsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetEventCategoryassignmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetEventCategoryassignmentsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetEventCategoryassignmentsOK creates a GetEventCategoryassignmentsOK with default headers values +func NewGetEventCategoryassignmentsOK() *GetEventCategoryassignmentsOK { + return &GetEventCategoryassignmentsOK{} +} + +/* +GetEventCategoryassignmentsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetEventCategoryassignmentsOK struct { +} + +// IsSuccess returns true when this get event categoryassignments o k response has a 2xx status code +func (o *GetEventCategoryassignmentsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get event categoryassignments o k response has a 3xx status code +func (o *GetEventCategoryassignmentsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get event categoryassignments o k response has a 4xx status code +func (o *GetEventCategoryassignmentsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get event categoryassignments o k response has a 5xx status code +func (o *GetEventCategoryassignmentsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get event categoryassignments o k response a status code equal to that given +func (o *GetEventCategoryassignmentsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get event categoryassignments o k response +func (o *GetEventCategoryassignmentsOK) Code() int { + return 200 +} + +func (o *GetEventCategoryassignmentsOK) Error() string { + return fmt.Sprintf("[GET /eventcategoryassignments][%d] getEventCategoryassignmentsOK ", 200) +} + +func (o *GetEventCategoryassignmentsOK) String() string { + return fmt.Sprintf("[GET /eventcategoryassignments][%d] getEventCategoryassignmentsOK ", 200) +} + +func (o *GetEventCategoryassignmentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_event_categorys_parameters.go b/api/members/members_client/operations/get_event_categorys_parameters.go new file mode 100644 index 0000000..6309a20 --- /dev/null +++ b/api/members/members_client/operations/get_event_categorys_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetEventCategorysParams creates a new GetEventCategorysParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetEventCategorysParams() *GetEventCategorysParams { + return &GetEventCategorysParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetEventCategorysParamsWithTimeout creates a new GetEventCategorysParams object +// with the ability to set a timeout on a request. +func NewGetEventCategorysParamsWithTimeout(timeout time.Duration) *GetEventCategorysParams { + return &GetEventCategorysParams{ + timeout: timeout, + } +} + +// NewGetEventCategorysParamsWithContext creates a new GetEventCategorysParams object +// with the ability to set a context for a request. +func NewGetEventCategorysParamsWithContext(ctx context.Context) *GetEventCategorysParams { + return &GetEventCategorysParams{ + Context: ctx, + } +} + +// NewGetEventCategorysParamsWithHTTPClient creates a new GetEventCategorysParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetEventCategorysParamsWithHTTPClient(client *http.Client) *GetEventCategorysParams { + return &GetEventCategorysParams{ + HTTPClient: client, + } +} + +/* +GetEventCategorysParams contains all the parameters to send to the API endpoint + + for the get event categorys operation. + + Typically these are written to a http.Request. +*/ +type GetEventCategorysParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get event categorys params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventCategorysParams) WithDefaults() *GetEventCategorysParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get event categorys params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventCategorysParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get event categorys params +func (o *GetEventCategorysParams) WithTimeout(timeout time.Duration) *GetEventCategorysParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get event categorys params +func (o *GetEventCategorysParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get event categorys params +func (o *GetEventCategorysParams) WithContext(ctx context.Context) *GetEventCategorysParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get event categorys params +func (o *GetEventCategorysParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get event categorys params +func (o *GetEventCategorysParams) WithHTTPClient(client *http.Client) *GetEventCategorysParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get event categorys params +func (o *GetEventCategorysParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get event categorys params +func (o *GetEventCategorysParams) WithID(id *string) *GetEventCategorysParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get event categorys params +func (o *GetEventCategorysParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get event categorys params +func (o *GetEventCategorysParams) WithLimit(limit *int64) *GetEventCategorysParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get event categorys params +func (o *GetEventCategorysParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get event categorys params +func (o *GetEventCategorysParams) WithOffset(offset *int64) *GetEventCategorysParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get event categorys params +func (o *GetEventCategorysParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetEventCategorysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_event_categorys_responses.go b/api/members/members_client/operations/get_event_categorys_responses.go new file mode 100644 index 0000000..30adda5 --- /dev/null +++ b/api/members/members_client/operations/get_event_categorys_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetEventCategorysReader is a Reader for the GetEventCategorys structure. +type GetEventCategorysReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetEventCategorysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetEventCategorysOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetEventCategorysOK creates a GetEventCategorysOK with default headers values +func NewGetEventCategorysOK() *GetEventCategorysOK { + return &GetEventCategorysOK{} +} + +/* +GetEventCategorysOK describes a response with status code 200, with default header values. + +OK +*/ +type GetEventCategorysOK struct { +} + +// IsSuccess returns true when this get event categorys o k response has a 2xx status code +func (o *GetEventCategorysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get event categorys o k response has a 3xx status code +func (o *GetEventCategorysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get event categorys o k response has a 4xx status code +func (o *GetEventCategorysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get event categorys o k response has a 5xx status code +func (o *GetEventCategorysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get event categorys o k response a status code equal to that given +func (o *GetEventCategorysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get event categorys o k response +func (o *GetEventCategorysOK) Code() int { + return 200 +} + +func (o *GetEventCategorysOK) Error() string { + return fmt.Sprintf("[GET /eventcategorys][%d] getEventCategorysOK ", 200) +} + +func (o *GetEventCategorysOK) String() string { + return fmt.Sprintf("[GET /eventcategorys][%d] getEventCategorysOK ", 200) +} + +func (o *GetEventCategorysOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_events_parameters.go b/api/members/members_client/operations/get_events_parameters.go new file mode 100644 index 0000000..9b48aa6 --- /dev/null +++ b/api/members/members_client/operations/get_events_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetEventsParams creates a new GetEventsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetEventsParams() *GetEventsParams { + return &GetEventsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetEventsParamsWithTimeout creates a new GetEventsParams object +// with the ability to set a timeout on a request. +func NewGetEventsParamsWithTimeout(timeout time.Duration) *GetEventsParams { + return &GetEventsParams{ + timeout: timeout, + } +} + +// NewGetEventsParamsWithContext creates a new GetEventsParams object +// with the ability to set a context for a request. +func NewGetEventsParamsWithContext(ctx context.Context) *GetEventsParams { + return &GetEventsParams{ + Context: ctx, + } +} + +// NewGetEventsParamsWithHTTPClient creates a new GetEventsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetEventsParamsWithHTTPClient(client *http.Client) *GetEventsParams { + return &GetEventsParams{ + HTTPClient: client, + } +} + +/* +GetEventsParams contains all the parameters to send to the API endpoint + + for the get events operation. + + Typically these are written to a http.Request. +*/ +type GetEventsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get events params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventsParams) WithDefaults() *GetEventsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get events params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetEventsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get events params +func (o *GetEventsParams) WithTimeout(timeout time.Duration) *GetEventsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get events params +func (o *GetEventsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get events params +func (o *GetEventsParams) WithContext(ctx context.Context) *GetEventsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get events params +func (o *GetEventsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get events params +func (o *GetEventsParams) WithHTTPClient(client *http.Client) *GetEventsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get events params +func (o *GetEventsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get events params +func (o *GetEventsParams) WithID(id *string) *GetEventsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get events params +func (o *GetEventsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get events params +func (o *GetEventsParams) WithLimit(limit *int64) *GetEventsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get events params +func (o *GetEventsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get events params +func (o *GetEventsParams) WithOffset(offset *int64) *GetEventsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get events params +func (o *GetEventsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_events_responses.go b/api/members/members_client/operations/get_events_responses.go new file mode 100644 index 0000000..6c6a53a --- /dev/null +++ b/api/members/members_client/operations/get_events_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetEventsReader is a Reader for the GetEvents structure. +type GetEventsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetEventsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetEventsOK creates a GetEventsOK with default headers values +func NewGetEventsOK() *GetEventsOK { + return &GetEventsOK{} +} + +/* +GetEventsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetEventsOK struct { +} + +// IsSuccess returns true when this get events o k response has a 2xx status code +func (o *GetEventsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get events o k response has a 3xx status code +func (o *GetEventsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get events o k response has a 4xx status code +func (o *GetEventsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get events o k response has a 5xx status code +func (o *GetEventsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get events o k response a status code equal to that given +func (o *GetEventsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get events o k response +func (o *GetEventsOK) Code() int { + return 200 +} + +func (o *GetEventsOK) Error() string { + return fmt.Sprintf("[GET /events][%d] getEventsOK ", 200) +} + +func (o *GetEventsOK) String() string { + return fmt.Sprintf("[GET /events][%d] getEventsOK ", 200) +} + +func (o *GetEventsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_favorites_parameters.go b/api/members/members_client/operations/get_favorites_parameters.go new file mode 100644 index 0000000..e332cbc --- /dev/null +++ b/api/members/members_client/operations/get_favorites_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetFavoritesParams creates a new GetFavoritesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetFavoritesParams() *GetFavoritesParams { + return &GetFavoritesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetFavoritesParamsWithTimeout creates a new GetFavoritesParams object +// with the ability to set a timeout on a request. +func NewGetFavoritesParamsWithTimeout(timeout time.Duration) *GetFavoritesParams { + return &GetFavoritesParams{ + timeout: timeout, + } +} + +// NewGetFavoritesParamsWithContext creates a new GetFavoritesParams object +// with the ability to set a context for a request. +func NewGetFavoritesParamsWithContext(ctx context.Context) *GetFavoritesParams { + return &GetFavoritesParams{ + Context: ctx, + } +} + +// NewGetFavoritesParamsWithHTTPClient creates a new GetFavoritesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetFavoritesParamsWithHTTPClient(client *http.Client) *GetFavoritesParams { + return &GetFavoritesParams{ + HTTPClient: client, + } +} + +/* +GetFavoritesParams contains all the parameters to send to the API endpoint + + for the get favorites operation. + + Typically these are written to a http.Request. +*/ +type GetFavoritesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get favorites params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetFavoritesParams) WithDefaults() *GetFavoritesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get favorites params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetFavoritesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get favorites params +func (o *GetFavoritesParams) WithTimeout(timeout time.Duration) *GetFavoritesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get favorites params +func (o *GetFavoritesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get favorites params +func (o *GetFavoritesParams) WithContext(ctx context.Context) *GetFavoritesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get favorites params +func (o *GetFavoritesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get favorites params +func (o *GetFavoritesParams) WithHTTPClient(client *http.Client) *GetFavoritesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get favorites params +func (o *GetFavoritesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get favorites params +func (o *GetFavoritesParams) WithID(id *string) *GetFavoritesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get favorites params +func (o *GetFavoritesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get favorites params +func (o *GetFavoritesParams) WithLimit(limit *int64) *GetFavoritesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get favorites params +func (o *GetFavoritesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get favorites params +func (o *GetFavoritesParams) WithOffset(offset *int64) *GetFavoritesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get favorites params +func (o *GetFavoritesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetFavoritesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_favorites_responses.go b/api/members/members_client/operations/get_favorites_responses.go new file mode 100644 index 0000000..36ab5c7 --- /dev/null +++ b/api/members/members_client/operations/get_favorites_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetFavoritesReader is a Reader for the GetFavorites structure. +type GetFavoritesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetFavoritesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetFavoritesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetFavoritesOK creates a GetFavoritesOK with default headers values +func NewGetFavoritesOK() *GetFavoritesOK { + return &GetFavoritesOK{} +} + +/* +GetFavoritesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetFavoritesOK struct { +} + +// IsSuccess returns true when this get favorites o k response has a 2xx status code +func (o *GetFavoritesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get favorites o k response has a 3xx status code +func (o *GetFavoritesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get favorites o k response has a 4xx status code +func (o *GetFavoritesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get favorites o k response has a 5xx status code +func (o *GetFavoritesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get favorites o k response a status code equal to that given +func (o *GetFavoritesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get favorites o k response +func (o *GetFavoritesOK) Code() int { + return 200 +} + +func (o *GetFavoritesOK) Error() string { + return fmt.Sprintf("[GET /favorites][%d] getFavoritesOK ", 200) +} + +func (o *GetFavoritesOK) String() string { + return fmt.Sprintf("[GET /favorites][%d] getFavoritesOK ", 200) +} + +func (o *GetFavoritesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_invoices_parameters.go b/api/members/members_client/operations/get_invoices_parameters.go new file mode 100644 index 0000000..1beeb3b --- /dev/null +++ b/api/members/members_client/operations/get_invoices_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetInvoicesParams creates a new GetInvoicesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetInvoicesParams() *GetInvoicesParams { + return &GetInvoicesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetInvoicesParamsWithTimeout creates a new GetInvoicesParams object +// with the ability to set a timeout on a request. +func NewGetInvoicesParamsWithTimeout(timeout time.Duration) *GetInvoicesParams { + return &GetInvoicesParams{ + timeout: timeout, + } +} + +// NewGetInvoicesParamsWithContext creates a new GetInvoicesParams object +// with the ability to set a context for a request. +func NewGetInvoicesParamsWithContext(ctx context.Context) *GetInvoicesParams { + return &GetInvoicesParams{ + Context: ctx, + } +} + +// NewGetInvoicesParamsWithHTTPClient creates a new GetInvoicesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetInvoicesParamsWithHTTPClient(client *http.Client) *GetInvoicesParams { + return &GetInvoicesParams{ + HTTPClient: client, + } +} + +/* +GetInvoicesParams contains all the parameters to send to the API endpoint + + for the get invoices operation. + + Typically these are written to a http.Request. +*/ +type GetInvoicesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get invoices params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetInvoicesParams) WithDefaults() *GetInvoicesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get invoices params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetInvoicesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get invoices params +func (o *GetInvoicesParams) WithTimeout(timeout time.Duration) *GetInvoicesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get invoices params +func (o *GetInvoicesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get invoices params +func (o *GetInvoicesParams) WithContext(ctx context.Context) *GetInvoicesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get invoices params +func (o *GetInvoicesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get invoices params +func (o *GetInvoicesParams) WithHTTPClient(client *http.Client) *GetInvoicesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get invoices params +func (o *GetInvoicesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get invoices params +func (o *GetInvoicesParams) WithID(id *string) *GetInvoicesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get invoices params +func (o *GetInvoicesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get invoices params +func (o *GetInvoicesParams) WithLimit(limit *int64) *GetInvoicesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get invoices params +func (o *GetInvoicesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get invoices params +func (o *GetInvoicesParams) WithOffset(offset *int64) *GetInvoicesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get invoices params +func (o *GetInvoicesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetInvoicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_invoices_responses.go b/api/members/members_client/operations/get_invoices_responses.go new file mode 100644 index 0000000..c5fe76f --- /dev/null +++ b/api/members/members_client/operations/get_invoices_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetInvoicesReader is a Reader for the GetInvoices structure. +type GetInvoicesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetInvoicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetInvoicesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetInvoicesOK creates a GetInvoicesOK with default headers values +func NewGetInvoicesOK() *GetInvoicesOK { + return &GetInvoicesOK{} +} + +/* +GetInvoicesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetInvoicesOK struct { +} + +// IsSuccess returns true when this get invoices o k response has a 2xx status code +func (o *GetInvoicesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get invoices o k response has a 3xx status code +func (o *GetInvoicesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get invoices o k response has a 4xx status code +func (o *GetInvoicesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get invoices o k response has a 5xx status code +func (o *GetInvoicesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get invoices o k response a status code equal to that given +func (o *GetInvoicesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get invoices o k response +func (o *GetInvoicesOK) Code() int { + return 200 +} + +func (o *GetInvoicesOK) Error() string { + return fmt.Sprintf("[GET /invoices][%d] getInvoicesOK ", 200) +} + +func (o *GetInvoicesOK) String() string { + return fmt.Sprintf("[GET /invoices][%d] getInvoicesOK ", 200) +} + +func (o *GetInvoicesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_issuedcertificates_parameters.go b/api/members/members_client/operations/get_issuedcertificates_parameters.go new file mode 100644 index 0000000..737a315 --- /dev/null +++ b/api/members/members_client/operations/get_issuedcertificates_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetIssuedcertificatesParams creates a new GetIssuedcertificatesParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetIssuedcertificatesParams() *GetIssuedcertificatesParams { + return &GetIssuedcertificatesParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetIssuedcertificatesParamsWithTimeout creates a new GetIssuedcertificatesParams object +// with the ability to set a timeout on a request. +func NewGetIssuedcertificatesParamsWithTimeout(timeout time.Duration) *GetIssuedcertificatesParams { + return &GetIssuedcertificatesParams{ + timeout: timeout, + } +} + +// NewGetIssuedcertificatesParamsWithContext creates a new GetIssuedcertificatesParams object +// with the ability to set a context for a request. +func NewGetIssuedcertificatesParamsWithContext(ctx context.Context) *GetIssuedcertificatesParams { + return &GetIssuedcertificatesParams{ + Context: ctx, + } +} + +// NewGetIssuedcertificatesParamsWithHTTPClient creates a new GetIssuedcertificatesParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetIssuedcertificatesParamsWithHTTPClient(client *http.Client) *GetIssuedcertificatesParams { + return &GetIssuedcertificatesParams{ + HTTPClient: client, + } +} + +/* +GetIssuedcertificatesParams contains all the parameters to send to the API endpoint + + for the get issuedcertificates operation. + + Typically these are written to a http.Request. +*/ +type GetIssuedcertificatesParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get issuedcertificates params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetIssuedcertificatesParams) WithDefaults() *GetIssuedcertificatesParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get issuedcertificates params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetIssuedcertificatesParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) WithTimeout(timeout time.Duration) *GetIssuedcertificatesParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) WithContext(ctx context.Context) *GetIssuedcertificatesParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) WithHTTPClient(client *http.Client) *GetIssuedcertificatesParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) WithID(id *string) *GetIssuedcertificatesParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) WithLimit(limit *int64) *GetIssuedcertificatesParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) WithOffset(offset *int64) *GetIssuedcertificatesParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get issuedcertificates params +func (o *GetIssuedcertificatesParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetIssuedcertificatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_issuedcertificates_responses.go b/api/members/members_client/operations/get_issuedcertificates_responses.go new file mode 100644 index 0000000..ac1d82e --- /dev/null +++ b/api/members/members_client/operations/get_issuedcertificates_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetIssuedcertificatesReader is a Reader for the GetIssuedcertificates structure. +type GetIssuedcertificatesReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetIssuedcertificatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetIssuedcertificatesOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetIssuedcertificatesOK creates a GetIssuedcertificatesOK with default headers values +func NewGetIssuedcertificatesOK() *GetIssuedcertificatesOK { + return &GetIssuedcertificatesOK{} +} + +/* +GetIssuedcertificatesOK describes a response with status code 200, with default header values. + +OK +*/ +type GetIssuedcertificatesOK struct { +} + +// IsSuccess returns true when this get issuedcertificates o k response has a 2xx status code +func (o *GetIssuedcertificatesOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get issuedcertificates o k response has a 3xx status code +func (o *GetIssuedcertificatesOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get issuedcertificates o k response has a 4xx status code +func (o *GetIssuedcertificatesOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get issuedcertificates o k response has a 5xx status code +func (o *GetIssuedcertificatesOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get issuedcertificates o k response a status code equal to that given +func (o *GetIssuedcertificatesOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get issuedcertificates o k response +func (o *GetIssuedcertificatesOK) Code() int { + return 200 +} + +func (o *GetIssuedcertificatesOK) Error() string { + return fmt.Sprintf("[GET /issuedcertificates][%d] getIssuedcertificatesOK ", 200) +} + +func (o *GetIssuedcertificatesOK) String() string { + return fmt.Sprintf("[GET /issuedcertificates][%d] getIssuedcertificatesOK ", 200) +} + +func (o *GetIssuedcertificatesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_lesson_progress_parameters.go b/api/members/members_client/operations/get_lesson_progress_parameters.go new file mode 100644 index 0000000..a02805d --- /dev/null +++ b/api/members/members_client/operations/get_lesson_progress_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetLessonProgressParams creates a new GetLessonProgressParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetLessonProgressParams() *GetLessonProgressParams { + return &GetLessonProgressParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetLessonProgressParamsWithTimeout creates a new GetLessonProgressParams object +// with the ability to set a timeout on a request. +func NewGetLessonProgressParamsWithTimeout(timeout time.Duration) *GetLessonProgressParams { + return &GetLessonProgressParams{ + timeout: timeout, + } +} + +// NewGetLessonProgressParamsWithContext creates a new GetLessonProgressParams object +// with the ability to set a context for a request. +func NewGetLessonProgressParamsWithContext(ctx context.Context) *GetLessonProgressParams { + return &GetLessonProgressParams{ + Context: ctx, + } +} + +// NewGetLessonProgressParamsWithHTTPClient creates a new GetLessonProgressParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetLessonProgressParamsWithHTTPClient(client *http.Client) *GetLessonProgressParams { + return &GetLessonProgressParams{ + HTTPClient: client, + } +} + +/* +GetLessonProgressParams contains all the parameters to send to the API endpoint + + for the get lesson progress operation. + + Typically these are written to a http.Request. +*/ +type GetLessonProgressParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetLessonProgressParams) WithDefaults() *GetLessonProgressParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetLessonProgressParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get lesson progress params +func (o *GetLessonProgressParams) WithTimeout(timeout time.Duration) *GetLessonProgressParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get lesson progress params +func (o *GetLessonProgressParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get lesson progress params +func (o *GetLessonProgressParams) WithContext(ctx context.Context) *GetLessonProgressParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get lesson progress params +func (o *GetLessonProgressParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get lesson progress params +func (o *GetLessonProgressParams) WithHTTPClient(client *http.Client) *GetLessonProgressParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get lesson progress params +func (o *GetLessonProgressParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get lesson progress params +func (o *GetLessonProgressParams) WithID(id *string) *GetLessonProgressParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get lesson progress params +func (o *GetLessonProgressParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get lesson progress params +func (o *GetLessonProgressParams) WithLimit(limit *int64) *GetLessonProgressParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get lesson progress params +func (o *GetLessonProgressParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get lesson progress params +func (o *GetLessonProgressParams) WithOffset(offset *int64) *GetLessonProgressParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get lesson progress params +func (o *GetLessonProgressParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetLessonProgressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_lesson_progress_responses.go b/api/members/members_client/operations/get_lesson_progress_responses.go new file mode 100644 index 0000000..a4ba03c --- /dev/null +++ b/api/members/members_client/operations/get_lesson_progress_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetLessonProgressReader is a Reader for the GetLessonProgress structure. +type GetLessonProgressReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetLessonProgressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetLessonProgressOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetLessonProgressOK creates a GetLessonProgressOK with default headers values +func NewGetLessonProgressOK() *GetLessonProgressOK { + return &GetLessonProgressOK{} +} + +/* +GetLessonProgressOK describes a response with status code 200, with default header values. + +OK +*/ +type GetLessonProgressOK struct { +} + +// IsSuccess returns true when this get lesson progress o k response has a 2xx status code +func (o *GetLessonProgressOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get lesson progress o k response has a 3xx status code +func (o *GetLessonProgressOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get lesson progress o k response has a 4xx status code +func (o *GetLessonProgressOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get lesson progress o k response has a 5xx status code +func (o *GetLessonProgressOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get lesson progress o k response a status code equal to that given +func (o *GetLessonProgressOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get lesson progress o k response +func (o *GetLessonProgressOK) Code() int { + return 200 +} + +func (o *GetLessonProgressOK) Error() string { + return fmt.Sprintf("[GET /lessonprogress][%d] getLessonProgressOK ", 200) +} + +func (o *GetLessonProgressOK) String() string { + return fmt.Sprintf("[GET /lessonprogress][%d] getLessonProgressOK ", 200) +} + +func (o *GetLessonProgressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_orders_parameters.go b/api/members/members_client/operations/get_orders_parameters.go new file mode 100644 index 0000000..c2686cc --- /dev/null +++ b/api/members/members_client/operations/get_orders_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetOrdersParams creates a new GetOrdersParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetOrdersParams() *GetOrdersParams { + return &GetOrdersParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetOrdersParamsWithTimeout creates a new GetOrdersParams object +// with the ability to set a timeout on a request. +func NewGetOrdersParamsWithTimeout(timeout time.Duration) *GetOrdersParams { + return &GetOrdersParams{ + timeout: timeout, + } +} + +// NewGetOrdersParamsWithContext creates a new GetOrdersParams object +// with the ability to set a context for a request. +func NewGetOrdersParamsWithContext(ctx context.Context) *GetOrdersParams { + return &GetOrdersParams{ + Context: ctx, + } +} + +// NewGetOrdersParamsWithHTTPClient creates a new GetOrdersParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetOrdersParamsWithHTTPClient(client *http.Client) *GetOrdersParams { + return &GetOrdersParams{ + HTTPClient: client, + } +} + +/* +GetOrdersParams contains all the parameters to send to the API endpoint + + for the get orders operation. + + Typically these are written to a http.Request. +*/ +type GetOrdersParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get orders params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetOrdersParams) WithDefaults() *GetOrdersParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get orders params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetOrdersParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get orders params +func (o *GetOrdersParams) WithTimeout(timeout time.Duration) *GetOrdersParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get orders params +func (o *GetOrdersParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get orders params +func (o *GetOrdersParams) WithContext(ctx context.Context) *GetOrdersParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get orders params +func (o *GetOrdersParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get orders params +func (o *GetOrdersParams) WithHTTPClient(client *http.Client) *GetOrdersParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get orders params +func (o *GetOrdersParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get orders params +func (o *GetOrdersParams) WithID(id *string) *GetOrdersParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get orders params +func (o *GetOrdersParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get orders params +func (o *GetOrdersParams) WithLimit(limit *int64) *GetOrdersParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get orders params +func (o *GetOrdersParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get orders params +func (o *GetOrdersParams) WithOffset(offset *int64) *GetOrdersParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get orders params +func (o *GetOrdersParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_orders_responses.go b/api/members/members_client/operations/get_orders_responses.go new file mode 100644 index 0000000..5fd17e9 --- /dev/null +++ b/api/members/members_client/operations/get_orders_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetOrdersReader is a Reader for the GetOrders structure. +type GetOrdersReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetOrdersOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetOrdersOK creates a GetOrdersOK with default headers values +func NewGetOrdersOK() *GetOrdersOK { + return &GetOrdersOK{} +} + +/* +GetOrdersOK describes a response with status code 200, with default header values. + +OK +*/ +type GetOrdersOK struct { +} + +// IsSuccess returns true when this get orders o k response has a 2xx status code +func (o *GetOrdersOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get orders o k response has a 3xx status code +func (o *GetOrdersOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get orders o k response has a 4xx status code +func (o *GetOrdersOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get orders o k response has a 5xx status code +func (o *GetOrdersOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get orders o k response a status code equal to that given +func (o *GetOrdersOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get orders o k response +func (o *GetOrdersOK) Code() int { + return 200 +} + +func (o *GetOrdersOK) Error() string { + return fmt.Sprintf("[GET /orders][%d] getOrdersOK ", 200) +} + +func (o *GetOrdersOK) String() string { + return fmt.Sprintf("[GET /orders][%d] getOrdersOK ", 200) +} + +func (o *GetOrdersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_payment_methods_parameters.go b/api/members/members_client/operations/get_payment_methods_parameters.go new file mode 100644 index 0000000..be3d677 --- /dev/null +++ b/api/members/members_client/operations/get_payment_methods_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetPaymentMethodsParams creates a new GetPaymentMethodsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetPaymentMethodsParams() *GetPaymentMethodsParams { + return &GetPaymentMethodsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetPaymentMethodsParamsWithTimeout creates a new GetPaymentMethodsParams object +// with the ability to set a timeout on a request. +func NewGetPaymentMethodsParamsWithTimeout(timeout time.Duration) *GetPaymentMethodsParams { + return &GetPaymentMethodsParams{ + timeout: timeout, + } +} + +// NewGetPaymentMethodsParamsWithContext creates a new GetPaymentMethodsParams object +// with the ability to set a context for a request. +func NewGetPaymentMethodsParamsWithContext(ctx context.Context) *GetPaymentMethodsParams { + return &GetPaymentMethodsParams{ + Context: ctx, + } +} + +// NewGetPaymentMethodsParamsWithHTTPClient creates a new GetPaymentMethodsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetPaymentMethodsParamsWithHTTPClient(client *http.Client) *GetPaymentMethodsParams { + return &GetPaymentMethodsParams{ + HTTPClient: client, + } +} + +/* +GetPaymentMethodsParams contains all the parameters to send to the API endpoint + + for the get payment methods operation. + + Typically these are written to a http.Request. +*/ +type GetPaymentMethodsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get payment methods params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetPaymentMethodsParams) WithDefaults() *GetPaymentMethodsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get payment methods params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetPaymentMethodsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get payment methods params +func (o *GetPaymentMethodsParams) WithTimeout(timeout time.Duration) *GetPaymentMethodsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get payment methods params +func (o *GetPaymentMethodsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get payment methods params +func (o *GetPaymentMethodsParams) WithContext(ctx context.Context) *GetPaymentMethodsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get payment methods params +func (o *GetPaymentMethodsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get payment methods params +func (o *GetPaymentMethodsParams) WithHTTPClient(client *http.Client) *GetPaymentMethodsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get payment methods params +func (o *GetPaymentMethodsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get payment methods params +func (o *GetPaymentMethodsParams) WithID(id *string) *GetPaymentMethodsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get payment methods params +func (o *GetPaymentMethodsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get payment methods params +func (o *GetPaymentMethodsParams) WithLimit(limit *int64) *GetPaymentMethodsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get payment methods params +func (o *GetPaymentMethodsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get payment methods params +func (o *GetPaymentMethodsParams) WithOffset(offset *int64) *GetPaymentMethodsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get payment methods params +func (o *GetPaymentMethodsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetPaymentMethodsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_payment_methods_responses.go b/api/members/members_client/operations/get_payment_methods_responses.go new file mode 100644 index 0000000..57d3f7c --- /dev/null +++ b/api/members/members_client/operations/get_payment_methods_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetPaymentMethodsReader is a Reader for the GetPaymentMethods structure. +type GetPaymentMethodsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetPaymentMethodsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetPaymentMethodsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetPaymentMethodsOK creates a GetPaymentMethodsOK with default headers values +func NewGetPaymentMethodsOK() *GetPaymentMethodsOK { + return &GetPaymentMethodsOK{} +} + +/* +GetPaymentMethodsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetPaymentMethodsOK struct { +} + +// IsSuccess returns true when this get payment methods o k response has a 2xx status code +func (o *GetPaymentMethodsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get payment methods o k response has a 3xx status code +func (o *GetPaymentMethodsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get payment methods o k response has a 4xx status code +func (o *GetPaymentMethodsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get payment methods o k response has a 5xx status code +func (o *GetPaymentMethodsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get payment methods o k response a status code equal to that given +func (o *GetPaymentMethodsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get payment methods o k response +func (o *GetPaymentMethodsOK) Code() int { + return 200 +} + +func (o *GetPaymentMethodsOK) Error() string { + return fmt.Sprintf("[GET /paymentmethods][%d] getPaymentMethodsOK ", 200) +} + +func (o *GetPaymentMethodsOK) String() string { + return fmt.Sprintf("[GET /paymentmethods][%d] getPaymentMethodsOK ", 200) +} + +func (o *GetPaymentMethodsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_research_project_companys_parameters.go b/api/members/members_client/operations/get_research_project_companys_parameters.go new file mode 100644 index 0000000..cdf2c65 --- /dev/null +++ b/api/members/members_client/operations/get_research_project_companys_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetResearchProjectCompanysParams creates a new GetResearchProjectCompanysParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetResearchProjectCompanysParams() *GetResearchProjectCompanysParams { + return &GetResearchProjectCompanysParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetResearchProjectCompanysParamsWithTimeout creates a new GetResearchProjectCompanysParams object +// with the ability to set a timeout on a request. +func NewGetResearchProjectCompanysParamsWithTimeout(timeout time.Duration) *GetResearchProjectCompanysParams { + return &GetResearchProjectCompanysParams{ + timeout: timeout, + } +} + +// NewGetResearchProjectCompanysParamsWithContext creates a new GetResearchProjectCompanysParams object +// with the ability to set a context for a request. +func NewGetResearchProjectCompanysParamsWithContext(ctx context.Context) *GetResearchProjectCompanysParams { + return &GetResearchProjectCompanysParams{ + Context: ctx, + } +} + +// NewGetResearchProjectCompanysParamsWithHTTPClient creates a new GetResearchProjectCompanysParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetResearchProjectCompanysParamsWithHTTPClient(client *http.Client) *GetResearchProjectCompanysParams { + return &GetResearchProjectCompanysParams{ + HTTPClient: client, + } +} + +/* +GetResearchProjectCompanysParams contains all the parameters to send to the API endpoint + + for the get research project companys operation. + + Typically these are written to a http.Request. +*/ +type GetResearchProjectCompanysParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get research project companys params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetResearchProjectCompanysParams) WithDefaults() *GetResearchProjectCompanysParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get research project companys params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetResearchProjectCompanysParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get research project companys params +func (o *GetResearchProjectCompanysParams) WithTimeout(timeout time.Duration) *GetResearchProjectCompanysParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get research project companys params +func (o *GetResearchProjectCompanysParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get research project companys params +func (o *GetResearchProjectCompanysParams) WithContext(ctx context.Context) *GetResearchProjectCompanysParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get research project companys params +func (o *GetResearchProjectCompanysParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get research project companys params +func (o *GetResearchProjectCompanysParams) WithHTTPClient(client *http.Client) *GetResearchProjectCompanysParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get research project companys params +func (o *GetResearchProjectCompanysParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get research project companys params +func (o *GetResearchProjectCompanysParams) WithID(id *string) *GetResearchProjectCompanysParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get research project companys params +func (o *GetResearchProjectCompanysParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get research project companys params +func (o *GetResearchProjectCompanysParams) WithLimit(limit *int64) *GetResearchProjectCompanysParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get research project companys params +func (o *GetResearchProjectCompanysParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get research project companys params +func (o *GetResearchProjectCompanysParams) WithOffset(offset *int64) *GetResearchProjectCompanysParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get research project companys params +func (o *GetResearchProjectCompanysParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetResearchProjectCompanysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_research_project_companys_responses.go b/api/members/members_client/operations/get_research_project_companys_responses.go new file mode 100644 index 0000000..62ece95 --- /dev/null +++ b/api/members/members_client/operations/get_research_project_companys_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetResearchProjectCompanysReader is a Reader for the GetResearchProjectCompanys structure. +type GetResearchProjectCompanysReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetResearchProjectCompanysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetResearchProjectCompanysOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetResearchProjectCompanysOK creates a GetResearchProjectCompanysOK with default headers values +func NewGetResearchProjectCompanysOK() *GetResearchProjectCompanysOK { + return &GetResearchProjectCompanysOK{} +} + +/* +GetResearchProjectCompanysOK describes a response with status code 200, with default header values. + +OK +*/ +type GetResearchProjectCompanysOK struct { +} + +// IsSuccess returns true when this get research project companys o k response has a 2xx status code +func (o *GetResearchProjectCompanysOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get research project companys o k response has a 3xx status code +func (o *GetResearchProjectCompanysOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get research project companys o k response has a 4xx status code +func (o *GetResearchProjectCompanysOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get research project companys o k response has a 5xx status code +func (o *GetResearchProjectCompanysOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get research project companys o k response a status code equal to that given +func (o *GetResearchProjectCompanysOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get research project companys o k response +func (o *GetResearchProjectCompanysOK) Code() int { + return 200 +} + +func (o *GetResearchProjectCompanysOK) Error() string { + return fmt.Sprintf("[GET /researchprojectcompanys][%d] getResearchProjectCompanysOK ", 200) +} + +func (o *GetResearchProjectCompanysOK) String() string { + return fmt.Sprintf("[GET /researchprojectcompanys][%d] getResearchProjectCompanysOK ", 200) +} + +func (o *GetResearchProjectCompanysOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_research_project_topics_parameters.go b/api/members/members_client/operations/get_research_project_topics_parameters.go new file mode 100644 index 0000000..27af583 --- /dev/null +++ b/api/members/members_client/operations/get_research_project_topics_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetResearchProjectTopicsParams creates a new GetResearchProjectTopicsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetResearchProjectTopicsParams() *GetResearchProjectTopicsParams { + return &GetResearchProjectTopicsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetResearchProjectTopicsParamsWithTimeout creates a new GetResearchProjectTopicsParams object +// with the ability to set a timeout on a request. +func NewGetResearchProjectTopicsParamsWithTimeout(timeout time.Duration) *GetResearchProjectTopicsParams { + return &GetResearchProjectTopicsParams{ + timeout: timeout, + } +} + +// NewGetResearchProjectTopicsParamsWithContext creates a new GetResearchProjectTopicsParams object +// with the ability to set a context for a request. +func NewGetResearchProjectTopicsParamsWithContext(ctx context.Context) *GetResearchProjectTopicsParams { + return &GetResearchProjectTopicsParams{ + Context: ctx, + } +} + +// NewGetResearchProjectTopicsParamsWithHTTPClient creates a new GetResearchProjectTopicsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetResearchProjectTopicsParamsWithHTTPClient(client *http.Client) *GetResearchProjectTopicsParams { + return &GetResearchProjectTopicsParams{ + HTTPClient: client, + } +} + +/* +GetResearchProjectTopicsParams contains all the parameters to send to the API endpoint + + for the get research project topics operation. + + Typically these are written to a http.Request. +*/ +type GetResearchProjectTopicsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get research project topics params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetResearchProjectTopicsParams) WithDefaults() *GetResearchProjectTopicsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get research project topics params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetResearchProjectTopicsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get research project topics params +func (o *GetResearchProjectTopicsParams) WithTimeout(timeout time.Duration) *GetResearchProjectTopicsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get research project topics params +func (o *GetResearchProjectTopicsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get research project topics params +func (o *GetResearchProjectTopicsParams) WithContext(ctx context.Context) *GetResearchProjectTopicsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get research project topics params +func (o *GetResearchProjectTopicsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get research project topics params +func (o *GetResearchProjectTopicsParams) WithHTTPClient(client *http.Client) *GetResearchProjectTopicsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get research project topics params +func (o *GetResearchProjectTopicsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get research project topics params +func (o *GetResearchProjectTopicsParams) WithID(id *string) *GetResearchProjectTopicsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get research project topics params +func (o *GetResearchProjectTopicsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get research project topics params +func (o *GetResearchProjectTopicsParams) WithLimit(limit *int64) *GetResearchProjectTopicsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get research project topics params +func (o *GetResearchProjectTopicsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get research project topics params +func (o *GetResearchProjectTopicsParams) WithOffset(offset *int64) *GetResearchProjectTopicsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get research project topics params +func (o *GetResearchProjectTopicsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetResearchProjectTopicsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_research_project_topics_responses.go b/api/members/members_client/operations/get_research_project_topics_responses.go new file mode 100644 index 0000000..5f3ecfe --- /dev/null +++ b/api/members/members_client/operations/get_research_project_topics_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetResearchProjectTopicsReader is a Reader for the GetResearchProjectTopics structure. +type GetResearchProjectTopicsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetResearchProjectTopicsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetResearchProjectTopicsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetResearchProjectTopicsOK creates a GetResearchProjectTopicsOK with default headers values +func NewGetResearchProjectTopicsOK() *GetResearchProjectTopicsOK { + return &GetResearchProjectTopicsOK{} +} + +/* +GetResearchProjectTopicsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetResearchProjectTopicsOK struct { +} + +// IsSuccess returns true when this get research project topics o k response has a 2xx status code +func (o *GetResearchProjectTopicsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get research project topics o k response has a 3xx status code +func (o *GetResearchProjectTopicsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get research project topics o k response has a 4xx status code +func (o *GetResearchProjectTopicsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get research project topics o k response has a 5xx status code +func (o *GetResearchProjectTopicsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get research project topics o k response a status code equal to that given +func (o *GetResearchProjectTopicsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get research project topics o k response +func (o *GetResearchProjectTopicsOK) Code() int { + return 200 +} + +func (o *GetResearchProjectTopicsOK) Error() string { + return fmt.Sprintf("[GET /researchprojecttopics][%d] getResearchProjectTopicsOK ", 200) +} + +func (o *GetResearchProjectTopicsOK) String() string { + return fmt.Sprintf("[GET /researchprojecttopics][%d] getResearchProjectTopicsOK ", 200) +} + +func (o *GetResearchProjectTopicsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_research_projects_parameters.go b/api/members/members_client/operations/get_research_projects_parameters.go new file mode 100644 index 0000000..a6bc20d --- /dev/null +++ b/api/members/members_client/operations/get_research_projects_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetResearchProjectsParams creates a new GetResearchProjectsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetResearchProjectsParams() *GetResearchProjectsParams { + return &GetResearchProjectsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetResearchProjectsParamsWithTimeout creates a new GetResearchProjectsParams object +// with the ability to set a timeout on a request. +func NewGetResearchProjectsParamsWithTimeout(timeout time.Duration) *GetResearchProjectsParams { + return &GetResearchProjectsParams{ + timeout: timeout, + } +} + +// NewGetResearchProjectsParamsWithContext creates a new GetResearchProjectsParams object +// with the ability to set a context for a request. +func NewGetResearchProjectsParamsWithContext(ctx context.Context) *GetResearchProjectsParams { + return &GetResearchProjectsParams{ + Context: ctx, + } +} + +// NewGetResearchProjectsParamsWithHTTPClient creates a new GetResearchProjectsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetResearchProjectsParamsWithHTTPClient(client *http.Client) *GetResearchProjectsParams { + return &GetResearchProjectsParams{ + HTTPClient: client, + } +} + +/* +GetResearchProjectsParams contains all the parameters to send to the API endpoint + + for the get research projects operation. + + Typically these are written to a http.Request. +*/ +type GetResearchProjectsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get research projects params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetResearchProjectsParams) WithDefaults() *GetResearchProjectsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get research projects params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetResearchProjectsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get research projects params +func (o *GetResearchProjectsParams) WithTimeout(timeout time.Duration) *GetResearchProjectsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get research projects params +func (o *GetResearchProjectsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get research projects params +func (o *GetResearchProjectsParams) WithContext(ctx context.Context) *GetResearchProjectsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get research projects params +func (o *GetResearchProjectsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get research projects params +func (o *GetResearchProjectsParams) WithHTTPClient(client *http.Client) *GetResearchProjectsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get research projects params +func (o *GetResearchProjectsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get research projects params +func (o *GetResearchProjectsParams) WithID(id *string) *GetResearchProjectsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get research projects params +func (o *GetResearchProjectsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get research projects params +func (o *GetResearchProjectsParams) WithLimit(limit *int64) *GetResearchProjectsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get research projects params +func (o *GetResearchProjectsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get research projects params +func (o *GetResearchProjectsParams) WithOffset(offset *int64) *GetResearchProjectsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get research projects params +func (o *GetResearchProjectsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetResearchProjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_research_projects_responses.go b/api/members/members_client/operations/get_research_projects_responses.go new file mode 100644 index 0000000..65e4ffb --- /dev/null +++ b/api/members/members_client/operations/get_research_projects_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetResearchProjectsReader is a Reader for the GetResearchProjects structure. +type GetResearchProjectsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetResearchProjectsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetResearchProjectsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetResearchProjectsOK creates a GetResearchProjectsOK with default headers values +func NewGetResearchProjectsOK() *GetResearchProjectsOK { + return &GetResearchProjectsOK{} +} + +/* +GetResearchProjectsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetResearchProjectsOK struct { +} + +// IsSuccess returns true when this get research projects o k response has a 2xx status code +func (o *GetResearchProjectsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get research projects o k response has a 3xx status code +func (o *GetResearchProjectsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get research projects o k response has a 4xx status code +func (o *GetResearchProjectsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get research projects o k response has a 5xx status code +func (o *GetResearchProjectsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get research projects o k response a status code equal to that given +func (o *GetResearchProjectsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get research projects o k response +func (o *GetResearchProjectsOK) Code() int { + return 200 +} + +func (o *GetResearchProjectsOK) Error() string { + return fmt.Sprintf("[GET /researchprojects][%d] getResearchProjectsOK ", 200) +} + +func (o *GetResearchProjectsOK) String() string { + return fmt.Sprintf("[GET /researchprojects][%d] getResearchProjectsOK ", 200) +} + +func (o *GetResearchProjectsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_tickets_parameters.go b/api/members/members_client/operations/get_tickets_parameters.go new file mode 100644 index 0000000..84043b2 --- /dev/null +++ b/api/members/members_client/operations/get_tickets_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetTicketsParams creates a new GetTicketsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetTicketsParams() *GetTicketsParams { + return &GetTicketsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetTicketsParamsWithTimeout creates a new GetTicketsParams object +// with the ability to set a timeout on a request. +func NewGetTicketsParamsWithTimeout(timeout time.Duration) *GetTicketsParams { + return &GetTicketsParams{ + timeout: timeout, + } +} + +// NewGetTicketsParamsWithContext creates a new GetTicketsParams object +// with the ability to set a context for a request. +func NewGetTicketsParamsWithContext(ctx context.Context) *GetTicketsParams { + return &GetTicketsParams{ + Context: ctx, + } +} + +// NewGetTicketsParamsWithHTTPClient creates a new GetTicketsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetTicketsParamsWithHTTPClient(client *http.Client) *GetTicketsParams { + return &GetTicketsParams{ + HTTPClient: client, + } +} + +/* +GetTicketsParams contains all the parameters to send to the API endpoint + + for the get tickets operation. + + Typically these are written to a http.Request. +*/ +type GetTicketsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get tickets params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetTicketsParams) WithDefaults() *GetTicketsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get tickets params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetTicketsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get tickets params +func (o *GetTicketsParams) WithTimeout(timeout time.Duration) *GetTicketsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get tickets params +func (o *GetTicketsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get tickets params +func (o *GetTicketsParams) WithContext(ctx context.Context) *GetTicketsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get tickets params +func (o *GetTicketsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get tickets params +func (o *GetTicketsParams) WithHTTPClient(client *http.Client) *GetTicketsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get tickets params +func (o *GetTicketsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get tickets params +func (o *GetTicketsParams) WithID(id *string) *GetTicketsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get tickets params +func (o *GetTicketsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get tickets params +func (o *GetTicketsParams) WithLimit(limit *int64) *GetTicketsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get tickets params +func (o *GetTicketsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get tickets params +func (o *GetTicketsParams) WithOffset(offset *int64) *GetTicketsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get tickets params +func (o *GetTicketsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetTicketsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_tickets_responses.go b/api/members/members_client/operations/get_tickets_responses.go new file mode 100644 index 0000000..f3474d1 --- /dev/null +++ b/api/members/members_client/operations/get_tickets_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetTicketsReader is a Reader for the GetTickets structure. +type GetTicketsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetTicketsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetTicketsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetTicketsOK creates a GetTicketsOK with default headers values +func NewGetTicketsOK() *GetTicketsOK { + return &GetTicketsOK{} +} + +/* +GetTicketsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetTicketsOK struct { +} + +// IsSuccess returns true when this get tickets o k response has a 2xx status code +func (o *GetTicketsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get tickets o k response has a 3xx status code +func (o *GetTicketsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get tickets o k response has a 4xx status code +func (o *GetTicketsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get tickets o k response has a 5xx status code +func (o *GetTicketsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get tickets o k response a status code equal to that given +func (o *GetTicketsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get tickets o k response +func (o *GetTicketsOK) Code() int { + return 200 +} + +func (o *GetTicketsOK) Error() string { + return fmt.Sprintf("[GET /tickets][%d] getTicketsOK ", 200) +} + +func (o *GetTicketsOK) String() string { + return fmt.Sprintf("[GET /tickets][%d] getTicketsOK ", 200) +} + +func (o *GetTicketsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/get_transactions_parameters.go b/api/members/members_client/operations/get_transactions_parameters.go new file mode 100644 index 0000000..69f31a8 --- /dev/null +++ b/api/members/members_client/operations/get_transactions_parameters.go @@ -0,0 +1,240 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewGetTransactionsParams creates a new GetTransactionsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetTransactionsParams() *GetTransactionsParams { + return &GetTransactionsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetTransactionsParamsWithTimeout creates a new GetTransactionsParams object +// with the ability to set a timeout on a request. +func NewGetTransactionsParamsWithTimeout(timeout time.Duration) *GetTransactionsParams { + return &GetTransactionsParams{ + timeout: timeout, + } +} + +// NewGetTransactionsParamsWithContext creates a new GetTransactionsParams object +// with the ability to set a context for a request. +func NewGetTransactionsParamsWithContext(ctx context.Context) *GetTransactionsParams { + return &GetTransactionsParams{ + Context: ctx, + } +} + +// NewGetTransactionsParamsWithHTTPClient creates a new GetTransactionsParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetTransactionsParamsWithHTTPClient(client *http.Client) *GetTransactionsParams { + return &GetTransactionsParams{ + HTTPClient: client, + } +} + +/* +GetTransactionsParams contains all the parameters to send to the API endpoint + + for the get transactions operation. + + Typically these are written to a http.Request. +*/ +type GetTransactionsParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + /* Limit. + + How many objects to return at one time + + Format: int64 + */ + Limit *int64 + + /* Offset. + + How many objects to skip? + + Format: int64 + */ + Offset *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get transactions params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetTransactionsParams) WithDefaults() *GetTransactionsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get transactions params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetTransactionsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get transactions params +func (o *GetTransactionsParams) WithTimeout(timeout time.Duration) *GetTransactionsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get transactions params +func (o *GetTransactionsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get transactions params +func (o *GetTransactionsParams) WithContext(ctx context.Context) *GetTransactionsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get transactions params +func (o *GetTransactionsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get transactions params +func (o *GetTransactionsParams) WithHTTPClient(client *http.Client) *GetTransactionsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get transactions params +func (o *GetTransactionsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the get transactions params +func (o *GetTransactionsParams) WithID(id *string) *GetTransactionsParams { + o.SetID(id) + return o +} + +// SetID adds the id to the get transactions params +func (o *GetTransactionsParams) SetID(id *string) { + o.ID = id +} + +// WithLimit adds the limit to the get transactions params +func (o *GetTransactionsParams) WithLimit(limit *int64) *GetTransactionsParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the get transactions params +func (o *GetTransactionsParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithOffset adds the offset to the get transactions params +func (o *GetTransactionsParams) WithOffset(offset *int64) *GetTransactionsParams { + o.SetOffset(offset) + return o +} + +// SetOffset adds the offset to the get transactions params +func (o *GetTransactionsParams) SetOffset(offset *int64) { + o.Offset = offset +} + +// WriteToRequest writes these params to a swagger request +func (o *GetTransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Offset != nil { + + // query param offset + var qrOffset int64 + + if o.Offset != nil { + qrOffset = *o.Offset + } + qOffset := swag.FormatInt64(qrOffset) + if qOffset != "" { + + if err := r.SetQueryParam("offset", qOffset); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/get_transactions_responses.go b/api/members/members_client/operations/get_transactions_responses.go new file mode 100644 index 0000000..2fa0725 --- /dev/null +++ b/api/members/members_client/operations/get_transactions_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// GetTransactionsReader is a Reader for the GetTransactions structure. +type GetTransactionsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetTransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetTransactionsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewGetTransactionsOK creates a GetTransactionsOK with default headers values +func NewGetTransactionsOK() *GetTransactionsOK { + return &GetTransactionsOK{} +} + +/* +GetTransactionsOK describes a response with status code 200, with default header values. + +OK +*/ +type GetTransactionsOK struct { +} + +// IsSuccess returns true when this get transactions o k response has a 2xx status code +func (o *GetTransactionsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get transactions o k response has a 3xx status code +func (o *GetTransactionsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get transactions o k response has a 4xx status code +func (o *GetTransactionsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get transactions o k response has a 5xx status code +func (o *GetTransactionsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get transactions o k response a status code equal to that given +func (o *GetTransactionsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get transactions o k response +func (o *GetTransactionsOK) Code() int { + return 200 +} + +func (o *GetTransactionsOK) Error() string { + return fmt.Sprintf("[GET /transactions][%d] getTransactionsOK ", 200) +} + +func (o *GetTransactionsOK) String() string { + return fmt.Sprintf("[GET /transactions][%d] getTransactionsOK ", 200) +} + +func (o *GetTransactionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/operations_client.go b/api/members/members_client/operations/operations_client.go new file mode 100644 index 0000000..9949337 --- /dev/null +++ b/api/members/members_client/operations/operations_client.go @@ -0,0 +1,3243 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// New creates a new operations API client. +func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { + return &Client{transport: transport, formats: formats} +} + +/* +Client for operations API +*/ +type Client struct { + transport runtime.ClientTransport + formats strfmt.Registry +} + +// ClientOption is the option for Client methods +type ClientOption func(*runtime.ClientOperation) + +// ClientService is the interface for Client methods +type ClientService interface { + CreateAttendee(params *CreateAttendeeParams, opts ...ClientOption) (*CreateAttendeeCreated, error) + + CreateCertificate(params *CreateCertificateParams, opts ...ClientOption) (*CreateCertificateCreated, error) + + CreateCourse(params *CreateCourseParams, opts ...ClientOption) (*CreateCourseCreated, error) + + CreateCourseLesson(params *CreateCourseLessonParams, opts ...ClientOption) (*CreateCourseLessonCreated, error) + + CreateCourseSection(params *CreateCourseSectionParams, opts ...ClientOption) (*CreateCourseSectionCreated, error) + + CreateEnrollment(params *CreateEnrollmentParams, opts ...ClientOption) (*CreateEnrollmentCreated, error) + + CreateEvent(params *CreateEventParams, opts ...ClientOption) (*CreateEventCreated, error) + + CreateEventCategory(params *CreateEventCategoryParams, opts ...ClientOption) (*CreateEventCategoryCreated, error) + + CreateEventCategoryAssignment(params *CreateEventCategoryAssignmentParams, opts ...ClientOption) (*CreateEventCategoryAssignmentCreated, error) + + CreateFavorite(params *CreateFavoriteParams, opts ...ClientOption) (*CreateFavoriteCreated, error) + + CreateInvoice(params *CreateInvoiceParams, opts ...ClientOption) (*CreateInvoiceCreated, error) + + CreateIssuedCertificate(params *CreateIssuedCertificateParams, opts ...ClientOption) (*CreateIssuedCertificateCreated, error) + + CreateLessonProgress(params *CreateLessonProgressParams, opts ...ClientOption) (*CreateLessonProgressCreated, error) + + CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderCreated, error) + + CreatePaymentMethod(params *CreatePaymentMethodParams, opts ...ClientOption) (*CreatePaymentMethodCreated, error) + + CreateResearchProject(params *CreateResearchProjectParams, opts ...ClientOption) (*CreateResearchProjectCreated, error) + + CreateResearchProjectCompany(params *CreateResearchProjectCompanyParams, opts ...ClientOption) (*CreateResearchProjectCompanyCreated, error) + + CreateResearchProjectTopic(params *CreateResearchProjectTopicParams, opts ...ClientOption) (*CreateResearchProjectTopicCreated, error) + + CreateTicket(params *CreateTicketParams, opts ...ClientOption) (*CreateTicketCreated, error) + + CreateTransaction(params *CreateTransactionParams, opts ...ClientOption) (*CreateTransactionCreated, error) + + DeleteAttendee(params *DeleteAttendeeParams, opts ...ClientOption) (*DeleteAttendeeNoContent, error) + + DeleteCertificate(params *DeleteCertificateParams, opts ...ClientOption) (*DeleteCertificateNoContent, error) + + DeleteCourse(params *DeleteCourseParams, opts ...ClientOption) (*DeleteCourseNoContent, error) + + DeleteCourseLesson(params *DeleteCourseLessonParams, opts ...ClientOption) (*DeleteCourseLessonNoContent, error) + + DeleteCourseSection(params *DeleteCourseSectionParams, opts ...ClientOption) (*DeleteCourseSectionNoContent, error) + + DeleteEnrollment(params *DeleteEnrollmentParams, opts ...ClientOption) (*DeleteEnrollmentNoContent, error) + + DeleteEvent(params *DeleteEventParams, opts ...ClientOption) (*DeleteEventNoContent, error) + + DeleteEventCategory(params *DeleteEventCategoryParams, opts ...ClientOption) (*DeleteEventCategoryNoContent, error) + + DeleteEventCategoryAssignment(params *DeleteEventCategoryAssignmentParams, opts ...ClientOption) (*DeleteEventCategoryAssignmentNoContent, error) + + DeleteFavorite(params *DeleteFavoriteParams, opts ...ClientOption) (*DeleteFavoriteNoContent, error) + + DeleteInvoice(params *DeleteInvoiceParams, opts ...ClientOption) (*DeleteInvoiceNoContent, error) + + DeleteIssuedCertificate(params *DeleteIssuedCertificateParams, opts ...ClientOption) (*DeleteIssuedCertificateNoContent, error) + + DeleteLessonProgress(params *DeleteLessonProgressParams, opts ...ClientOption) (*DeleteLessonProgressNoContent, error) + + DeleteOrder(params *DeleteOrderParams, opts ...ClientOption) (*DeleteOrderNoContent, error) + + DeletePaymentMethod(params *DeletePaymentMethodParams, opts ...ClientOption) (*DeletePaymentMethodNoContent, error) + + DeleteResearchProject(params *DeleteResearchProjectParams, opts ...ClientOption) (*DeleteResearchProjectNoContent, error) + + DeleteResearchProjectCompany(params *DeleteResearchProjectCompanyParams, opts ...ClientOption) (*DeleteResearchProjectCompanyNoContent, error) + + DeleteResearchProjectTopic(params *DeleteResearchProjectTopicParams, opts ...ClientOption) (*DeleteResearchProjectTopicNoContent, error) + + DeleteTicket(params *DeleteTicketParams, opts ...ClientOption) (*DeleteTicketNoContent, error) + + DeleteTransaction(params *DeleteTransactionParams, opts ...ClientOption) (*DeleteTransactionNoContent, error) + + GetAttendees(params *GetAttendeesParams, opts ...ClientOption) (*GetAttendeesOK, error) + + GetCertificates(params *GetCertificatesParams, opts ...ClientOption) (*GetCertificatesOK, error) + + GetCourseLessons(params *GetCourseLessonsParams, opts ...ClientOption) (*GetCourseLessonsOK, error) + + GetCourseSections(params *GetCourseSectionsParams, opts ...ClientOption) (*GetCourseSectionsOK, error) + + GetCourses(params *GetCoursesParams, opts ...ClientOption) (*GetCoursesOK, error) + + GetEnrollments(params *GetEnrollmentsParams, opts ...ClientOption) (*GetEnrollmentsOK, error) + + GetEventCategoryassignments(params *GetEventCategoryassignmentsParams, opts ...ClientOption) (*GetEventCategoryassignmentsOK, error) + + GetEventCategorys(params *GetEventCategorysParams, opts ...ClientOption) (*GetEventCategorysOK, error) + + GetEvents(params *GetEventsParams, opts ...ClientOption) (*GetEventsOK, error) + + GetFavorites(params *GetFavoritesParams, opts ...ClientOption) (*GetFavoritesOK, error) + + GetInvoices(params *GetInvoicesParams, opts ...ClientOption) (*GetInvoicesOK, error) + + GetIssuedcertificates(params *GetIssuedcertificatesParams, opts ...ClientOption) (*GetIssuedcertificatesOK, error) + + GetLessonProgress(params *GetLessonProgressParams, opts ...ClientOption) (*GetLessonProgressOK, error) + + GetOrders(params *GetOrdersParams, opts ...ClientOption) (*GetOrdersOK, error) + + GetPaymentMethods(params *GetPaymentMethodsParams, opts ...ClientOption) (*GetPaymentMethodsOK, error) + + GetResearchProjectCompanys(params *GetResearchProjectCompanysParams, opts ...ClientOption) (*GetResearchProjectCompanysOK, error) + + GetResearchProjectTopics(params *GetResearchProjectTopicsParams, opts ...ClientOption) (*GetResearchProjectTopicsOK, error) + + GetResearchProjects(params *GetResearchProjectsParams, opts ...ClientOption) (*GetResearchProjectsOK, error) + + GetTickets(params *GetTicketsParams, opts ...ClientOption) (*GetTicketsOK, error) + + GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) + + UpdateAttendee(params *UpdateAttendeeParams, opts ...ClientOption) (*UpdateAttendeeOK, error) + + UpdateCertificate(params *UpdateCertificateParams, opts ...ClientOption) (*UpdateCertificateOK, error) + + UpdateCourse(params *UpdateCourseParams, opts ...ClientOption) (*UpdateCourseOK, error) + + UpdateCourseLesson(params *UpdateCourseLessonParams, opts ...ClientOption) (*UpdateCourseLessonOK, error) + + UpdateCourseSection(params *UpdateCourseSectionParams, opts ...ClientOption) (*UpdateCourseSectionOK, error) + + UpdateEnrollment(params *UpdateEnrollmentParams, opts ...ClientOption) (*UpdateEnrollmentOK, error) + + UpdateEvent(params *UpdateEventParams, opts ...ClientOption) (*UpdateEventOK, error) + + UpdateEventCategory(params *UpdateEventCategoryParams, opts ...ClientOption) (*UpdateEventCategoryOK, error) + + UpdateEventCategoryAssignment(params *UpdateEventCategoryAssignmentParams, opts ...ClientOption) (*UpdateEventCategoryAssignmentOK, error) + + UpdateFavorite(params *UpdateFavoriteParams, opts ...ClientOption) (*UpdateFavoriteOK, error) + + UpdateInvoice(params *UpdateInvoiceParams, opts ...ClientOption) (*UpdateInvoiceOK, error) + + UpdateIssuedCertificate(params *UpdateIssuedCertificateParams, opts ...ClientOption) (*UpdateIssuedCertificateOK, error) + + UpdateLessonProgress(params *UpdateLessonProgressParams, opts ...ClientOption) (*UpdateLessonProgressOK, error) + + UpdateOrder(params *UpdateOrderParams, opts ...ClientOption) (*UpdateOrderOK, error) + + UpdatePaymentMethod(params *UpdatePaymentMethodParams, opts ...ClientOption) (*UpdatePaymentMethodOK, error) + + UpdateResearchProject(params *UpdateResearchProjectParams, opts ...ClientOption) (*UpdateResearchProjectOK, error) + + UpdateResearchProjectCompany(params *UpdateResearchProjectCompanyParams, opts ...ClientOption) (*UpdateResearchProjectCompanyOK, error) + + UpdateResearchProjectTopic(params *UpdateResearchProjectTopicParams, opts ...ClientOption) (*UpdateResearchProjectTopicOK, error) + + UpdateTicket(params *UpdateTicketParams, opts ...ClientOption) (*UpdateTicketOK, error) + + UpdateTransaction(params *UpdateTransactionParams, opts ...ClientOption) (*UpdateTransactionOK, error) + + SetTransport(transport runtime.ClientTransport) +} + +/* +CreateAttendee creates a new attendee +*/ +func (a *Client) CreateAttendee(params *CreateAttendeeParams, opts ...ClientOption) (*CreateAttendeeCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateAttendeeParams() + } + op := &runtime.ClientOperation{ + ID: "createAttendee", + Method: "POST", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateAttendeeReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateAttendeeCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateCertificate creates a new certificate +*/ +func (a *Client) CreateCertificate(params *CreateCertificateParams, opts ...ClientOption) (*CreateCertificateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "createCertificate", + Method: "POST", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCertificateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateCertificateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateCourse creates a new course +*/ +func (a *Client) CreateCourse(params *CreateCourseParams, opts ...ClientOption) (*CreateCourseCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCourseParams() + } + op := &runtime.ClientOperation{ + ID: "createCourse", + Method: "POST", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCourseReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateCourseCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateCourseLesson creates a new course lesson +*/ +func (a *Client) CreateCourseLesson(params *CreateCourseLessonParams, opts ...ClientOption) (*CreateCourseLessonCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCourseLessonParams() + } + op := &runtime.ClientOperation{ + ID: "createCourseLesson", + Method: "POST", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCourseLessonReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateCourseLessonCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateCourseSection creates a new course section +*/ +func (a *Client) CreateCourseSection(params *CreateCourseSectionParams, opts ...ClientOption) (*CreateCourseSectionCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateCourseSectionParams() + } + op := &runtime.ClientOperation{ + ID: "createCourseSection", + Method: "POST", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateCourseSectionReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateCourseSectionCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateEnrollment creates a new enrollment +*/ +func (a *Client) CreateEnrollment(params *CreateEnrollmentParams, opts ...ClientOption) (*CreateEnrollmentCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEnrollmentParams() + } + op := &runtime.ClientOperation{ + ID: "createEnrollment", + Method: "POST", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEnrollmentReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateEnrollmentCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateEvent creates a new event +*/ +func (a *Client) CreateEvent(params *CreateEventParams, opts ...ClientOption) (*CreateEventCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEventParams() + } + op := &runtime.ClientOperation{ + ID: "createEvent", + Method: "POST", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEventReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateEventCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateEventCategory creates a new event category +*/ +func (a *Client) CreateEventCategory(params *CreateEventCategoryParams, opts ...ClientOption) (*CreateEventCategoryCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEventCategoryParams() + } + op := &runtime.ClientOperation{ + ID: "createEventCategory", + Method: "POST", + PathPattern: "/eventcategorys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEventCategoryReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateEventCategoryCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateEventCategoryAssignment creates a new event category assignment +*/ +func (a *Client) CreateEventCategoryAssignment(params *CreateEventCategoryAssignmentParams, opts ...ClientOption) (*CreateEventCategoryAssignmentCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateEventCategoryAssignmentParams() + } + op := &runtime.ClientOperation{ + ID: "createEventCategoryAssignment", + Method: "POST", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateEventCategoryAssignmentReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateEventCategoryAssignmentCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateFavorite creates a new favorite +*/ +func (a *Client) CreateFavorite(params *CreateFavoriteParams, opts ...ClientOption) (*CreateFavoriteCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateFavoriteParams() + } + op := &runtime.ClientOperation{ + ID: "createFavorite", + Method: "POST", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateFavoriteReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateFavoriteCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateInvoice creates a new invoice +*/ +func (a *Client) CreateInvoice(params *CreateInvoiceParams, opts ...ClientOption) (*CreateInvoiceCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateInvoiceParams() + } + op := &runtime.ClientOperation{ + ID: "createInvoice", + Method: "POST", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateInvoiceReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateInvoiceCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateIssuedCertificate creates a new issued certificate +*/ +func (a *Client) CreateIssuedCertificate(params *CreateIssuedCertificateParams, opts ...ClientOption) (*CreateIssuedCertificateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateIssuedCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "createIssuedCertificate", + Method: "POST", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateIssuedCertificateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateIssuedCertificateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateLessonProgress creates a new lesson progress +*/ +func (a *Client) CreateLessonProgress(params *CreateLessonProgressParams, opts ...ClientOption) (*CreateLessonProgressCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "createLessonProgress", + Method: "POST", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateLessonProgressReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateLessonProgressCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateOrder creates a new order +*/ +func (a *Client) CreateOrder(params *CreateOrderParams, opts ...ClientOption) (*CreateOrderCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateOrderParams() + } + op := &runtime.ClientOperation{ + ID: "createOrder", + Method: "POST", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateOrderReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateOrderCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreatePaymentMethod creates a new payment method +*/ +func (a *Client) CreatePaymentMethod(params *CreatePaymentMethodParams, opts ...ClientOption) (*CreatePaymentMethodCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreatePaymentMethodParams() + } + op := &runtime.ClientOperation{ + ID: "createPaymentMethod", + Method: "POST", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreatePaymentMethodReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreatePaymentMethodCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createPaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateResearchProject creates a new research project +*/ +func (a *Client) CreateResearchProject(params *CreateResearchProjectParams, opts ...ClientOption) (*CreateResearchProjectCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateResearchProjectParams() + } + op := &runtime.ClientOperation{ + ID: "createResearchProject", + Method: "POST", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateResearchProjectReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateResearchProjectCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateResearchProjectCompany creates a new research project company +*/ +func (a *Client) CreateResearchProjectCompany(params *CreateResearchProjectCompanyParams, opts ...ClientOption) (*CreateResearchProjectCompanyCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateResearchProjectCompanyParams() + } + op := &runtime.ClientOperation{ + ID: "createResearchProjectCompany", + Method: "POST", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateResearchProjectCompanyReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateResearchProjectCompanyCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateResearchProjectTopic creates a new research project topic +*/ +func (a *Client) CreateResearchProjectTopic(params *CreateResearchProjectTopicParams, opts ...ClientOption) (*CreateResearchProjectTopicCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateResearchProjectTopicParams() + } + op := &runtime.ClientOperation{ + ID: "createResearchProjectTopic", + Method: "POST", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateResearchProjectTopicReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateResearchProjectTopicCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateTicket creates a new ticket +*/ +func (a *Client) CreateTicket(params *CreateTicketParams, opts ...ClientOption) (*CreateTicketCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateTicketParams() + } + op := &runtime.ClientOperation{ + ID: "createTicket", + Method: "POST", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateTicketReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateTicketCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +CreateTransaction creates a new transaction +*/ +func (a *Client) CreateTransaction(params *CreateTransactionParams, opts ...ClientOption) (*CreateTransactionCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateTransactionParams() + } + op := &runtime.ClientOperation{ + ID: "createTransaction", + Method: "POST", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateTransactionReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateTransactionCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for createTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteAttendee deletes a attendee +*/ +func (a *Client) DeleteAttendee(params *DeleteAttendeeParams, opts ...ClientOption) (*DeleteAttendeeNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteAttendeeParams() + } + op := &runtime.ClientOperation{ + ID: "deleteAttendee", + Method: "DELETE", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteAttendeeReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteAttendeeNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCertificate deletes a certificate +*/ +func (a *Client) DeleteCertificate(params *DeleteCertificateParams, opts ...ClientOption) (*DeleteCertificateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCertificate", + Method: "DELETE", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCertificateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteCertificateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCourse deletes a course +*/ +func (a *Client) DeleteCourse(params *DeleteCourseParams, opts ...ClientOption) (*DeleteCourseNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCourseParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCourse", + Method: "DELETE", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCourseReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteCourseNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCourseLesson deletes a course lesson +*/ +func (a *Client) DeleteCourseLesson(params *DeleteCourseLessonParams, opts ...ClientOption) (*DeleteCourseLessonNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCourseLessonParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCourseLesson", + Method: "DELETE", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCourseLessonReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteCourseLessonNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteCourseSection deletes a course section +*/ +func (a *Client) DeleteCourseSection(params *DeleteCourseSectionParams, opts ...ClientOption) (*DeleteCourseSectionNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteCourseSectionParams() + } + op := &runtime.ClientOperation{ + ID: "deleteCourseSection", + Method: "DELETE", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteCourseSectionReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteCourseSectionNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEnrollment deletes a enrollment +*/ +func (a *Client) DeleteEnrollment(params *DeleteEnrollmentParams, opts ...ClientOption) (*DeleteEnrollmentNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEnrollmentParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEnrollment", + Method: "DELETE", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEnrollmentReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteEnrollmentNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEvent deletes a event +*/ +func (a *Client) DeleteEvent(params *DeleteEventParams, opts ...ClientOption) (*DeleteEventNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEventParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEvent", + Method: "DELETE", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEventReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteEventNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEventCategory deletes a event category +*/ +func (a *Client) DeleteEventCategory(params *DeleteEventCategoryParams, opts ...ClientOption) (*DeleteEventCategoryNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEventCategoryParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEventCategory", + Method: "DELETE", + PathPattern: "/eventcategorys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEventCategoryReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteEventCategoryNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteEventCategoryAssignment deletes a event category assignment +*/ +func (a *Client) DeleteEventCategoryAssignment(params *DeleteEventCategoryAssignmentParams, opts ...ClientOption) (*DeleteEventCategoryAssignmentNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteEventCategoryAssignmentParams() + } + op := &runtime.ClientOperation{ + ID: "deleteEventCategoryAssignment", + Method: "DELETE", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteEventCategoryAssignmentReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteEventCategoryAssignmentNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteFavorite deletes a favorite +*/ +func (a *Client) DeleteFavorite(params *DeleteFavoriteParams, opts ...ClientOption) (*DeleteFavoriteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteFavoriteParams() + } + op := &runtime.ClientOperation{ + ID: "deleteFavorite", + Method: "DELETE", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteFavoriteReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteFavoriteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteInvoice deletes a invoice +*/ +func (a *Client) DeleteInvoice(params *DeleteInvoiceParams, opts ...ClientOption) (*DeleteInvoiceNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteInvoiceParams() + } + op := &runtime.ClientOperation{ + ID: "deleteInvoice", + Method: "DELETE", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteInvoiceReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteInvoiceNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteIssuedCertificate deletes a issued certificate +*/ +func (a *Client) DeleteIssuedCertificate(params *DeleteIssuedCertificateParams, opts ...ClientOption) (*DeleteIssuedCertificateNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteIssuedCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "deleteIssuedCertificate", + Method: "DELETE", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteIssuedCertificateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteIssuedCertificateNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteLessonProgress deletes a lesson progress +*/ +func (a *Client) DeleteLessonProgress(params *DeleteLessonProgressParams, opts ...ClientOption) (*DeleteLessonProgressNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "deleteLessonProgress", + Method: "DELETE", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteLessonProgressReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteLessonProgressNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteOrder deletes a order +*/ +func (a *Client) DeleteOrder(params *DeleteOrderParams, opts ...ClientOption) (*DeleteOrderNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteOrderParams() + } + op := &runtime.ClientOperation{ + ID: "deleteOrder", + Method: "DELETE", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteOrderReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteOrderNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeletePaymentMethod deletes a payment method +*/ +func (a *Client) DeletePaymentMethod(params *DeletePaymentMethodParams, opts ...ClientOption) (*DeletePaymentMethodNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeletePaymentMethodParams() + } + op := &runtime.ClientOperation{ + ID: "deletePaymentMethod", + Method: "DELETE", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeletePaymentMethodReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeletePaymentMethodNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deletePaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteResearchProject deletes a research project +*/ +func (a *Client) DeleteResearchProject(params *DeleteResearchProjectParams, opts ...ClientOption) (*DeleteResearchProjectNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteResearchProjectParams() + } + op := &runtime.ClientOperation{ + ID: "deleteResearchProject", + Method: "DELETE", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteResearchProjectReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteResearchProjectNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteResearchProjectCompany deletes a research project company +*/ +func (a *Client) DeleteResearchProjectCompany(params *DeleteResearchProjectCompanyParams, opts ...ClientOption) (*DeleteResearchProjectCompanyNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteResearchProjectCompanyParams() + } + op := &runtime.ClientOperation{ + ID: "deleteResearchProjectCompany", + Method: "DELETE", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteResearchProjectCompanyReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteResearchProjectCompanyNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteResearchProjectTopic deletes a research project topic +*/ +func (a *Client) DeleteResearchProjectTopic(params *DeleteResearchProjectTopicParams, opts ...ClientOption) (*DeleteResearchProjectTopicNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteResearchProjectTopicParams() + } + op := &runtime.ClientOperation{ + ID: "deleteResearchProjectTopic", + Method: "DELETE", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteResearchProjectTopicReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteResearchProjectTopicNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteTicket deletes a ticket +*/ +func (a *Client) DeleteTicket(params *DeleteTicketParams, opts ...ClientOption) (*DeleteTicketNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteTicketParams() + } + op := &runtime.ClientOperation{ + ID: "deleteTicket", + Method: "DELETE", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteTicketReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteTicketNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +DeleteTransaction deletes a transaction +*/ +func (a *Client) DeleteTransaction(params *DeleteTransactionParams, opts ...ClientOption) (*DeleteTransactionNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteTransactionParams() + } + op := &runtime.ClientOperation{ + ID: "deleteTransaction", + Method: "DELETE", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteTransactionReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteTransactionNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetAttendees gets a list of attendees +*/ +func (a *Client) GetAttendees(params *GetAttendeesParams, opts ...ClientOption) (*GetAttendeesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetAttendeesParams() + } + op := &runtime.ClientOperation{ + ID: "getAttendees", + Method: "GET", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetAttendeesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetAttendeesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getAttendees: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCertificates gets a list of certificates +*/ +func (a *Client) GetCertificates(params *GetCertificatesParams, opts ...ClientOption) (*GetCertificatesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCertificatesParams() + } + op := &runtime.ClientOperation{ + ID: "getCertificates", + Method: "GET", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCertificatesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetCertificatesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCertificates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCourseLessons gets a list of course lessons +*/ +func (a *Client) GetCourseLessons(params *GetCourseLessonsParams, opts ...ClientOption) (*GetCourseLessonsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCourseLessonsParams() + } + op := &runtime.ClientOperation{ + ID: "getCourseLessons", + Method: "GET", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCourseLessonsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetCourseLessonsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCourseLessons: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCourseSections gets a list of course sections +*/ +func (a *Client) GetCourseSections(params *GetCourseSectionsParams, opts ...ClientOption) (*GetCourseSectionsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCourseSectionsParams() + } + op := &runtime.ClientOperation{ + ID: "getCourseSections", + Method: "GET", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCourseSectionsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetCourseSectionsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCourseSections: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetCourses gets a list of courses +*/ +func (a *Client) GetCourses(params *GetCoursesParams, opts ...ClientOption) (*GetCoursesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetCoursesParams() + } + op := &runtime.ClientOperation{ + ID: "getCourses", + Method: "GET", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetCoursesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetCoursesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getCourses: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEnrollments gets a list of enrollments +*/ +func (a *Client) GetEnrollments(params *GetEnrollmentsParams, opts ...ClientOption) (*GetEnrollmentsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEnrollmentsParams() + } + op := &runtime.ClientOperation{ + ID: "getEnrollments", + Method: "GET", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEnrollmentsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetEnrollmentsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEnrollments: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEventCategoryassignments gets a list of event categoryassignments +*/ +func (a *Client) GetEventCategoryassignments(params *GetEventCategoryassignmentsParams, opts ...ClientOption) (*GetEventCategoryassignmentsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEventCategoryassignmentsParams() + } + op := &runtime.ClientOperation{ + ID: "getEventCategoryassignments", + Method: "GET", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEventCategoryassignmentsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetEventCategoryassignmentsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEventCategoryassignments: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEventCategorys gets a list of event categorys +*/ +func (a *Client) GetEventCategorys(params *GetEventCategorysParams, opts ...ClientOption) (*GetEventCategorysOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEventCategorysParams() + } + op := &runtime.ClientOperation{ + ID: "getEventCategorys", + Method: "GET", + PathPattern: "/eventcategorys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEventCategorysReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetEventCategorysOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEventCategorys: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetEvents gets a list of events +*/ +func (a *Client) GetEvents(params *GetEventsParams, opts ...ClientOption) (*GetEventsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetEventsParams() + } + op := &runtime.ClientOperation{ + ID: "getEvents", + Method: "GET", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetEventsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetEventsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getEvents: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetFavorites gets a list of favorites +*/ +func (a *Client) GetFavorites(params *GetFavoritesParams, opts ...ClientOption) (*GetFavoritesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetFavoritesParams() + } + op := &runtime.ClientOperation{ + ID: "getFavorites", + Method: "GET", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetFavoritesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetFavoritesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getFavorites: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetInvoices gets a list of invoices +*/ +func (a *Client) GetInvoices(params *GetInvoicesParams, opts ...ClientOption) (*GetInvoicesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetInvoicesParams() + } + op := &runtime.ClientOperation{ + ID: "getInvoices", + Method: "GET", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetInvoicesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetInvoicesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getInvoices: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetIssuedcertificates gets a list of issuedcertificates +*/ +func (a *Client) GetIssuedcertificates(params *GetIssuedcertificatesParams, opts ...ClientOption) (*GetIssuedcertificatesOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetIssuedcertificatesParams() + } + op := &runtime.ClientOperation{ + ID: "getIssuedcertificates", + Method: "GET", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetIssuedcertificatesReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetIssuedcertificatesOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getIssuedcertificates: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetLessonProgress gets a list of lesson progress +*/ +func (a *Client) GetLessonProgress(params *GetLessonProgressParams, opts ...ClientOption) (*GetLessonProgressOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "getLessonProgress", + Method: "GET", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetLessonProgressReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetLessonProgressOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetOrders gets a list of orders +*/ +func (a *Client) GetOrders(params *GetOrdersParams, opts ...ClientOption) (*GetOrdersOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetOrdersParams() + } + op := &runtime.ClientOperation{ + ID: "getOrders", + Method: "GET", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetOrdersReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetOrdersOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getOrders: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetPaymentMethods gets a list of payment methods +*/ +func (a *Client) GetPaymentMethods(params *GetPaymentMethodsParams, opts ...ClientOption) (*GetPaymentMethodsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetPaymentMethodsParams() + } + op := &runtime.ClientOperation{ + ID: "getPaymentMethods", + Method: "GET", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetPaymentMethodsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetPaymentMethodsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getPaymentMethods: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetResearchProjectCompanys gets a list of research project companys +*/ +func (a *Client) GetResearchProjectCompanys(params *GetResearchProjectCompanysParams, opts ...ClientOption) (*GetResearchProjectCompanysOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetResearchProjectCompanysParams() + } + op := &runtime.ClientOperation{ + ID: "getResearchProjectCompanys", + Method: "GET", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetResearchProjectCompanysReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetResearchProjectCompanysOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getResearchProjectCompanys: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetResearchProjectTopics gets a list of research project topics +*/ +func (a *Client) GetResearchProjectTopics(params *GetResearchProjectTopicsParams, opts ...ClientOption) (*GetResearchProjectTopicsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetResearchProjectTopicsParams() + } + op := &runtime.ClientOperation{ + ID: "getResearchProjectTopics", + Method: "GET", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetResearchProjectTopicsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetResearchProjectTopicsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getResearchProjectTopics: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetResearchProjects gets a list of research projects +*/ +func (a *Client) GetResearchProjects(params *GetResearchProjectsParams, opts ...ClientOption) (*GetResearchProjectsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetResearchProjectsParams() + } + op := &runtime.ClientOperation{ + ID: "getResearchProjects", + Method: "GET", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetResearchProjectsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetResearchProjectsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getResearchProjects: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetTickets gets a list of tickets +*/ +func (a *Client) GetTickets(params *GetTicketsParams, opts ...ClientOption) (*GetTicketsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetTicketsParams() + } + op := &runtime.ClientOperation{ + ID: "getTickets", + Method: "GET", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetTicketsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetTicketsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getTickets: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GetTransactions gets a list of transactions +*/ +func (a *Client) GetTransactions(params *GetTransactionsParams, opts ...ClientOption) (*GetTransactionsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetTransactionsParams() + } + op := &runtime.ClientOperation{ + ID: "getTransactions", + Method: "GET", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetTransactionsReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetTransactionsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for getTransactions: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateAttendee updates an existing attendee +*/ +func (a *Client) UpdateAttendee(params *UpdateAttendeeParams, opts ...ClientOption) (*UpdateAttendeeOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateAttendeeParams() + } + op := &runtime.ClientOperation{ + ID: "updateAttendee", + Method: "PUT", + PathPattern: "/attendees", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateAttendeeReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateAttendeeOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateAttendee: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCertificate updates an existing certificate +*/ +func (a *Client) UpdateCertificate(params *UpdateCertificateParams, opts ...ClientOption) (*UpdateCertificateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "updateCertificate", + Method: "PUT", + PathPattern: "/certificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCertificateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateCertificateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCourse updates an existing course +*/ +func (a *Client) UpdateCourse(params *UpdateCourseParams, opts ...ClientOption) (*UpdateCourseOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCourseParams() + } + op := &runtime.ClientOperation{ + ID: "updateCourse", + Method: "PUT", + PathPattern: "/courses", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCourseReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateCourseOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCourse: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCourseLesson updates an existing course lesson +*/ +func (a *Client) UpdateCourseLesson(params *UpdateCourseLessonParams, opts ...ClientOption) (*UpdateCourseLessonOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCourseLessonParams() + } + op := &runtime.ClientOperation{ + ID: "updateCourseLesson", + Method: "PUT", + PathPattern: "/courselessons", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCourseLessonReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateCourseLessonOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCourseLesson: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateCourseSection updates an existing course section +*/ +func (a *Client) UpdateCourseSection(params *UpdateCourseSectionParams, opts ...ClientOption) (*UpdateCourseSectionOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateCourseSectionParams() + } + op := &runtime.ClientOperation{ + ID: "updateCourseSection", + Method: "PUT", + PathPattern: "/coursesections", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateCourseSectionReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateCourseSectionOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateCourseSection: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEnrollment updates an existing enrollment +*/ +func (a *Client) UpdateEnrollment(params *UpdateEnrollmentParams, opts ...ClientOption) (*UpdateEnrollmentOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEnrollmentParams() + } + op := &runtime.ClientOperation{ + ID: "updateEnrollment", + Method: "PUT", + PathPattern: "/enrollments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEnrollmentReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateEnrollmentOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEnrollment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEvent updates an existing event +*/ +func (a *Client) UpdateEvent(params *UpdateEventParams, opts ...ClientOption) (*UpdateEventOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEventParams() + } + op := &runtime.ClientOperation{ + ID: "updateEvent", + Method: "PUT", + PathPattern: "/events", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEventReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateEventOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEvent: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEventCategory updates an existing event category +*/ +func (a *Client) UpdateEventCategory(params *UpdateEventCategoryParams, opts ...ClientOption) (*UpdateEventCategoryOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEventCategoryParams() + } + op := &runtime.ClientOperation{ + ID: "updateEventCategory", + Method: "PUT", + PathPattern: "/eventcategorys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEventCategoryReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateEventCategoryOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEventCategory: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateEventCategoryAssignment updates an existing event category assignment +*/ +func (a *Client) UpdateEventCategoryAssignment(params *UpdateEventCategoryAssignmentParams, opts ...ClientOption) (*UpdateEventCategoryAssignmentOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateEventCategoryAssignmentParams() + } + op := &runtime.ClientOperation{ + ID: "updateEventCategoryAssignment", + Method: "PUT", + PathPattern: "/eventcategoryassignments", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateEventCategoryAssignmentReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateEventCategoryAssignmentOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateEventCategoryAssignment: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateFavorite updates an existing favorite +*/ +func (a *Client) UpdateFavorite(params *UpdateFavoriteParams, opts ...ClientOption) (*UpdateFavoriteOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateFavoriteParams() + } + op := &runtime.ClientOperation{ + ID: "updateFavorite", + Method: "PUT", + PathPattern: "/favorites", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateFavoriteReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateFavoriteOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateFavorite: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateInvoice updates an existing invoice +*/ +func (a *Client) UpdateInvoice(params *UpdateInvoiceParams, opts ...ClientOption) (*UpdateInvoiceOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateInvoiceParams() + } + op := &runtime.ClientOperation{ + ID: "updateInvoice", + Method: "PUT", + PathPattern: "/invoices", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateInvoiceReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateInvoiceOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateInvoice: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateIssuedCertificate updates an existing issued certificate +*/ +func (a *Client) UpdateIssuedCertificate(params *UpdateIssuedCertificateParams, opts ...ClientOption) (*UpdateIssuedCertificateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateIssuedCertificateParams() + } + op := &runtime.ClientOperation{ + ID: "updateIssuedCertificate", + Method: "PUT", + PathPattern: "/issuedcertificates", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateIssuedCertificateReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateIssuedCertificateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateIssuedCertificate: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateLessonProgress updates an existing lesson progress +*/ +func (a *Client) UpdateLessonProgress(params *UpdateLessonProgressParams, opts ...ClientOption) (*UpdateLessonProgressOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateLessonProgressParams() + } + op := &runtime.ClientOperation{ + ID: "updateLessonProgress", + Method: "PUT", + PathPattern: "/lessonprogress", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateLessonProgressReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateLessonProgressOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateLessonProgress: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateOrder updates an existing order +*/ +func (a *Client) UpdateOrder(params *UpdateOrderParams, opts ...ClientOption) (*UpdateOrderOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateOrderParams() + } + op := &runtime.ClientOperation{ + ID: "updateOrder", + Method: "PUT", + PathPattern: "/orders", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateOrderReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateOrderOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdatePaymentMethod updates an existing payment method +*/ +func (a *Client) UpdatePaymentMethod(params *UpdatePaymentMethodParams, opts ...ClientOption) (*UpdatePaymentMethodOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdatePaymentMethodParams() + } + op := &runtime.ClientOperation{ + ID: "updatePaymentMethod", + Method: "PUT", + PathPattern: "/paymentmethods", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdatePaymentMethodReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdatePaymentMethodOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updatePaymentMethod: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateResearchProject updates an existing research project +*/ +func (a *Client) UpdateResearchProject(params *UpdateResearchProjectParams, opts ...ClientOption) (*UpdateResearchProjectOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateResearchProjectParams() + } + op := &runtime.ClientOperation{ + ID: "updateResearchProject", + Method: "PUT", + PathPattern: "/researchprojects", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateResearchProjectReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateResearchProjectOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateResearchProject: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateResearchProjectCompany updates an existing research project company +*/ +func (a *Client) UpdateResearchProjectCompany(params *UpdateResearchProjectCompanyParams, opts ...ClientOption) (*UpdateResearchProjectCompanyOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateResearchProjectCompanyParams() + } + op := &runtime.ClientOperation{ + ID: "updateResearchProjectCompany", + Method: "PUT", + PathPattern: "/researchprojectcompanys", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateResearchProjectCompanyReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateResearchProjectCompanyOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateResearchProjectCompany: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateResearchProjectTopic updates an existing research project topic +*/ +func (a *Client) UpdateResearchProjectTopic(params *UpdateResearchProjectTopicParams, opts ...ClientOption) (*UpdateResearchProjectTopicOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateResearchProjectTopicParams() + } + op := &runtime.ClientOperation{ + ID: "updateResearchProjectTopic", + Method: "PUT", + PathPattern: "/researchprojecttopics", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateResearchProjectTopicReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateResearchProjectTopicOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateResearchProjectTopic: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateTicket updates an existing ticket +*/ +func (a *Client) UpdateTicket(params *UpdateTicketParams, opts ...ClientOption) (*UpdateTicketOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateTicketParams() + } + op := &runtime.ClientOperation{ + ID: "updateTicket", + Method: "PUT", + PathPattern: "/tickets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateTicketReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateTicketOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateTicket: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UpdateTransaction updates an existing transaction +*/ +func (a *Client) UpdateTransaction(params *UpdateTransactionParams, opts ...ClientOption) (*UpdateTransactionOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateTransactionParams() + } + op := &runtime.ClientOperation{ + ID: "updateTransaction", + Method: "PUT", + PathPattern: "/transactions", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateTransactionReader{formats: a.formats}, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateTransactionOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for updateTransaction: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +// SetTransport changes the transport on the client +func (a *Client) SetTransport(transport runtime.ClientTransport) { + a.transport = transport +} diff --git a/api/members/members_client/operations/update_attendee_parameters.go b/api/members/members_client/operations/update_attendee_parameters.go new file mode 100644 index 0000000..d91f88f --- /dev/null +++ b/api/members/members_client/operations/update_attendee_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateAttendeeParams creates a new UpdateAttendeeParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateAttendeeParams() *UpdateAttendeeParams { + return &UpdateAttendeeParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateAttendeeParamsWithTimeout creates a new UpdateAttendeeParams object +// with the ability to set a timeout on a request. +func NewUpdateAttendeeParamsWithTimeout(timeout time.Duration) *UpdateAttendeeParams { + return &UpdateAttendeeParams{ + timeout: timeout, + } +} + +// NewUpdateAttendeeParamsWithContext creates a new UpdateAttendeeParams object +// with the ability to set a context for a request. +func NewUpdateAttendeeParamsWithContext(ctx context.Context) *UpdateAttendeeParams { + return &UpdateAttendeeParams{ + Context: ctx, + } +} + +// NewUpdateAttendeeParamsWithHTTPClient creates a new UpdateAttendeeParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateAttendeeParamsWithHTTPClient(client *http.Client) *UpdateAttendeeParams { + return &UpdateAttendeeParams{ + HTTPClient: client, + } +} + +/* +UpdateAttendeeParams contains all the parameters to send to the API endpoint + + for the update attendee operation. + + Typically these are written to a http.Request. +*/ +type UpdateAttendeeParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update attendee params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateAttendeeParams) WithDefaults() *UpdateAttendeeParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update attendee params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateAttendeeParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update attendee params +func (o *UpdateAttendeeParams) WithTimeout(timeout time.Duration) *UpdateAttendeeParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update attendee params +func (o *UpdateAttendeeParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update attendee params +func (o *UpdateAttendeeParams) WithContext(ctx context.Context) *UpdateAttendeeParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update attendee params +func (o *UpdateAttendeeParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update attendee params +func (o *UpdateAttendeeParams) WithHTTPClient(client *http.Client) *UpdateAttendeeParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update attendee params +func (o *UpdateAttendeeParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update attendee params +func (o *UpdateAttendeeParams) WithID(id *string) *UpdateAttendeeParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update attendee params +func (o *UpdateAttendeeParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateAttendeeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_attendee_responses.go b/api/members/members_client/operations/update_attendee_responses.go new file mode 100644 index 0000000..09e5082 --- /dev/null +++ b/api/members/members_client/operations/update_attendee_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateAttendeeReader is a Reader for the UpdateAttendee structure. +type UpdateAttendeeReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateAttendeeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateAttendeeOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateAttendeeOK creates a UpdateAttendeeOK with default headers values +func NewUpdateAttendeeOK() *UpdateAttendeeOK { + return &UpdateAttendeeOK{} +} + +/* +UpdateAttendeeOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateAttendeeOK struct { +} + +// IsSuccess returns true when this update attendee o k response has a 2xx status code +func (o *UpdateAttendeeOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update attendee o k response has a 3xx status code +func (o *UpdateAttendeeOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update attendee o k response has a 4xx status code +func (o *UpdateAttendeeOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update attendee o k response has a 5xx status code +func (o *UpdateAttendeeOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update attendee o k response a status code equal to that given +func (o *UpdateAttendeeOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update attendee o k response +func (o *UpdateAttendeeOK) Code() int { + return 200 +} + +func (o *UpdateAttendeeOK) Error() string { + return fmt.Sprintf("[PUT /attendees][%d] updateAttendeeOK ", 200) +} + +func (o *UpdateAttendeeOK) String() string { + return fmt.Sprintf("[PUT /attendees][%d] updateAttendeeOK ", 200) +} + +func (o *UpdateAttendeeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_certificate_parameters.go b/api/members/members_client/operations/update_certificate_parameters.go new file mode 100644 index 0000000..1dde6ad --- /dev/null +++ b/api/members/members_client/operations/update_certificate_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateCertificateParams creates a new UpdateCertificateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateCertificateParams() *UpdateCertificateParams { + return &UpdateCertificateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateCertificateParamsWithTimeout creates a new UpdateCertificateParams object +// with the ability to set a timeout on a request. +func NewUpdateCertificateParamsWithTimeout(timeout time.Duration) *UpdateCertificateParams { + return &UpdateCertificateParams{ + timeout: timeout, + } +} + +// NewUpdateCertificateParamsWithContext creates a new UpdateCertificateParams object +// with the ability to set a context for a request. +func NewUpdateCertificateParamsWithContext(ctx context.Context) *UpdateCertificateParams { + return &UpdateCertificateParams{ + Context: ctx, + } +} + +// NewUpdateCertificateParamsWithHTTPClient creates a new UpdateCertificateParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateCertificateParamsWithHTTPClient(client *http.Client) *UpdateCertificateParams { + return &UpdateCertificateParams{ + HTTPClient: client, + } +} + +/* +UpdateCertificateParams contains all the parameters to send to the API endpoint + + for the update certificate operation. + + Typically these are written to a http.Request. +*/ +type UpdateCertificateParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCertificateParams) WithDefaults() *UpdateCertificateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCertificateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update certificate params +func (o *UpdateCertificateParams) WithTimeout(timeout time.Duration) *UpdateCertificateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update certificate params +func (o *UpdateCertificateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update certificate params +func (o *UpdateCertificateParams) WithContext(ctx context.Context) *UpdateCertificateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update certificate params +func (o *UpdateCertificateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update certificate params +func (o *UpdateCertificateParams) WithHTTPClient(client *http.Client) *UpdateCertificateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update certificate params +func (o *UpdateCertificateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update certificate params +func (o *UpdateCertificateParams) WithID(id *string) *UpdateCertificateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update certificate params +func (o *UpdateCertificateParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateCertificateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_certificate_responses.go b/api/members/members_client/operations/update_certificate_responses.go new file mode 100644 index 0000000..a97781b --- /dev/null +++ b/api/members/members_client/operations/update_certificate_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateCertificateReader is a Reader for the UpdateCertificate structure. +type UpdateCertificateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateCertificateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateCertificateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateCertificateOK creates a UpdateCertificateOK with default headers values +func NewUpdateCertificateOK() *UpdateCertificateOK { + return &UpdateCertificateOK{} +} + +/* +UpdateCertificateOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateCertificateOK struct { +} + +// IsSuccess returns true when this update certificate o k response has a 2xx status code +func (o *UpdateCertificateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update certificate o k response has a 3xx status code +func (o *UpdateCertificateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update certificate o k response has a 4xx status code +func (o *UpdateCertificateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update certificate o k response has a 5xx status code +func (o *UpdateCertificateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update certificate o k response a status code equal to that given +func (o *UpdateCertificateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update certificate o k response +func (o *UpdateCertificateOK) Code() int { + return 200 +} + +func (o *UpdateCertificateOK) Error() string { + return fmt.Sprintf("[PUT /certificates][%d] updateCertificateOK ", 200) +} + +func (o *UpdateCertificateOK) String() string { + return fmt.Sprintf("[PUT /certificates][%d] updateCertificateOK ", 200) +} + +func (o *UpdateCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_course_lesson_parameters.go b/api/members/members_client/operations/update_course_lesson_parameters.go new file mode 100644 index 0000000..d0ca76a --- /dev/null +++ b/api/members/members_client/operations/update_course_lesson_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateCourseLessonParams creates a new UpdateCourseLessonParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateCourseLessonParams() *UpdateCourseLessonParams { + return &UpdateCourseLessonParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateCourseLessonParamsWithTimeout creates a new UpdateCourseLessonParams object +// with the ability to set a timeout on a request. +func NewUpdateCourseLessonParamsWithTimeout(timeout time.Duration) *UpdateCourseLessonParams { + return &UpdateCourseLessonParams{ + timeout: timeout, + } +} + +// NewUpdateCourseLessonParamsWithContext creates a new UpdateCourseLessonParams object +// with the ability to set a context for a request. +func NewUpdateCourseLessonParamsWithContext(ctx context.Context) *UpdateCourseLessonParams { + return &UpdateCourseLessonParams{ + Context: ctx, + } +} + +// NewUpdateCourseLessonParamsWithHTTPClient creates a new UpdateCourseLessonParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateCourseLessonParamsWithHTTPClient(client *http.Client) *UpdateCourseLessonParams { + return &UpdateCourseLessonParams{ + HTTPClient: client, + } +} + +/* +UpdateCourseLessonParams contains all the parameters to send to the API endpoint + + for the update course lesson operation. + + Typically these are written to a http.Request. +*/ +type UpdateCourseLessonParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update course lesson params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCourseLessonParams) WithDefaults() *UpdateCourseLessonParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update course lesson params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCourseLessonParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update course lesson params +func (o *UpdateCourseLessonParams) WithTimeout(timeout time.Duration) *UpdateCourseLessonParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update course lesson params +func (o *UpdateCourseLessonParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update course lesson params +func (o *UpdateCourseLessonParams) WithContext(ctx context.Context) *UpdateCourseLessonParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update course lesson params +func (o *UpdateCourseLessonParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update course lesson params +func (o *UpdateCourseLessonParams) WithHTTPClient(client *http.Client) *UpdateCourseLessonParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update course lesson params +func (o *UpdateCourseLessonParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update course lesson params +func (o *UpdateCourseLessonParams) WithID(id *string) *UpdateCourseLessonParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update course lesson params +func (o *UpdateCourseLessonParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateCourseLessonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_course_lesson_responses.go b/api/members/members_client/operations/update_course_lesson_responses.go new file mode 100644 index 0000000..f0ad2c9 --- /dev/null +++ b/api/members/members_client/operations/update_course_lesson_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateCourseLessonReader is a Reader for the UpdateCourseLesson structure. +type UpdateCourseLessonReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateCourseLessonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateCourseLessonOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateCourseLessonOK creates a UpdateCourseLessonOK with default headers values +func NewUpdateCourseLessonOK() *UpdateCourseLessonOK { + return &UpdateCourseLessonOK{} +} + +/* +UpdateCourseLessonOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateCourseLessonOK struct { +} + +// IsSuccess returns true when this update course lesson o k response has a 2xx status code +func (o *UpdateCourseLessonOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update course lesson o k response has a 3xx status code +func (o *UpdateCourseLessonOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update course lesson o k response has a 4xx status code +func (o *UpdateCourseLessonOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update course lesson o k response has a 5xx status code +func (o *UpdateCourseLessonOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update course lesson o k response a status code equal to that given +func (o *UpdateCourseLessonOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update course lesson o k response +func (o *UpdateCourseLessonOK) Code() int { + return 200 +} + +func (o *UpdateCourseLessonOK) Error() string { + return fmt.Sprintf("[PUT /courselessons][%d] updateCourseLessonOK ", 200) +} + +func (o *UpdateCourseLessonOK) String() string { + return fmt.Sprintf("[PUT /courselessons][%d] updateCourseLessonOK ", 200) +} + +func (o *UpdateCourseLessonOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_course_parameters.go b/api/members/members_client/operations/update_course_parameters.go new file mode 100644 index 0000000..b7b341f --- /dev/null +++ b/api/members/members_client/operations/update_course_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateCourseParams creates a new UpdateCourseParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateCourseParams() *UpdateCourseParams { + return &UpdateCourseParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateCourseParamsWithTimeout creates a new UpdateCourseParams object +// with the ability to set a timeout on a request. +func NewUpdateCourseParamsWithTimeout(timeout time.Duration) *UpdateCourseParams { + return &UpdateCourseParams{ + timeout: timeout, + } +} + +// NewUpdateCourseParamsWithContext creates a new UpdateCourseParams object +// with the ability to set a context for a request. +func NewUpdateCourseParamsWithContext(ctx context.Context) *UpdateCourseParams { + return &UpdateCourseParams{ + Context: ctx, + } +} + +// NewUpdateCourseParamsWithHTTPClient creates a new UpdateCourseParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateCourseParamsWithHTTPClient(client *http.Client) *UpdateCourseParams { + return &UpdateCourseParams{ + HTTPClient: client, + } +} + +/* +UpdateCourseParams contains all the parameters to send to the API endpoint + + for the update course operation. + + Typically these are written to a http.Request. +*/ +type UpdateCourseParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update course params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCourseParams) WithDefaults() *UpdateCourseParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update course params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCourseParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update course params +func (o *UpdateCourseParams) WithTimeout(timeout time.Duration) *UpdateCourseParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update course params +func (o *UpdateCourseParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update course params +func (o *UpdateCourseParams) WithContext(ctx context.Context) *UpdateCourseParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update course params +func (o *UpdateCourseParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update course params +func (o *UpdateCourseParams) WithHTTPClient(client *http.Client) *UpdateCourseParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update course params +func (o *UpdateCourseParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update course params +func (o *UpdateCourseParams) WithID(id *string) *UpdateCourseParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update course params +func (o *UpdateCourseParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateCourseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_course_responses.go b/api/members/members_client/operations/update_course_responses.go new file mode 100644 index 0000000..d15975a --- /dev/null +++ b/api/members/members_client/operations/update_course_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateCourseReader is a Reader for the UpdateCourse structure. +type UpdateCourseReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateCourseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateCourseOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateCourseOK creates a UpdateCourseOK with default headers values +func NewUpdateCourseOK() *UpdateCourseOK { + return &UpdateCourseOK{} +} + +/* +UpdateCourseOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateCourseOK struct { +} + +// IsSuccess returns true when this update course o k response has a 2xx status code +func (o *UpdateCourseOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update course o k response has a 3xx status code +func (o *UpdateCourseOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update course o k response has a 4xx status code +func (o *UpdateCourseOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update course o k response has a 5xx status code +func (o *UpdateCourseOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update course o k response a status code equal to that given +func (o *UpdateCourseOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update course o k response +func (o *UpdateCourseOK) Code() int { + return 200 +} + +func (o *UpdateCourseOK) Error() string { + return fmt.Sprintf("[PUT /courses][%d] updateCourseOK ", 200) +} + +func (o *UpdateCourseOK) String() string { + return fmt.Sprintf("[PUT /courses][%d] updateCourseOK ", 200) +} + +func (o *UpdateCourseOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_course_section_parameters.go b/api/members/members_client/operations/update_course_section_parameters.go new file mode 100644 index 0000000..90e95f5 --- /dev/null +++ b/api/members/members_client/operations/update_course_section_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateCourseSectionParams creates a new UpdateCourseSectionParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateCourseSectionParams() *UpdateCourseSectionParams { + return &UpdateCourseSectionParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateCourseSectionParamsWithTimeout creates a new UpdateCourseSectionParams object +// with the ability to set a timeout on a request. +func NewUpdateCourseSectionParamsWithTimeout(timeout time.Duration) *UpdateCourseSectionParams { + return &UpdateCourseSectionParams{ + timeout: timeout, + } +} + +// NewUpdateCourseSectionParamsWithContext creates a new UpdateCourseSectionParams object +// with the ability to set a context for a request. +func NewUpdateCourseSectionParamsWithContext(ctx context.Context) *UpdateCourseSectionParams { + return &UpdateCourseSectionParams{ + Context: ctx, + } +} + +// NewUpdateCourseSectionParamsWithHTTPClient creates a new UpdateCourseSectionParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateCourseSectionParamsWithHTTPClient(client *http.Client) *UpdateCourseSectionParams { + return &UpdateCourseSectionParams{ + HTTPClient: client, + } +} + +/* +UpdateCourseSectionParams contains all the parameters to send to the API endpoint + + for the update course section operation. + + Typically these are written to a http.Request. +*/ +type UpdateCourseSectionParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update course section params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCourseSectionParams) WithDefaults() *UpdateCourseSectionParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update course section params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateCourseSectionParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update course section params +func (o *UpdateCourseSectionParams) WithTimeout(timeout time.Duration) *UpdateCourseSectionParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update course section params +func (o *UpdateCourseSectionParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update course section params +func (o *UpdateCourseSectionParams) WithContext(ctx context.Context) *UpdateCourseSectionParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update course section params +func (o *UpdateCourseSectionParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update course section params +func (o *UpdateCourseSectionParams) WithHTTPClient(client *http.Client) *UpdateCourseSectionParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update course section params +func (o *UpdateCourseSectionParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update course section params +func (o *UpdateCourseSectionParams) WithID(id *string) *UpdateCourseSectionParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update course section params +func (o *UpdateCourseSectionParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateCourseSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_course_section_responses.go b/api/members/members_client/operations/update_course_section_responses.go new file mode 100644 index 0000000..d3fa51d --- /dev/null +++ b/api/members/members_client/operations/update_course_section_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateCourseSectionReader is a Reader for the UpdateCourseSection structure. +type UpdateCourseSectionReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateCourseSectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateCourseSectionOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateCourseSectionOK creates a UpdateCourseSectionOK with default headers values +func NewUpdateCourseSectionOK() *UpdateCourseSectionOK { + return &UpdateCourseSectionOK{} +} + +/* +UpdateCourseSectionOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateCourseSectionOK struct { +} + +// IsSuccess returns true when this update course section o k response has a 2xx status code +func (o *UpdateCourseSectionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update course section o k response has a 3xx status code +func (o *UpdateCourseSectionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update course section o k response has a 4xx status code +func (o *UpdateCourseSectionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update course section o k response has a 5xx status code +func (o *UpdateCourseSectionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update course section o k response a status code equal to that given +func (o *UpdateCourseSectionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update course section o k response +func (o *UpdateCourseSectionOK) Code() int { + return 200 +} + +func (o *UpdateCourseSectionOK) Error() string { + return fmt.Sprintf("[PUT /coursesections][%d] updateCourseSectionOK ", 200) +} + +func (o *UpdateCourseSectionOK) String() string { + return fmt.Sprintf("[PUT /coursesections][%d] updateCourseSectionOK ", 200) +} + +func (o *UpdateCourseSectionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_enrollment_parameters.go b/api/members/members_client/operations/update_enrollment_parameters.go new file mode 100644 index 0000000..feaa994 --- /dev/null +++ b/api/members/members_client/operations/update_enrollment_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateEnrollmentParams creates a new UpdateEnrollmentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateEnrollmentParams() *UpdateEnrollmentParams { + return &UpdateEnrollmentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateEnrollmentParamsWithTimeout creates a new UpdateEnrollmentParams object +// with the ability to set a timeout on a request. +func NewUpdateEnrollmentParamsWithTimeout(timeout time.Duration) *UpdateEnrollmentParams { + return &UpdateEnrollmentParams{ + timeout: timeout, + } +} + +// NewUpdateEnrollmentParamsWithContext creates a new UpdateEnrollmentParams object +// with the ability to set a context for a request. +func NewUpdateEnrollmentParamsWithContext(ctx context.Context) *UpdateEnrollmentParams { + return &UpdateEnrollmentParams{ + Context: ctx, + } +} + +// NewUpdateEnrollmentParamsWithHTTPClient creates a new UpdateEnrollmentParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateEnrollmentParamsWithHTTPClient(client *http.Client) *UpdateEnrollmentParams { + return &UpdateEnrollmentParams{ + HTTPClient: client, + } +} + +/* +UpdateEnrollmentParams contains all the parameters to send to the API endpoint + + for the update enrollment operation. + + Typically these are written to a http.Request. +*/ +type UpdateEnrollmentParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update enrollment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEnrollmentParams) WithDefaults() *UpdateEnrollmentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update enrollment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEnrollmentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update enrollment params +func (o *UpdateEnrollmentParams) WithTimeout(timeout time.Duration) *UpdateEnrollmentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update enrollment params +func (o *UpdateEnrollmentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update enrollment params +func (o *UpdateEnrollmentParams) WithContext(ctx context.Context) *UpdateEnrollmentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update enrollment params +func (o *UpdateEnrollmentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update enrollment params +func (o *UpdateEnrollmentParams) WithHTTPClient(client *http.Client) *UpdateEnrollmentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update enrollment params +func (o *UpdateEnrollmentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update enrollment params +func (o *UpdateEnrollmentParams) WithID(id *string) *UpdateEnrollmentParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update enrollment params +func (o *UpdateEnrollmentParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateEnrollmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_enrollment_responses.go b/api/members/members_client/operations/update_enrollment_responses.go new file mode 100644 index 0000000..9bbca66 --- /dev/null +++ b/api/members/members_client/operations/update_enrollment_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateEnrollmentReader is a Reader for the UpdateEnrollment structure. +type UpdateEnrollmentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateEnrollmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateEnrollmentOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateEnrollmentOK creates a UpdateEnrollmentOK with default headers values +func NewUpdateEnrollmentOK() *UpdateEnrollmentOK { + return &UpdateEnrollmentOK{} +} + +/* +UpdateEnrollmentOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateEnrollmentOK struct { +} + +// IsSuccess returns true when this update enrollment o k response has a 2xx status code +func (o *UpdateEnrollmentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update enrollment o k response has a 3xx status code +func (o *UpdateEnrollmentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update enrollment o k response has a 4xx status code +func (o *UpdateEnrollmentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update enrollment o k response has a 5xx status code +func (o *UpdateEnrollmentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update enrollment o k response a status code equal to that given +func (o *UpdateEnrollmentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update enrollment o k response +func (o *UpdateEnrollmentOK) Code() int { + return 200 +} + +func (o *UpdateEnrollmentOK) Error() string { + return fmt.Sprintf("[PUT /enrollments][%d] updateEnrollmentOK ", 200) +} + +func (o *UpdateEnrollmentOK) String() string { + return fmt.Sprintf("[PUT /enrollments][%d] updateEnrollmentOK ", 200) +} + +func (o *UpdateEnrollmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_event_category_assignment_parameters.go b/api/members/members_client/operations/update_event_category_assignment_parameters.go new file mode 100644 index 0000000..9bdc1e9 --- /dev/null +++ b/api/members/members_client/operations/update_event_category_assignment_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateEventCategoryAssignmentParams creates a new UpdateEventCategoryAssignmentParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateEventCategoryAssignmentParams() *UpdateEventCategoryAssignmentParams { + return &UpdateEventCategoryAssignmentParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateEventCategoryAssignmentParamsWithTimeout creates a new UpdateEventCategoryAssignmentParams object +// with the ability to set a timeout on a request. +func NewUpdateEventCategoryAssignmentParamsWithTimeout(timeout time.Duration) *UpdateEventCategoryAssignmentParams { + return &UpdateEventCategoryAssignmentParams{ + timeout: timeout, + } +} + +// NewUpdateEventCategoryAssignmentParamsWithContext creates a new UpdateEventCategoryAssignmentParams object +// with the ability to set a context for a request. +func NewUpdateEventCategoryAssignmentParamsWithContext(ctx context.Context) *UpdateEventCategoryAssignmentParams { + return &UpdateEventCategoryAssignmentParams{ + Context: ctx, + } +} + +// NewUpdateEventCategoryAssignmentParamsWithHTTPClient creates a new UpdateEventCategoryAssignmentParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateEventCategoryAssignmentParamsWithHTTPClient(client *http.Client) *UpdateEventCategoryAssignmentParams { + return &UpdateEventCategoryAssignmentParams{ + HTTPClient: client, + } +} + +/* +UpdateEventCategoryAssignmentParams contains all the parameters to send to the API endpoint + + for the update event category assignment operation. + + Typically these are written to a http.Request. +*/ +type UpdateEventCategoryAssignmentParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update event category assignment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEventCategoryAssignmentParams) WithDefaults() *UpdateEventCategoryAssignmentParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update event category assignment params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEventCategoryAssignmentParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) WithTimeout(timeout time.Duration) *UpdateEventCategoryAssignmentParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) WithContext(ctx context.Context) *UpdateEventCategoryAssignmentParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) WithHTTPClient(client *http.Client) *UpdateEventCategoryAssignmentParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) WithID(id *string) *UpdateEventCategoryAssignmentParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update event category assignment params +func (o *UpdateEventCategoryAssignmentParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateEventCategoryAssignmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_event_category_assignment_responses.go b/api/members/members_client/operations/update_event_category_assignment_responses.go new file mode 100644 index 0000000..a799db3 --- /dev/null +++ b/api/members/members_client/operations/update_event_category_assignment_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateEventCategoryAssignmentReader is a Reader for the UpdateEventCategoryAssignment structure. +type UpdateEventCategoryAssignmentReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateEventCategoryAssignmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateEventCategoryAssignmentOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateEventCategoryAssignmentOK creates a UpdateEventCategoryAssignmentOK with default headers values +func NewUpdateEventCategoryAssignmentOK() *UpdateEventCategoryAssignmentOK { + return &UpdateEventCategoryAssignmentOK{} +} + +/* +UpdateEventCategoryAssignmentOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateEventCategoryAssignmentOK struct { +} + +// IsSuccess returns true when this update event category assignment o k response has a 2xx status code +func (o *UpdateEventCategoryAssignmentOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update event category assignment o k response has a 3xx status code +func (o *UpdateEventCategoryAssignmentOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update event category assignment o k response has a 4xx status code +func (o *UpdateEventCategoryAssignmentOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update event category assignment o k response has a 5xx status code +func (o *UpdateEventCategoryAssignmentOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update event category assignment o k response a status code equal to that given +func (o *UpdateEventCategoryAssignmentOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update event category assignment o k response +func (o *UpdateEventCategoryAssignmentOK) Code() int { + return 200 +} + +func (o *UpdateEventCategoryAssignmentOK) Error() string { + return fmt.Sprintf("[PUT /eventcategoryassignments][%d] updateEventCategoryAssignmentOK ", 200) +} + +func (o *UpdateEventCategoryAssignmentOK) String() string { + return fmt.Sprintf("[PUT /eventcategoryassignments][%d] updateEventCategoryAssignmentOK ", 200) +} + +func (o *UpdateEventCategoryAssignmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_event_category_parameters.go b/api/members/members_client/operations/update_event_category_parameters.go new file mode 100644 index 0000000..5422601 --- /dev/null +++ b/api/members/members_client/operations/update_event_category_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateEventCategoryParams creates a new UpdateEventCategoryParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateEventCategoryParams() *UpdateEventCategoryParams { + return &UpdateEventCategoryParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateEventCategoryParamsWithTimeout creates a new UpdateEventCategoryParams object +// with the ability to set a timeout on a request. +func NewUpdateEventCategoryParamsWithTimeout(timeout time.Duration) *UpdateEventCategoryParams { + return &UpdateEventCategoryParams{ + timeout: timeout, + } +} + +// NewUpdateEventCategoryParamsWithContext creates a new UpdateEventCategoryParams object +// with the ability to set a context for a request. +func NewUpdateEventCategoryParamsWithContext(ctx context.Context) *UpdateEventCategoryParams { + return &UpdateEventCategoryParams{ + Context: ctx, + } +} + +// NewUpdateEventCategoryParamsWithHTTPClient creates a new UpdateEventCategoryParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateEventCategoryParamsWithHTTPClient(client *http.Client) *UpdateEventCategoryParams { + return &UpdateEventCategoryParams{ + HTTPClient: client, + } +} + +/* +UpdateEventCategoryParams contains all the parameters to send to the API endpoint + + for the update event category operation. + + Typically these are written to a http.Request. +*/ +type UpdateEventCategoryParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update event category params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEventCategoryParams) WithDefaults() *UpdateEventCategoryParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update event category params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEventCategoryParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update event category params +func (o *UpdateEventCategoryParams) WithTimeout(timeout time.Duration) *UpdateEventCategoryParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update event category params +func (o *UpdateEventCategoryParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update event category params +func (o *UpdateEventCategoryParams) WithContext(ctx context.Context) *UpdateEventCategoryParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update event category params +func (o *UpdateEventCategoryParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update event category params +func (o *UpdateEventCategoryParams) WithHTTPClient(client *http.Client) *UpdateEventCategoryParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update event category params +func (o *UpdateEventCategoryParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update event category params +func (o *UpdateEventCategoryParams) WithID(id *string) *UpdateEventCategoryParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update event category params +func (o *UpdateEventCategoryParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateEventCategoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_event_category_responses.go b/api/members/members_client/operations/update_event_category_responses.go new file mode 100644 index 0000000..18cfabb --- /dev/null +++ b/api/members/members_client/operations/update_event_category_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateEventCategoryReader is a Reader for the UpdateEventCategory structure. +type UpdateEventCategoryReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateEventCategoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateEventCategoryOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateEventCategoryOK creates a UpdateEventCategoryOK with default headers values +func NewUpdateEventCategoryOK() *UpdateEventCategoryOK { + return &UpdateEventCategoryOK{} +} + +/* +UpdateEventCategoryOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateEventCategoryOK struct { +} + +// IsSuccess returns true when this update event category o k response has a 2xx status code +func (o *UpdateEventCategoryOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update event category o k response has a 3xx status code +func (o *UpdateEventCategoryOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update event category o k response has a 4xx status code +func (o *UpdateEventCategoryOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update event category o k response has a 5xx status code +func (o *UpdateEventCategoryOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update event category o k response a status code equal to that given +func (o *UpdateEventCategoryOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update event category o k response +func (o *UpdateEventCategoryOK) Code() int { + return 200 +} + +func (o *UpdateEventCategoryOK) Error() string { + return fmt.Sprintf("[PUT /eventcategorys][%d] updateEventCategoryOK ", 200) +} + +func (o *UpdateEventCategoryOK) String() string { + return fmt.Sprintf("[PUT /eventcategorys][%d] updateEventCategoryOK ", 200) +} + +func (o *UpdateEventCategoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_event_parameters.go b/api/members/members_client/operations/update_event_parameters.go new file mode 100644 index 0000000..e26e321 --- /dev/null +++ b/api/members/members_client/operations/update_event_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateEventParams creates a new UpdateEventParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateEventParams() *UpdateEventParams { + return &UpdateEventParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateEventParamsWithTimeout creates a new UpdateEventParams object +// with the ability to set a timeout on a request. +func NewUpdateEventParamsWithTimeout(timeout time.Duration) *UpdateEventParams { + return &UpdateEventParams{ + timeout: timeout, + } +} + +// NewUpdateEventParamsWithContext creates a new UpdateEventParams object +// with the ability to set a context for a request. +func NewUpdateEventParamsWithContext(ctx context.Context) *UpdateEventParams { + return &UpdateEventParams{ + Context: ctx, + } +} + +// NewUpdateEventParamsWithHTTPClient creates a new UpdateEventParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateEventParamsWithHTTPClient(client *http.Client) *UpdateEventParams { + return &UpdateEventParams{ + HTTPClient: client, + } +} + +/* +UpdateEventParams contains all the parameters to send to the API endpoint + + for the update event operation. + + Typically these are written to a http.Request. +*/ +type UpdateEventParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update event params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEventParams) WithDefaults() *UpdateEventParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update event params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateEventParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update event params +func (o *UpdateEventParams) WithTimeout(timeout time.Duration) *UpdateEventParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update event params +func (o *UpdateEventParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update event params +func (o *UpdateEventParams) WithContext(ctx context.Context) *UpdateEventParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update event params +func (o *UpdateEventParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update event params +func (o *UpdateEventParams) WithHTTPClient(client *http.Client) *UpdateEventParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update event params +func (o *UpdateEventParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update event params +func (o *UpdateEventParams) WithID(id *string) *UpdateEventParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update event params +func (o *UpdateEventParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_event_responses.go b/api/members/members_client/operations/update_event_responses.go new file mode 100644 index 0000000..a56b29e --- /dev/null +++ b/api/members/members_client/operations/update_event_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateEventReader is a Reader for the UpdateEvent structure. +type UpdateEventReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateEventReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateEventOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateEventOK creates a UpdateEventOK with default headers values +func NewUpdateEventOK() *UpdateEventOK { + return &UpdateEventOK{} +} + +/* +UpdateEventOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateEventOK struct { +} + +// IsSuccess returns true when this update event o k response has a 2xx status code +func (o *UpdateEventOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update event o k response has a 3xx status code +func (o *UpdateEventOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update event o k response has a 4xx status code +func (o *UpdateEventOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update event o k response has a 5xx status code +func (o *UpdateEventOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update event o k response a status code equal to that given +func (o *UpdateEventOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update event o k response +func (o *UpdateEventOK) Code() int { + return 200 +} + +func (o *UpdateEventOK) Error() string { + return fmt.Sprintf("[PUT /events][%d] updateEventOK ", 200) +} + +func (o *UpdateEventOK) String() string { + return fmt.Sprintf("[PUT /events][%d] updateEventOK ", 200) +} + +func (o *UpdateEventOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_favorite_parameters.go b/api/members/members_client/operations/update_favorite_parameters.go new file mode 100644 index 0000000..7eea62d --- /dev/null +++ b/api/members/members_client/operations/update_favorite_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateFavoriteParams creates a new UpdateFavoriteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateFavoriteParams() *UpdateFavoriteParams { + return &UpdateFavoriteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateFavoriteParamsWithTimeout creates a new UpdateFavoriteParams object +// with the ability to set a timeout on a request. +func NewUpdateFavoriteParamsWithTimeout(timeout time.Duration) *UpdateFavoriteParams { + return &UpdateFavoriteParams{ + timeout: timeout, + } +} + +// NewUpdateFavoriteParamsWithContext creates a new UpdateFavoriteParams object +// with the ability to set a context for a request. +func NewUpdateFavoriteParamsWithContext(ctx context.Context) *UpdateFavoriteParams { + return &UpdateFavoriteParams{ + Context: ctx, + } +} + +// NewUpdateFavoriteParamsWithHTTPClient creates a new UpdateFavoriteParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateFavoriteParamsWithHTTPClient(client *http.Client) *UpdateFavoriteParams { + return &UpdateFavoriteParams{ + HTTPClient: client, + } +} + +/* +UpdateFavoriteParams contains all the parameters to send to the API endpoint + + for the update favorite operation. + + Typically these are written to a http.Request. +*/ +type UpdateFavoriteParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update favorite params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateFavoriteParams) WithDefaults() *UpdateFavoriteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update favorite params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateFavoriteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update favorite params +func (o *UpdateFavoriteParams) WithTimeout(timeout time.Duration) *UpdateFavoriteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update favorite params +func (o *UpdateFavoriteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update favorite params +func (o *UpdateFavoriteParams) WithContext(ctx context.Context) *UpdateFavoriteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update favorite params +func (o *UpdateFavoriteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update favorite params +func (o *UpdateFavoriteParams) WithHTTPClient(client *http.Client) *UpdateFavoriteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update favorite params +func (o *UpdateFavoriteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update favorite params +func (o *UpdateFavoriteParams) WithID(id *string) *UpdateFavoriteParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update favorite params +func (o *UpdateFavoriteParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateFavoriteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_favorite_responses.go b/api/members/members_client/operations/update_favorite_responses.go new file mode 100644 index 0000000..6f70b35 --- /dev/null +++ b/api/members/members_client/operations/update_favorite_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateFavoriteReader is a Reader for the UpdateFavorite structure. +type UpdateFavoriteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateFavoriteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateFavoriteOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateFavoriteOK creates a UpdateFavoriteOK with default headers values +func NewUpdateFavoriteOK() *UpdateFavoriteOK { + return &UpdateFavoriteOK{} +} + +/* +UpdateFavoriteOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateFavoriteOK struct { +} + +// IsSuccess returns true when this update favorite o k response has a 2xx status code +func (o *UpdateFavoriteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update favorite o k response has a 3xx status code +func (o *UpdateFavoriteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update favorite o k response has a 4xx status code +func (o *UpdateFavoriteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update favorite o k response has a 5xx status code +func (o *UpdateFavoriteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update favorite o k response a status code equal to that given +func (o *UpdateFavoriteOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update favorite o k response +func (o *UpdateFavoriteOK) Code() int { + return 200 +} + +func (o *UpdateFavoriteOK) Error() string { + return fmt.Sprintf("[PUT /favorites][%d] updateFavoriteOK ", 200) +} + +func (o *UpdateFavoriteOK) String() string { + return fmt.Sprintf("[PUT /favorites][%d] updateFavoriteOK ", 200) +} + +func (o *UpdateFavoriteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_invoice_parameters.go b/api/members/members_client/operations/update_invoice_parameters.go new file mode 100644 index 0000000..df32f1d --- /dev/null +++ b/api/members/members_client/operations/update_invoice_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateInvoiceParams creates a new UpdateInvoiceParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateInvoiceParams() *UpdateInvoiceParams { + return &UpdateInvoiceParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateInvoiceParamsWithTimeout creates a new UpdateInvoiceParams object +// with the ability to set a timeout on a request. +func NewUpdateInvoiceParamsWithTimeout(timeout time.Duration) *UpdateInvoiceParams { + return &UpdateInvoiceParams{ + timeout: timeout, + } +} + +// NewUpdateInvoiceParamsWithContext creates a new UpdateInvoiceParams object +// with the ability to set a context for a request. +func NewUpdateInvoiceParamsWithContext(ctx context.Context) *UpdateInvoiceParams { + return &UpdateInvoiceParams{ + Context: ctx, + } +} + +// NewUpdateInvoiceParamsWithHTTPClient creates a new UpdateInvoiceParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateInvoiceParamsWithHTTPClient(client *http.Client) *UpdateInvoiceParams { + return &UpdateInvoiceParams{ + HTTPClient: client, + } +} + +/* +UpdateInvoiceParams contains all the parameters to send to the API endpoint + + for the update invoice operation. + + Typically these are written to a http.Request. +*/ +type UpdateInvoiceParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update invoice params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateInvoiceParams) WithDefaults() *UpdateInvoiceParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update invoice params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateInvoiceParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update invoice params +func (o *UpdateInvoiceParams) WithTimeout(timeout time.Duration) *UpdateInvoiceParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update invoice params +func (o *UpdateInvoiceParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update invoice params +func (o *UpdateInvoiceParams) WithContext(ctx context.Context) *UpdateInvoiceParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update invoice params +func (o *UpdateInvoiceParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update invoice params +func (o *UpdateInvoiceParams) WithHTTPClient(client *http.Client) *UpdateInvoiceParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update invoice params +func (o *UpdateInvoiceParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update invoice params +func (o *UpdateInvoiceParams) WithID(id *string) *UpdateInvoiceParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update invoice params +func (o *UpdateInvoiceParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateInvoiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_invoice_responses.go b/api/members/members_client/operations/update_invoice_responses.go new file mode 100644 index 0000000..d1e2c84 --- /dev/null +++ b/api/members/members_client/operations/update_invoice_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateInvoiceReader is a Reader for the UpdateInvoice structure. +type UpdateInvoiceReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateInvoiceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateInvoiceOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateInvoiceOK creates a UpdateInvoiceOK with default headers values +func NewUpdateInvoiceOK() *UpdateInvoiceOK { + return &UpdateInvoiceOK{} +} + +/* +UpdateInvoiceOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateInvoiceOK struct { +} + +// IsSuccess returns true when this update invoice o k response has a 2xx status code +func (o *UpdateInvoiceOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update invoice o k response has a 3xx status code +func (o *UpdateInvoiceOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update invoice o k response has a 4xx status code +func (o *UpdateInvoiceOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update invoice o k response has a 5xx status code +func (o *UpdateInvoiceOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update invoice o k response a status code equal to that given +func (o *UpdateInvoiceOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update invoice o k response +func (o *UpdateInvoiceOK) Code() int { + return 200 +} + +func (o *UpdateInvoiceOK) Error() string { + return fmt.Sprintf("[PUT /invoices][%d] updateInvoiceOK ", 200) +} + +func (o *UpdateInvoiceOK) String() string { + return fmt.Sprintf("[PUT /invoices][%d] updateInvoiceOK ", 200) +} + +func (o *UpdateInvoiceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_issued_certificate_parameters.go b/api/members/members_client/operations/update_issued_certificate_parameters.go new file mode 100644 index 0000000..dfdccef --- /dev/null +++ b/api/members/members_client/operations/update_issued_certificate_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateIssuedCertificateParams creates a new UpdateIssuedCertificateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateIssuedCertificateParams() *UpdateIssuedCertificateParams { + return &UpdateIssuedCertificateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateIssuedCertificateParamsWithTimeout creates a new UpdateIssuedCertificateParams object +// with the ability to set a timeout on a request. +func NewUpdateIssuedCertificateParamsWithTimeout(timeout time.Duration) *UpdateIssuedCertificateParams { + return &UpdateIssuedCertificateParams{ + timeout: timeout, + } +} + +// NewUpdateIssuedCertificateParamsWithContext creates a new UpdateIssuedCertificateParams object +// with the ability to set a context for a request. +func NewUpdateIssuedCertificateParamsWithContext(ctx context.Context) *UpdateIssuedCertificateParams { + return &UpdateIssuedCertificateParams{ + Context: ctx, + } +} + +// NewUpdateIssuedCertificateParamsWithHTTPClient creates a new UpdateIssuedCertificateParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateIssuedCertificateParamsWithHTTPClient(client *http.Client) *UpdateIssuedCertificateParams { + return &UpdateIssuedCertificateParams{ + HTTPClient: client, + } +} + +/* +UpdateIssuedCertificateParams contains all the parameters to send to the API endpoint + + for the update issued certificate operation. + + Typically these are written to a http.Request. +*/ +type UpdateIssuedCertificateParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update issued certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateIssuedCertificateParams) WithDefaults() *UpdateIssuedCertificateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update issued certificate params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateIssuedCertificateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update issued certificate params +func (o *UpdateIssuedCertificateParams) WithTimeout(timeout time.Duration) *UpdateIssuedCertificateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update issued certificate params +func (o *UpdateIssuedCertificateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update issued certificate params +func (o *UpdateIssuedCertificateParams) WithContext(ctx context.Context) *UpdateIssuedCertificateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update issued certificate params +func (o *UpdateIssuedCertificateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update issued certificate params +func (o *UpdateIssuedCertificateParams) WithHTTPClient(client *http.Client) *UpdateIssuedCertificateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update issued certificate params +func (o *UpdateIssuedCertificateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update issued certificate params +func (o *UpdateIssuedCertificateParams) WithID(id *string) *UpdateIssuedCertificateParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update issued certificate params +func (o *UpdateIssuedCertificateParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateIssuedCertificateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_issued_certificate_responses.go b/api/members/members_client/operations/update_issued_certificate_responses.go new file mode 100644 index 0000000..34c565b --- /dev/null +++ b/api/members/members_client/operations/update_issued_certificate_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateIssuedCertificateReader is a Reader for the UpdateIssuedCertificate structure. +type UpdateIssuedCertificateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateIssuedCertificateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateIssuedCertificateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateIssuedCertificateOK creates a UpdateIssuedCertificateOK with default headers values +func NewUpdateIssuedCertificateOK() *UpdateIssuedCertificateOK { + return &UpdateIssuedCertificateOK{} +} + +/* +UpdateIssuedCertificateOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateIssuedCertificateOK struct { +} + +// IsSuccess returns true when this update issued certificate o k response has a 2xx status code +func (o *UpdateIssuedCertificateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update issued certificate o k response has a 3xx status code +func (o *UpdateIssuedCertificateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update issued certificate o k response has a 4xx status code +func (o *UpdateIssuedCertificateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update issued certificate o k response has a 5xx status code +func (o *UpdateIssuedCertificateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update issued certificate o k response a status code equal to that given +func (o *UpdateIssuedCertificateOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update issued certificate o k response +func (o *UpdateIssuedCertificateOK) Code() int { + return 200 +} + +func (o *UpdateIssuedCertificateOK) Error() string { + return fmt.Sprintf("[PUT /issuedcertificates][%d] updateIssuedCertificateOK ", 200) +} + +func (o *UpdateIssuedCertificateOK) String() string { + return fmt.Sprintf("[PUT /issuedcertificates][%d] updateIssuedCertificateOK ", 200) +} + +func (o *UpdateIssuedCertificateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_lesson_progress_parameters.go b/api/members/members_client/operations/update_lesson_progress_parameters.go new file mode 100644 index 0000000..1eb7b2b --- /dev/null +++ b/api/members/members_client/operations/update_lesson_progress_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateLessonProgressParams creates a new UpdateLessonProgressParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateLessonProgressParams() *UpdateLessonProgressParams { + return &UpdateLessonProgressParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateLessonProgressParamsWithTimeout creates a new UpdateLessonProgressParams object +// with the ability to set a timeout on a request. +func NewUpdateLessonProgressParamsWithTimeout(timeout time.Duration) *UpdateLessonProgressParams { + return &UpdateLessonProgressParams{ + timeout: timeout, + } +} + +// NewUpdateLessonProgressParamsWithContext creates a new UpdateLessonProgressParams object +// with the ability to set a context for a request. +func NewUpdateLessonProgressParamsWithContext(ctx context.Context) *UpdateLessonProgressParams { + return &UpdateLessonProgressParams{ + Context: ctx, + } +} + +// NewUpdateLessonProgressParamsWithHTTPClient creates a new UpdateLessonProgressParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateLessonProgressParamsWithHTTPClient(client *http.Client) *UpdateLessonProgressParams { + return &UpdateLessonProgressParams{ + HTTPClient: client, + } +} + +/* +UpdateLessonProgressParams contains all the parameters to send to the API endpoint + + for the update lesson progress operation. + + Typically these are written to a http.Request. +*/ +type UpdateLessonProgressParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateLessonProgressParams) WithDefaults() *UpdateLessonProgressParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update lesson progress params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateLessonProgressParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update lesson progress params +func (o *UpdateLessonProgressParams) WithTimeout(timeout time.Duration) *UpdateLessonProgressParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update lesson progress params +func (o *UpdateLessonProgressParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update lesson progress params +func (o *UpdateLessonProgressParams) WithContext(ctx context.Context) *UpdateLessonProgressParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update lesson progress params +func (o *UpdateLessonProgressParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update lesson progress params +func (o *UpdateLessonProgressParams) WithHTTPClient(client *http.Client) *UpdateLessonProgressParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update lesson progress params +func (o *UpdateLessonProgressParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update lesson progress params +func (o *UpdateLessonProgressParams) WithID(id *string) *UpdateLessonProgressParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update lesson progress params +func (o *UpdateLessonProgressParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateLessonProgressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_lesson_progress_responses.go b/api/members/members_client/operations/update_lesson_progress_responses.go new file mode 100644 index 0000000..816df80 --- /dev/null +++ b/api/members/members_client/operations/update_lesson_progress_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateLessonProgressReader is a Reader for the UpdateLessonProgress structure. +type UpdateLessonProgressReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateLessonProgressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateLessonProgressOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateLessonProgressOK creates a UpdateLessonProgressOK with default headers values +func NewUpdateLessonProgressOK() *UpdateLessonProgressOK { + return &UpdateLessonProgressOK{} +} + +/* +UpdateLessonProgressOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateLessonProgressOK struct { +} + +// IsSuccess returns true when this update lesson progress o k response has a 2xx status code +func (o *UpdateLessonProgressOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update lesson progress o k response has a 3xx status code +func (o *UpdateLessonProgressOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update lesson progress o k response has a 4xx status code +func (o *UpdateLessonProgressOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update lesson progress o k response has a 5xx status code +func (o *UpdateLessonProgressOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update lesson progress o k response a status code equal to that given +func (o *UpdateLessonProgressOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update lesson progress o k response +func (o *UpdateLessonProgressOK) Code() int { + return 200 +} + +func (o *UpdateLessonProgressOK) Error() string { + return fmt.Sprintf("[PUT /lessonprogress][%d] updateLessonProgressOK ", 200) +} + +func (o *UpdateLessonProgressOK) String() string { + return fmt.Sprintf("[PUT /lessonprogress][%d] updateLessonProgressOK ", 200) +} + +func (o *UpdateLessonProgressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_order_parameters.go b/api/members/members_client/operations/update_order_parameters.go new file mode 100644 index 0000000..e344784 --- /dev/null +++ b/api/members/members_client/operations/update_order_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateOrderParams creates a new UpdateOrderParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateOrderParams() *UpdateOrderParams { + return &UpdateOrderParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateOrderParamsWithTimeout creates a new UpdateOrderParams object +// with the ability to set a timeout on a request. +func NewUpdateOrderParamsWithTimeout(timeout time.Duration) *UpdateOrderParams { + return &UpdateOrderParams{ + timeout: timeout, + } +} + +// NewUpdateOrderParamsWithContext creates a new UpdateOrderParams object +// with the ability to set a context for a request. +func NewUpdateOrderParamsWithContext(ctx context.Context) *UpdateOrderParams { + return &UpdateOrderParams{ + Context: ctx, + } +} + +// NewUpdateOrderParamsWithHTTPClient creates a new UpdateOrderParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateOrderParamsWithHTTPClient(client *http.Client) *UpdateOrderParams { + return &UpdateOrderParams{ + HTTPClient: client, + } +} + +/* +UpdateOrderParams contains all the parameters to send to the API endpoint + + for the update order operation. + + Typically these are written to a http.Request. +*/ +type UpdateOrderParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update order params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateOrderParams) WithDefaults() *UpdateOrderParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update order params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateOrderParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update order params +func (o *UpdateOrderParams) WithTimeout(timeout time.Duration) *UpdateOrderParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update order params +func (o *UpdateOrderParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update order params +func (o *UpdateOrderParams) WithContext(ctx context.Context) *UpdateOrderParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update order params +func (o *UpdateOrderParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update order params +func (o *UpdateOrderParams) WithHTTPClient(client *http.Client) *UpdateOrderParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update order params +func (o *UpdateOrderParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update order params +func (o *UpdateOrderParams) WithID(id *string) *UpdateOrderParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update order params +func (o *UpdateOrderParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_order_responses.go b/api/members/members_client/operations/update_order_responses.go new file mode 100644 index 0000000..b969939 --- /dev/null +++ b/api/members/members_client/operations/update_order_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateOrderReader is a Reader for the UpdateOrder structure. +type UpdateOrderReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateOrderOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateOrderOK creates a UpdateOrderOK with default headers values +func NewUpdateOrderOK() *UpdateOrderOK { + return &UpdateOrderOK{} +} + +/* +UpdateOrderOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateOrderOK struct { +} + +// IsSuccess returns true when this update order o k response has a 2xx status code +func (o *UpdateOrderOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update order o k response has a 3xx status code +func (o *UpdateOrderOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update order o k response has a 4xx status code +func (o *UpdateOrderOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update order o k response has a 5xx status code +func (o *UpdateOrderOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update order o k response a status code equal to that given +func (o *UpdateOrderOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update order o k response +func (o *UpdateOrderOK) Code() int { + return 200 +} + +func (o *UpdateOrderOK) Error() string { + return fmt.Sprintf("[PUT /orders][%d] updateOrderOK ", 200) +} + +func (o *UpdateOrderOK) String() string { + return fmt.Sprintf("[PUT /orders][%d] updateOrderOK ", 200) +} + +func (o *UpdateOrderOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_payment_method_parameters.go b/api/members/members_client/operations/update_payment_method_parameters.go new file mode 100644 index 0000000..d596f5a --- /dev/null +++ b/api/members/members_client/operations/update_payment_method_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdatePaymentMethodParams creates a new UpdatePaymentMethodParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdatePaymentMethodParams() *UpdatePaymentMethodParams { + return &UpdatePaymentMethodParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdatePaymentMethodParamsWithTimeout creates a new UpdatePaymentMethodParams object +// with the ability to set a timeout on a request. +func NewUpdatePaymentMethodParamsWithTimeout(timeout time.Duration) *UpdatePaymentMethodParams { + return &UpdatePaymentMethodParams{ + timeout: timeout, + } +} + +// NewUpdatePaymentMethodParamsWithContext creates a new UpdatePaymentMethodParams object +// with the ability to set a context for a request. +func NewUpdatePaymentMethodParamsWithContext(ctx context.Context) *UpdatePaymentMethodParams { + return &UpdatePaymentMethodParams{ + Context: ctx, + } +} + +// NewUpdatePaymentMethodParamsWithHTTPClient creates a new UpdatePaymentMethodParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdatePaymentMethodParamsWithHTTPClient(client *http.Client) *UpdatePaymentMethodParams { + return &UpdatePaymentMethodParams{ + HTTPClient: client, + } +} + +/* +UpdatePaymentMethodParams contains all the parameters to send to the API endpoint + + for the update payment method operation. + + Typically these are written to a http.Request. +*/ +type UpdatePaymentMethodParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update payment method params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdatePaymentMethodParams) WithDefaults() *UpdatePaymentMethodParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update payment method params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdatePaymentMethodParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update payment method params +func (o *UpdatePaymentMethodParams) WithTimeout(timeout time.Duration) *UpdatePaymentMethodParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update payment method params +func (o *UpdatePaymentMethodParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update payment method params +func (o *UpdatePaymentMethodParams) WithContext(ctx context.Context) *UpdatePaymentMethodParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update payment method params +func (o *UpdatePaymentMethodParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update payment method params +func (o *UpdatePaymentMethodParams) WithHTTPClient(client *http.Client) *UpdatePaymentMethodParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update payment method params +func (o *UpdatePaymentMethodParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update payment method params +func (o *UpdatePaymentMethodParams) WithID(id *string) *UpdatePaymentMethodParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update payment method params +func (o *UpdatePaymentMethodParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdatePaymentMethodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_payment_method_responses.go b/api/members/members_client/operations/update_payment_method_responses.go new file mode 100644 index 0000000..d1f9a9b --- /dev/null +++ b/api/members/members_client/operations/update_payment_method_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdatePaymentMethodReader is a Reader for the UpdatePaymentMethod structure. +type UpdatePaymentMethodReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdatePaymentMethodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdatePaymentMethodOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdatePaymentMethodOK creates a UpdatePaymentMethodOK with default headers values +func NewUpdatePaymentMethodOK() *UpdatePaymentMethodOK { + return &UpdatePaymentMethodOK{} +} + +/* +UpdatePaymentMethodOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdatePaymentMethodOK struct { +} + +// IsSuccess returns true when this update payment method o k response has a 2xx status code +func (o *UpdatePaymentMethodOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update payment method o k response has a 3xx status code +func (o *UpdatePaymentMethodOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update payment method o k response has a 4xx status code +func (o *UpdatePaymentMethodOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update payment method o k response has a 5xx status code +func (o *UpdatePaymentMethodOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update payment method o k response a status code equal to that given +func (o *UpdatePaymentMethodOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update payment method o k response +func (o *UpdatePaymentMethodOK) Code() int { + return 200 +} + +func (o *UpdatePaymentMethodOK) Error() string { + return fmt.Sprintf("[PUT /paymentmethods][%d] updatePaymentMethodOK ", 200) +} + +func (o *UpdatePaymentMethodOK) String() string { + return fmt.Sprintf("[PUT /paymentmethods][%d] updatePaymentMethodOK ", 200) +} + +func (o *UpdatePaymentMethodOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_research_project_company_parameters.go b/api/members/members_client/operations/update_research_project_company_parameters.go new file mode 100644 index 0000000..9bd89d7 --- /dev/null +++ b/api/members/members_client/operations/update_research_project_company_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateResearchProjectCompanyParams creates a new UpdateResearchProjectCompanyParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateResearchProjectCompanyParams() *UpdateResearchProjectCompanyParams { + return &UpdateResearchProjectCompanyParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateResearchProjectCompanyParamsWithTimeout creates a new UpdateResearchProjectCompanyParams object +// with the ability to set a timeout on a request. +func NewUpdateResearchProjectCompanyParamsWithTimeout(timeout time.Duration) *UpdateResearchProjectCompanyParams { + return &UpdateResearchProjectCompanyParams{ + timeout: timeout, + } +} + +// NewUpdateResearchProjectCompanyParamsWithContext creates a new UpdateResearchProjectCompanyParams object +// with the ability to set a context for a request. +func NewUpdateResearchProjectCompanyParamsWithContext(ctx context.Context) *UpdateResearchProjectCompanyParams { + return &UpdateResearchProjectCompanyParams{ + Context: ctx, + } +} + +// NewUpdateResearchProjectCompanyParamsWithHTTPClient creates a new UpdateResearchProjectCompanyParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateResearchProjectCompanyParamsWithHTTPClient(client *http.Client) *UpdateResearchProjectCompanyParams { + return &UpdateResearchProjectCompanyParams{ + HTTPClient: client, + } +} + +/* +UpdateResearchProjectCompanyParams contains all the parameters to send to the API endpoint + + for the update research project company operation. + + Typically these are written to a http.Request. +*/ +type UpdateResearchProjectCompanyParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update research project company params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateResearchProjectCompanyParams) WithDefaults() *UpdateResearchProjectCompanyParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update research project company params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateResearchProjectCompanyParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update research project company params +func (o *UpdateResearchProjectCompanyParams) WithTimeout(timeout time.Duration) *UpdateResearchProjectCompanyParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update research project company params +func (o *UpdateResearchProjectCompanyParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update research project company params +func (o *UpdateResearchProjectCompanyParams) WithContext(ctx context.Context) *UpdateResearchProjectCompanyParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update research project company params +func (o *UpdateResearchProjectCompanyParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update research project company params +func (o *UpdateResearchProjectCompanyParams) WithHTTPClient(client *http.Client) *UpdateResearchProjectCompanyParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update research project company params +func (o *UpdateResearchProjectCompanyParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update research project company params +func (o *UpdateResearchProjectCompanyParams) WithID(id *string) *UpdateResearchProjectCompanyParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update research project company params +func (o *UpdateResearchProjectCompanyParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateResearchProjectCompanyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_research_project_company_responses.go b/api/members/members_client/operations/update_research_project_company_responses.go new file mode 100644 index 0000000..35d05d7 --- /dev/null +++ b/api/members/members_client/operations/update_research_project_company_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateResearchProjectCompanyReader is a Reader for the UpdateResearchProjectCompany structure. +type UpdateResearchProjectCompanyReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateResearchProjectCompanyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateResearchProjectCompanyOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateResearchProjectCompanyOK creates a UpdateResearchProjectCompanyOK with default headers values +func NewUpdateResearchProjectCompanyOK() *UpdateResearchProjectCompanyOK { + return &UpdateResearchProjectCompanyOK{} +} + +/* +UpdateResearchProjectCompanyOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateResearchProjectCompanyOK struct { +} + +// IsSuccess returns true when this update research project company o k response has a 2xx status code +func (o *UpdateResearchProjectCompanyOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update research project company o k response has a 3xx status code +func (o *UpdateResearchProjectCompanyOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update research project company o k response has a 4xx status code +func (o *UpdateResearchProjectCompanyOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update research project company o k response has a 5xx status code +func (o *UpdateResearchProjectCompanyOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update research project company o k response a status code equal to that given +func (o *UpdateResearchProjectCompanyOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update research project company o k response +func (o *UpdateResearchProjectCompanyOK) Code() int { + return 200 +} + +func (o *UpdateResearchProjectCompanyOK) Error() string { + return fmt.Sprintf("[PUT /researchprojectcompanys][%d] updateResearchProjectCompanyOK ", 200) +} + +func (o *UpdateResearchProjectCompanyOK) String() string { + return fmt.Sprintf("[PUT /researchprojectcompanys][%d] updateResearchProjectCompanyOK ", 200) +} + +func (o *UpdateResearchProjectCompanyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_research_project_parameters.go b/api/members/members_client/operations/update_research_project_parameters.go new file mode 100644 index 0000000..2bad99b --- /dev/null +++ b/api/members/members_client/operations/update_research_project_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateResearchProjectParams creates a new UpdateResearchProjectParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateResearchProjectParams() *UpdateResearchProjectParams { + return &UpdateResearchProjectParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateResearchProjectParamsWithTimeout creates a new UpdateResearchProjectParams object +// with the ability to set a timeout on a request. +func NewUpdateResearchProjectParamsWithTimeout(timeout time.Duration) *UpdateResearchProjectParams { + return &UpdateResearchProjectParams{ + timeout: timeout, + } +} + +// NewUpdateResearchProjectParamsWithContext creates a new UpdateResearchProjectParams object +// with the ability to set a context for a request. +func NewUpdateResearchProjectParamsWithContext(ctx context.Context) *UpdateResearchProjectParams { + return &UpdateResearchProjectParams{ + Context: ctx, + } +} + +// NewUpdateResearchProjectParamsWithHTTPClient creates a new UpdateResearchProjectParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateResearchProjectParamsWithHTTPClient(client *http.Client) *UpdateResearchProjectParams { + return &UpdateResearchProjectParams{ + HTTPClient: client, + } +} + +/* +UpdateResearchProjectParams contains all the parameters to send to the API endpoint + + for the update research project operation. + + Typically these are written to a http.Request. +*/ +type UpdateResearchProjectParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update research project params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateResearchProjectParams) WithDefaults() *UpdateResearchProjectParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update research project params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateResearchProjectParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update research project params +func (o *UpdateResearchProjectParams) WithTimeout(timeout time.Duration) *UpdateResearchProjectParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update research project params +func (o *UpdateResearchProjectParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update research project params +func (o *UpdateResearchProjectParams) WithContext(ctx context.Context) *UpdateResearchProjectParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update research project params +func (o *UpdateResearchProjectParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update research project params +func (o *UpdateResearchProjectParams) WithHTTPClient(client *http.Client) *UpdateResearchProjectParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update research project params +func (o *UpdateResearchProjectParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update research project params +func (o *UpdateResearchProjectParams) WithID(id *string) *UpdateResearchProjectParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update research project params +func (o *UpdateResearchProjectParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateResearchProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_research_project_responses.go b/api/members/members_client/operations/update_research_project_responses.go new file mode 100644 index 0000000..a30fe82 --- /dev/null +++ b/api/members/members_client/operations/update_research_project_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateResearchProjectReader is a Reader for the UpdateResearchProject structure. +type UpdateResearchProjectReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateResearchProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateResearchProjectOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateResearchProjectOK creates a UpdateResearchProjectOK with default headers values +func NewUpdateResearchProjectOK() *UpdateResearchProjectOK { + return &UpdateResearchProjectOK{} +} + +/* +UpdateResearchProjectOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateResearchProjectOK struct { +} + +// IsSuccess returns true when this update research project o k response has a 2xx status code +func (o *UpdateResearchProjectOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update research project o k response has a 3xx status code +func (o *UpdateResearchProjectOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update research project o k response has a 4xx status code +func (o *UpdateResearchProjectOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update research project o k response has a 5xx status code +func (o *UpdateResearchProjectOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update research project o k response a status code equal to that given +func (o *UpdateResearchProjectOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update research project o k response +func (o *UpdateResearchProjectOK) Code() int { + return 200 +} + +func (o *UpdateResearchProjectOK) Error() string { + return fmt.Sprintf("[PUT /researchprojects][%d] updateResearchProjectOK ", 200) +} + +func (o *UpdateResearchProjectOK) String() string { + return fmt.Sprintf("[PUT /researchprojects][%d] updateResearchProjectOK ", 200) +} + +func (o *UpdateResearchProjectOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_research_project_topic_parameters.go b/api/members/members_client/operations/update_research_project_topic_parameters.go new file mode 100644 index 0000000..ad4f36b --- /dev/null +++ b/api/members/members_client/operations/update_research_project_topic_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateResearchProjectTopicParams creates a new UpdateResearchProjectTopicParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateResearchProjectTopicParams() *UpdateResearchProjectTopicParams { + return &UpdateResearchProjectTopicParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateResearchProjectTopicParamsWithTimeout creates a new UpdateResearchProjectTopicParams object +// with the ability to set a timeout on a request. +func NewUpdateResearchProjectTopicParamsWithTimeout(timeout time.Duration) *UpdateResearchProjectTopicParams { + return &UpdateResearchProjectTopicParams{ + timeout: timeout, + } +} + +// NewUpdateResearchProjectTopicParamsWithContext creates a new UpdateResearchProjectTopicParams object +// with the ability to set a context for a request. +func NewUpdateResearchProjectTopicParamsWithContext(ctx context.Context) *UpdateResearchProjectTopicParams { + return &UpdateResearchProjectTopicParams{ + Context: ctx, + } +} + +// NewUpdateResearchProjectTopicParamsWithHTTPClient creates a new UpdateResearchProjectTopicParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateResearchProjectTopicParamsWithHTTPClient(client *http.Client) *UpdateResearchProjectTopicParams { + return &UpdateResearchProjectTopicParams{ + HTTPClient: client, + } +} + +/* +UpdateResearchProjectTopicParams contains all the parameters to send to the API endpoint + + for the update research project topic operation. + + Typically these are written to a http.Request. +*/ +type UpdateResearchProjectTopicParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update research project topic params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateResearchProjectTopicParams) WithDefaults() *UpdateResearchProjectTopicParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update research project topic params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateResearchProjectTopicParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update research project topic params +func (o *UpdateResearchProjectTopicParams) WithTimeout(timeout time.Duration) *UpdateResearchProjectTopicParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update research project topic params +func (o *UpdateResearchProjectTopicParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update research project topic params +func (o *UpdateResearchProjectTopicParams) WithContext(ctx context.Context) *UpdateResearchProjectTopicParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update research project topic params +func (o *UpdateResearchProjectTopicParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update research project topic params +func (o *UpdateResearchProjectTopicParams) WithHTTPClient(client *http.Client) *UpdateResearchProjectTopicParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update research project topic params +func (o *UpdateResearchProjectTopicParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update research project topic params +func (o *UpdateResearchProjectTopicParams) WithID(id *string) *UpdateResearchProjectTopicParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update research project topic params +func (o *UpdateResearchProjectTopicParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateResearchProjectTopicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_research_project_topic_responses.go b/api/members/members_client/operations/update_research_project_topic_responses.go new file mode 100644 index 0000000..0156508 --- /dev/null +++ b/api/members/members_client/operations/update_research_project_topic_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateResearchProjectTopicReader is a Reader for the UpdateResearchProjectTopic structure. +type UpdateResearchProjectTopicReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateResearchProjectTopicReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateResearchProjectTopicOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateResearchProjectTopicOK creates a UpdateResearchProjectTopicOK with default headers values +func NewUpdateResearchProjectTopicOK() *UpdateResearchProjectTopicOK { + return &UpdateResearchProjectTopicOK{} +} + +/* +UpdateResearchProjectTopicOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateResearchProjectTopicOK struct { +} + +// IsSuccess returns true when this update research project topic o k response has a 2xx status code +func (o *UpdateResearchProjectTopicOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update research project topic o k response has a 3xx status code +func (o *UpdateResearchProjectTopicOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update research project topic o k response has a 4xx status code +func (o *UpdateResearchProjectTopicOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update research project topic o k response has a 5xx status code +func (o *UpdateResearchProjectTopicOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update research project topic o k response a status code equal to that given +func (o *UpdateResearchProjectTopicOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update research project topic o k response +func (o *UpdateResearchProjectTopicOK) Code() int { + return 200 +} + +func (o *UpdateResearchProjectTopicOK) Error() string { + return fmt.Sprintf("[PUT /researchprojecttopics][%d] updateResearchProjectTopicOK ", 200) +} + +func (o *UpdateResearchProjectTopicOK) String() string { + return fmt.Sprintf("[PUT /researchprojecttopics][%d] updateResearchProjectTopicOK ", 200) +} + +func (o *UpdateResearchProjectTopicOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_ticket_parameters.go b/api/members/members_client/operations/update_ticket_parameters.go new file mode 100644 index 0000000..8e4815c --- /dev/null +++ b/api/members/members_client/operations/update_ticket_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateTicketParams creates a new UpdateTicketParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateTicketParams() *UpdateTicketParams { + return &UpdateTicketParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateTicketParamsWithTimeout creates a new UpdateTicketParams object +// with the ability to set a timeout on a request. +func NewUpdateTicketParamsWithTimeout(timeout time.Duration) *UpdateTicketParams { + return &UpdateTicketParams{ + timeout: timeout, + } +} + +// NewUpdateTicketParamsWithContext creates a new UpdateTicketParams object +// with the ability to set a context for a request. +func NewUpdateTicketParamsWithContext(ctx context.Context) *UpdateTicketParams { + return &UpdateTicketParams{ + Context: ctx, + } +} + +// NewUpdateTicketParamsWithHTTPClient creates a new UpdateTicketParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateTicketParamsWithHTTPClient(client *http.Client) *UpdateTicketParams { + return &UpdateTicketParams{ + HTTPClient: client, + } +} + +/* +UpdateTicketParams contains all the parameters to send to the API endpoint + + for the update ticket operation. + + Typically these are written to a http.Request. +*/ +type UpdateTicketParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update ticket params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateTicketParams) WithDefaults() *UpdateTicketParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update ticket params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateTicketParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update ticket params +func (o *UpdateTicketParams) WithTimeout(timeout time.Duration) *UpdateTicketParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update ticket params +func (o *UpdateTicketParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update ticket params +func (o *UpdateTicketParams) WithContext(ctx context.Context) *UpdateTicketParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update ticket params +func (o *UpdateTicketParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update ticket params +func (o *UpdateTicketParams) WithHTTPClient(client *http.Client) *UpdateTicketParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update ticket params +func (o *UpdateTicketParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update ticket params +func (o *UpdateTicketParams) WithID(id *string) *UpdateTicketParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update ticket params +func (o *UpdateTicketParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_ticket_responses.go b/api/members/members_client/operations/update_ticket_responses.go new file mode 100644 index 0000000..ad69b42 --- /dev/null +++ b/api/members/members_client/operations/update_ticket_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateTicketReader is a Reader for the UpdateTicket structure. +type UpdateTicketReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateTicketReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateTicketOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateTicketOK creates a UpdateTicketOK with default headers values +func NewUpdateTicketOK() *UpdateTicketOK { + return &UpdateTicketOK{} +} + +/* +UpdateTicketOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateTicketOK struct { +} + +// IsSuccess returns true when this update ticket o k response has a 2xx status code +func (o *UpdateTicketOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update ticket o k response has a 3xx status code +func (o *UpdateTicketOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update ticket o k response has a 4xx status code +func (o *UpdateTicketOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update ticket o k response has a 5xx status code +func (o *UpdateTicketOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update ticket o k response a status code equal to that given +func (o *UpdateTicketOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update ticket o k response +func (o *UpdateTicketOK) Code() int { + return 200 +} + +func (o *UpdateTicketOK) Error() string { + return fmt.Sprintf("[PUT /tickets][%d] updateTicketOK ", 200) +} + +func (o *UpdateTicketOK) String() string { + return fmt.Sprintf("[PUT /tickets][%d] updateTicketOK ", 200) +} + +func (o *UpdateTicketOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_client/operations/update_transaction_parameters.go b/api/members/members_client/operations/update_transaction_parameters.go new file mode 100644 index 0000000..e3c81f6 --- /dev/null +++ b/api/members/members_client/operations/update_transaction_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewUpdateTransactionParams creates a new UpdateTransactionParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateTransactionParams() *UpdateTransactionParams { + return &UpdateTransactionParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateTransactionParamsWithTimeout creates a new UpdateTransactionParams object +// with the ability to set a timeout on a request. +func NewUpdateTransactionParamsWithTimeout(timeout time.Duration) *UpdateTransactionParams { + return &UpdateTransactionParams{ + timeout: timeout, + } +} + +// NewUpdateTransactionParamsWithContext creates a new UpdateTransactionParams object +// with the ability to set a context for a request. +func NewUpdateTransactionParamsWithContext(ctx context.Context) *UpdateTransactionParams { + return &UpdateTransactionParams{ + Context: ctx, + } +} + +// NewUpdateTransactionParamsWithHTTPClient creates a new UpdateTransactionParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateTransactionParamsWithHTTPClient(client *http.Client) *UpdateTransactionParams { + return &UpdateTransactionParams{ + HTTPClient: client, + } +} + +/* +UpdateTransactionParams contains all the parameters to send to the API endpoint + + for the update transaction operation. + + Typically these are written to a http.Request. +*/ +type UpdateTransactionParams struct { + + /* ID. + + Unique Record ID + */ + ID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update transaction params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateTransactionParams) WithDefaults() *UpdateTransactionParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update transaction params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateTransactionParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update transaction params +func (o *UpdateTransactionParams) WithTimeout(timeout time.Duration) *UpdateTransactionParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update transaction params +func (o *UpdateTransactionParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update transaction params +func (o *UpdateTransactionParams) WithContext(ctx context.Context) *UpdateTransactionParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update transaction params +func (o *UpdateTransactionParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update transaction params +func (o *UpdateTransactionParams) WithHTTPClient(client *http.Client) *UpdateTransactionParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update transaction params +func (o *UpdateTransactionParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithID adds the id to the update transaction params +func (o *UpdateTransactionParams) WithID(id *string) *UpdateTransactionParams { + o.SetID(id) + return o +} + +// SetID adds the id to the update transaction params +func (o *UpdateTransactionParams) SetID(id *string) { + o.ID = id +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateTransactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ID != nil { + + // query param id + var qrID string + + if o.ID != nil { + qrID = *o.ID + } + qID := qrID + if qID != "" { + + if err := r.SetQueryParam("id", qID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/members/members_client/operations/update_transaction_responses.go b/api/members/members_client/operations/update_transaction_responses.go new file mode 100644 index 0000000..97f6790 --- /dev/null +++ b/api/members/members_client/operations/update_transaction_responses.go @@ -0,0 +1,92 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" +) + +// UpdateTransactionReader is a Reader for the UpdateTransaction structure. +type UpdateTransactionReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateTransactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateTransactionOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUpdateTransactionOK creates a UpdateTransactionOK with default headers values +func NewUpdateTransactionOK() *UpdateTransactionOK { + return &UpdateTransactionOK{} +} + +/* +UpdateTransactionOK describes a response with status code 200, with default header values. + +OK +*/ +type UpdateTransactionOK struct { +} + +// IsSuccess returns true when this update transaction o k response has a 2xx status code +func (o *UpdateTransactionOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update transaction o k response has a 3xx status code +func (o *UpdateTransactionOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update transaction o k response has a 4xx status code +func (o *UpdateTransactionOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update transaction o k response has a 5xx status code +func (o *UpdateTransactionOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update transaction o k response a status code equal to that given +func (o *UpdateTransactionOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update transaction o k response +func (o *UpdateTransactionOK) Code() int { + return 200 +} + +func (o *UpdateTransactionOK) Error() string { + return fmt.Sprintf("[PUT /transactions][%d] updateTransactionOK ", 200) +} + +func (o *UpdateTransactionOK) String() string { + return fmt.Sprintf("[PUT /transactions][%d] updateTransactionOK ", 200) +} + +func (o *UpdateTransactionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} diff --git a/api/members/members_models/attendee.go b/api/members/members_models/attendee.go new file mode 100644 index 0000000..eb8be44 --- /dev/null +++ b/api/members/members_models/attendee.go @@ -0,0 +1,72 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Attendee attendee +// +// swagger:model Attendee +type Attendee struct { + + // checkin status + CheckinStatus int64 `json:"CheckinStatus,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // event ID + EventID string `json:"EventID,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // ticket ID + TicketID string `json:"TicketID,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this attendee +func (m *Attendee) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this attendee based on context it is used +func (m *Attendee) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Attendee) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Attendee) UnmarshalBinary(b []byte) error { + var res Attendee + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/attendee_request.go b/api/members/members_models/attendee_request.go new file mode 100644 index 0000000..a627be2 --- /dev/null +++ b/api/members/members_models/attendee_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// AttendeeRequest An array of Attendee objects +// +// swagger:model AttendeeRequest +type AttendeeRequest struct { + + // data + Data []*Attendee `json:"Data"` +} + +// Validate validates this attendee request +func (m *AttendeeRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *AttendeeRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this attendee request based on the context it is used +func (m *AttendeeRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *AttendeeRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *AttendeeRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *AttendeeRequest) UnmarshalBinary(b []byte) error { + var res AttendeeRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/attendee_response.go b/api/members/members_models/attendee_response.go new file mode 100644 index 0000000..36407af --- /dev/null +++ b/api/members/members_models/attendee_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// AttendeeResponse An array of Attendee objects +// +// swagger:model AttendeeResponse +type AttendeeResponse struct { + + // data + Data []*Attendee `json:"Data"` +} + +// Validate validates this attendee response +func (m *AttendeeResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *AttendeeResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this attendee response based on the context it is used +func (m *AttendeeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *AttendeeResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *AttendeeResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *AttendeeResponse) UnmarshalBinary(b []byte) error { + var res AttendeeResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/certificate.go b/api/members/members_models/certificate.go new file mode 100644 index 0000000..4a47959 --- /dev/null +++ b/api/members/members_models/certificate.go @@ -0,0 +1,78 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Certificate certificate +// +// swagger:model Certificate +type Certificate struct { + + // certificate template + CertificateTemplate string `json:"CertificateTemplate,omitempty"` + + // course ID + CourseID string `json:"CourseID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // description + Description *string `json:"Description,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // title + Title string `json:"Title,omitempty"` +} + +// Validate validates this certificate +func (m *Certificate) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this certificate based on context it is used +func (m *Certificate) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Certificate) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Certificate) UnmarshalBinary(b []byte) error { + var res Certificate + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/certificate_request.go b/api/members/members_models/certificate_request.go new file mode 100644 index 0000000..c88414f --- /dev/null +++ b/api/members/members_models/certificate_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CertificateRequest An array of Certificate objects +// +// swagger:model CertificateRequest +type CertificateRequest struct { + + // data + Data []*Certificate `json:"Data"` +} + +// Validate validates this certificate request +func (m *CertificateRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CertificateRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this certificate request based on the context it is used +func (m *CertificateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CertificateRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CertificateRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CertificateRequest) UnmarshalBinary(b []byte) error { + var res CertificateRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/certificate_response.go b/api/members/members_models/certificate_response.go new file mode 100644 index 0000000..59ce055 --- /dev/null +++ b/api/members/members_models/certificate_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CertificateResponse An array of Certificate objects +// +// swagger:model CertificateResponse +type CertificateResponse struct { + + // data + Data []*Certificate `json:"Data"` +} + +// Validate validates this certificate response +func (m *CertificateResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CertificateResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this certificate response based on the context it is used +func (m *CertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CertificateResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CertificateResponse) UnmarshalBinary(b []byte) error { + var res CertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course.go b/api/members/members_models/course.go new file mode 100644 index 0000000..3960a72 --- /dev/null +++ b/api/members/members_models/course.go @@ -0,0 +1,81 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Course course +// +// swagger:model Course +type Course struct { + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // description + Description string `json:"Description,omitempty"` + + // fulldescription + Fulldescription string `json:"Fulldescription,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // instructor ID + InstructorID string `json:"InstructorID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // price + Price float64 `json:"Price,omitempty"` + + // title + Title string `json:"Title,omitempty"` +} + +// Validate validates this course +func (m *Course) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this course based on context it is used +func (m *Course) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Course) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Course) UnmarshalBinary(b []byte) error { + var res Course + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_lesson.go b/api/members/members_models/course_lesson.go new file mode 100644 index 0000000..f369111 --- /dev/null +++ b/api/members/members_models/course_lesson.go @@ -0,0 +1,81 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseLesson course lesson +// +// swagger:model CourseLesson +type CourseLesson struct { + + // content + Content string `json:"Content,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // order + Order int64 `json:"Order,omitempty"` + + // section ID + SectionID string `json:"SectionID,omitempty"` + + // title + Title string `json:"Title,omitempty"` + + // video URL + VideoURL string `json:"VideoURL,omitempty"` +} + +// Validate validates this course lesson +func (m *CourseLesson) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this course lesson based on context it is used +func (m *CourseLesson) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CourseLesson) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseLesson) UnmarshalBinary(b []byte) error { + var res CourseLesson + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_lesson_request.go b/api/members/members_models/course_lesson_request.go new file mode 100644 index 0000000..253e8ea --- /dev/null +++ b/api/members/members_models/course_lesson_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseLessonRequest An array of CourseLesson objects +// +// swagger:model CourseLessonRequest +type CourseLessonRequest struct { + + // data + Data []*CourseLesson `json:"Data"` +} + +// Validate validates this course lesson request +func (m *CourseLessonRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseLessonRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this course lesson request based on the context it is used +func (m *CourseLessonRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseLessonRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CourseLessonRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseLessonRequest) UnmarshalBinary(b []byte) error { + var res CourseLessonRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_lesson_response.go b/api/members/members_models/course_lesson_response.go new file mode 100644 index 0000000..ea113b0 --- /dev/null +++ b/api/members/members_models/course_lesson_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseLessonResponse An array of CourseLesson objects +// +// swagger:model CourseLessonResponse +type CourseLessonResponse struct { + + // data + Data []*CourseLesson `json:"Data"` +} + +// Validate validates this course lesson response +func (m *CourseLessonResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseLessonResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this course lesson response based on the context it is used +func (m *CourseLessonResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseLessonResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CourseLessonResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseLessonResponse) UnmarshalBinary(b []byte) error { + var res CourseLessonResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_request.go b/api/members/members_models/course_request.go new file mode 100644 index 0000000..4a7240b --- /dev/null +++ b/api/members/members_models/course_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseRequest An array of Course objects +// +// swagger:model CourseRequest +type CourseRequest struct { + + // data + Data []*Course `json:"Data"` +} + +// Validate validates this course request +func (m *CourseRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this course request based on the context it is used +func (m *CourseRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CourseRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseRequest) UnmarshalBinary(b []byte) error { + var res CourseRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_response.go b/api/members/members_models/course_response.go new file mode 100644 index 0000000..c6f5a0d --- /dev/null +++ b/api/members/members_models/course_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseResponse An array of Course objects +// +// swagger:model CourseResponse +type CourseResponse struct { + + // data + Data []*Course `json:"Data"` +} + +// Validate validates this course response +func (m *CourseResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this course response based on the context it is used +func (m *CourseResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CourseResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseResponse) UnmarshalBinary(b []byte) error { + var res CourseResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_section.go b/api/members/members_models/course_section.go new file mode 100644 index 0000000..8c57611 --- /dev/null +++ b/api/members/members_models/course_section.go @@ -0,0 +1,78 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseSection course section +// +// swagger:model CourseSection +type CourseSection struct { + + // course ID + CourseID string `json:"CourseID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // description + Description string `json:"Description,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // order + Order int64 `json:"Order,omitempty"` + + // title + Title string `json:"Title,omitempty"` +} + +// Validate validates this course section +func (m *CourseSection) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this course section based on context it is used +func (m *CourseSection) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *CourseSection) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseSection) UnmarshalBinary(b []byte) error { + var res CourseSection + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_section_request.go b/api/members/members_models/course_section_request.go new file mode 100644 index 0000000..840dd8c --- /dev/null +++ b/api/members/members_models/course_section_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseSectionRequest An array of CourseSection objects +// +// swagger:model CourseSectionRequest +type CourseSectionRequest struct { + + // data + Data []*CourseSection `json:"Data"` +} + +// Validate validates this course section request +func (m *CourseSectionRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseSectionRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this course section request based on the context it is used +func (m *CourseSectionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseSectionRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CourseSectionRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseSectionRequest) UnmarshalBinary(b []byte) error { + var res CourseSectionRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/course_section_response.go b/api/members/members_models/course_section_response.go new file mode 100644 index 0000000..d3be635 --- /dev/null +++ b/api/members/members_models/course_section_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// CourseSectionResponse An array of CourseSection objects +// +// swagger:model CourseSectionResponse +type CourseSectionResponse struct { + + // data + Data []*CourseSection `json:"Data"` +} + +// Validate validates this course section response +func (m *CourseSectionResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseSectionResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this course section response based on the context it is used +func (m *CourseSectionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *CourseSectionResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *CourseSectionResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *CourseSectionResponse) UnmarshalBinary(b []byte) error { + var res CourseSectionResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/enrollment.go b/api/members/members_models/enrollment.go new file mode 100644 index 0000000..f69a9cf --- /dev/null +++ b/api/members/members_models/enrollment.go @@ -0,0 +1,78 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Enrollment enrollment +// +// swagger:model Enrollment +type Enrollment struct { + + // completed + Completed int64 `json:"Completed,omitempty"` + + // course ID + CourseID string `json:"CourseID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // enrollment date + EnrollmentDate string `json:"EnrollmentDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this enrollment +func (m *Enrollment) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this enrollment based on context it is used +func (m *Enrollment) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Enrollment) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Enrollment) UnmarshalBinary(b []byte) error { + var res Enrollment + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/enrollment_request.go b/api/members/members_models/enrollment_request.go new file mode 100644 index 0000000..e407d84 --- /dev/null +++ b/api/members/members_models/enrollment_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EnrollmentRequest An array of Enrollment objects +// +// swagger:model EnrollmentRequest +type EnrollmentRequest struct { + + // data + Data []*Enrollment `json:"Data"` +} + +// Validate validates this enrollment request +func (m *EnrollmentRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EnrollmentRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this enrollment request based on the context it is used +func (m *EnrollmentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EnrollmentRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EnrollmentRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EnrollmentRequest) UnmarshalBinary(b []byte) error { + var res EnrollmentRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/enrollment_response.go b/api/members/members_models/enrollment_response.go new file mode 100644 index 0000000..d23aabf --- /dev/null +++ b/api/members/members_models/enrollment_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EnrollmentResponse An array of Enrollment objects +// +// swagger:model EnrollmentResponse +type EnrollmentResponse struct { + + // data + Data []*Enrollment `json:"Data"` +} + +// Validate validates this enrollment response +func (m *EnrollmentResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EnrollmentResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this enrollment response based on the context it is used +func (m *EnrollmentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EnrollmentResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EnrollmentResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EnrollmentResponse) UnmarshalBinary(b []byte) error { + var res EnrollmentResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event.go b/api/members/members_models/event.go new file mode 100644 index 0000000..42a3769 --- /dev/null +++ b/api/members/members_models/event.go @@ -0,0 +1,81 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Event event +// +// swagger:model Event +type Event struct { + + // capacity + Capacity *int64 `json:"Capacity,omitempty"` + + // createdat + Createdat *string `json:"Createdat,omitempty"` + + // description + Description *string `json:"Description,omitempty"` + + // end date + EndDate string `json:"EndDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // location + Location string `json:"Location,omitempty"` + + // organizeruser ID + OrganizeruserID string `json:"OrganizeruserID,omitempty"` + + // start date + StartDate string `json:"StartDate,omitempty"` + + // title + Title string `json:"Title,omitempty"` + + // up datedat + UpDatedat *string `json:"UpDatedat,omitempty"` +} + +// Validate validates this event +func (m *Event) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this event based on context it is used +func (m *Event) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Event) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Event) UnmarshalBinary(b []byte) error { + var res Event + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_category.go b/api/members/members_models/event_category.go new file mode 100644 index 0000000..a6605b5 --- /dev/null +++ b/api/members/members_models/event_category.go @@ -0,0 +1,63 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventCategory event category +// +// swagger:model EventCategory +type EventCategory struct { + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // name + Name string `json:"Name,omitempty"` +} + +// Validate validates this event category +func (m *EventCategory) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this event category based on context it is used +func (m *EventCategory) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *EventCategory) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventCategory) UnmarshalBinary(b []byte) error { + var res EventCategory + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_category_assignment.go b/api/members/members_models/event_category_assignment.go new file mode 100644 index 0000000..6fd2ac0 --- /dev/null +++ b/api/members/members_models/event_category_assignment.go @@ -0,0 +1,66 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventCategoryAssignment event category assignment +// +// swagger:model EventCategoryAssignment +type EventCategoryAssignment struct { + + // createdat + Createdat *string `json:"Createdat,omitempty"` + + // event category ID + EventCategoryID string `json:"EventCategoryID,omitempty"` + + // event ID + EventID string `json:"EventID,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // up datedat + UpDatedat *string `json:"UpDatedat,omitempty"` +} + +// Validate validates this event category assignment +func (m *EventCategoryAssignment) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this event category assignment based on context it is used +func (m *EventCategoryAssignment) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *EventCategoryAssignment) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventCategoryAssignment) UnmarshalBinary(b []byte) error { + var res EventCategoryAssignment + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_category_assignment_request.go b/api/members/members_models/event_category_assignment_request.go new file mode 100644 index 0000000..632d110 --- /dev/null +++ b/api/members/members_models/event_category_assignment_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventCategoryAssignmentRequest An array of EventCategoryAssignment objects +// +// swagger:model EventCategoryAssignmentRequest +type EventCategoryAssignmentRequest struct { + + // data + Data []*EventCategoryAssignment `json:"Data"` +} + +// Validate validates this event category assignment request +func (m *EventCategoryAssignmentRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryAssignmentRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this event category assignment request based on the context it is used +func (m *EventCategoryAssignmentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryAssignmentRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EventCategoryAssignmentRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventCategoryAssignmentRequest) UnmarshalBinary(b []byte) error { + var res EventCategoryAssignmentRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_category_assignment_response.go b/api/members/members_models/event_category_assignment_response.go new file mode 100644 index 0000000..2e5c8e3 --- /dev/null +++ b/api/members/members_models/event_category_assignment_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventCategoryAssignmentResponse An array of EventCategoryAssignment objects +// +// swagger:model EventCategoryAssignmentResponse +type EventCategoryAssignmentResponse struct { + + // data + Data []*EventCategoryAssignment `json:"Data"` +} + +// Validate validates this event category assignment response +func (m *EventCategoryAssignmentResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryAssignmentResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this event category assignment response based on the context it is used +func (m *EventCategoryAssignmentResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryAssignmentResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EventCategoryAssignmentResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventCategoryAssignmentResponse) UnmarshalBinary(b []byte) error { + var res EventCategoryAssignmentResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_category_request.go b/api/members/members_models/event_category_request.go new file mode 100644 index 0000000..1d52d98 --- /dev/null +++ b/api/members/members_models/event_category_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventCategoryRequest An array of EventCategory objects +// +// swagger:model EventCategoryRequest +type EventCategoryRequest struct { + + // data + Data []*EventCategory `json:"Data"` +} + +// Validate validates this event category request +func (m *EventCategoryRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this event category request based on the context it is used +func (m *EventCategoryRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EventCategoryRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventCategoryRequest) UnmarshalBinary(b []byte) error { + var res EventCategoryRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_category_response.go b/api/members/members_models/event_category_response.go new file mode 100644 index 0000000..2278e90 --- /dev/null +++ b/api/members/members_models/event_category_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventCategoryResponse An array of EventCategory objects +// +// swagger:model EventCategoryResponse +type EventCategoryResponse struct { + + // data + Data []*EventCategory `json:"Data"` +} + +// Validate validates this event category response +func (m *EventCategoryResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this event category response based on the context it is used +func (m *EventCategoryResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventCategoryResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EventCategoryResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventCategoryResponse) UnmarshalBinary(b []byte) error { + var res EventCategoryResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_request.go b/api/members/members_models/event_request.go new file mode 100644 index 0000000..8e03b96 --- /dev/null +++ b/api/members/members_models/event_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventRequest An array of Event objects +// +// swagger:model EventRequest +type EventRequest struct { + + // data + Data []*Event `json:"Data"` +} + +// Validate validates this event request +func (m *EventRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this event request based on the context it is used +func (m *EventRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EventRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventRequest) UnmarshalBinary(b []byte) error { + var res EventRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/event_response.go b/api/members/members_models/event_response.go new file mode 100644 index 0000000..7d21a22 --- /dev/null +++ b/api/members/members_models/event_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// EventResponse An array of Event objects +// +// swagger:model EventResponse +type EventResponse struct { + + // data + Data []*Event `json:"Data"` +} + +// Validate validates this event response +func (m *EventResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this event response based on the context it is used +func (m *EventResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *EventResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *EventResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *EventResponse) UnmarshalBinary(b []byte) error { + var res EventResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/favorite.go b/api/members/members_models/favorite.go new file mode 100644 index 0000000..6f5db60 --- /dev/null +++ b/api/members/members_models/favorite.go @@ -0,0 +1,87 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Favorite favorite +// +// swagger:model Favorite +type Favorite struct { + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // description + Description string `json:"Description,omitempty"` + + // favorite ID + FavoriteID string `json:"FavoriteID,omitempty"` + + // favoritetype + Favoritetype *string `json:"Favoritetype,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // name + Name string `json:"Name,omitempty"` + + // path + Path string `json:"Path,omitempty"` + + // tenant ID + TenantID string `json:"TenantID,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this favorite +func (m *Favorite) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this favorite based on context it is used +func (m *Favorite) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Favorite) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Favorite) UnmarshalBinary(b []byte) error { + var res Favorite + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/favorite_request.go b/api/members/members_models/favorite_request.go new file mode 100644 index 0000000..056184e --- /dev/null +++ b/api/members/members_models/favorite_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// FavoriteRequest An array of Favorite objects +// +// swagger:model FavoriteRequest +type FavoriteRequest struct { + + // data + Data []*Favorite `json:"Data"` +} + +// Validate validates this favorite request +func (m *FavoriteRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *FavoriteRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this favorite request based on the context it is used +func (m *FavoriteRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *FavoriteRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *FavoriteRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *FavoriteRequest) UnmarshalBinary(b []byte) error { + var res FavoriteRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/favorite_response.go b/api/members/members_models/favorite_response.go new file mode 100644 index 0000000..bc173d7 --- /dev/null +++ b/api/members/members_models/favorite_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// FavoriteResponse An array of Favorite objects +// +// swagger:model FavoriteResponse +type FavoriteResponse struct { + + // data + Data []*Favorite `json:"Data"` +} + +// Validate validates this favorite response +func (m *FavoriteResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *FavoriteResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this favorite response based on the context it is used +func (m *FavoriteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *FavoriteResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *FavoriteResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *FavoriteResponse) UnmarshalBinary(b []byte) error { + var res FavoriteResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/invoice.go b/api/members/members_models/invoice.go new file mode 100644 index 0000000..a0ed7d0 --- /dev/null +++ b/api/members/members_models/invoice.go @@ -0,0 +1,90 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Invoice invoice +// +// swagger:model Invoice +type Invoice struct { + + // amount + Amount float64 `json:"Amount,omitempty"` + + // course ID + CourseID string `json:"CourseID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // currency + Currency string `json:"Currency,omitempty"` + + // due date + DueDate string `json:"DueDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // invoicenumber + Invoicenumber string `json:"Invoicenumber,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // status + Status string `json:"Status,omitempty"` + + // transaction ID + TransactionID string `json:"TransactionID,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this invoice +func (m *Invoice) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this invoice based on context it is used +func (m *Invoice) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Invoice) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Invoice) UnmarshalBinary(b []byte) error { + var res Invoice + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/invoice_request.go b/api/members/members_models/invoice_request.go new file mode 100644 index 0000000..af65979 --- /dev/null +++ b/api/members/members_models/invoice_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// InvoiceRequest An array of Invoice objects +// +// swagger:model InvoiceRequest +type InvoiceRequest struct { + + // data + Data []*Invoice `json:"Data"` +} + +// Validate validates this invoice request +func (m *InvoiceRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *InvoiceRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this invoice request based on the context it is used +func (m *InvoiceRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *InvoiceRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *InvoiceRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *InvoiceRequest) UnmarshalBinary(b []byte) error { + var res InvoiceRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/invoice_response.go b/api/members/members_models/invoice_response.go new file mode 100644 index 0000000..aaf7768 --- /dev/null +++ b/api/members/members_models/invoice_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// InvoiceResponse An array of Invoice objects +// +// swagger:model InvoiceResponse +type InvoiceResponse struct { + + // data + Data []*Invoice `json:"Data"` +} + +// Validate validates this invoice response +func (m *InvoiceResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *InvoiceResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this invoice response based on the context it is used +func (m *InvoiceResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *InvoiceResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *InvoiceResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *InvoiceResponse) UnmarshalBinary(b []byte) error { + var res InvoiceResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/issued_certificate.go b/api/members/members_models/issued_certificate.go new file mode 100644 index 0000000..0791f1c --- /dev/null +++ b/api/members/members_models/issued_certificate.go @@ -0,0 +1,84 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// IssuedCertificate issued certificate +// +// swagger:model IssuedCertificate +type IssuedCertificate struct { + + // certificate ID + CertificateID string `json:"CertificateID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // enrollment ID + EnrollmentID string `json:"EnrollmentID,omitempty"` + + // expiration date + ExpirationDate *string `json:"ExpirationDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // issue date + IssueDate string `json:"IssueDate,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` + + // verification code + VerificationCode string `json:"VerificationCode,omitempty"` +} + +// Validate validates this issued certificate +func (m *IssuedCertificate) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this issued certificate based on context it is used +func (m *IssuedCertificate) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *IssuedCertificate) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *IssuedCertificate) UnmarshalBinary(b []byte) error { + var res IssuedCertificate + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/issued_certificate_request.go b/api/members/members_models/issued_certificate_request.go new file mode 100644 index 0000000..a26cb6b --- /dev/null +++ b/api/members/members_models/issued_certificate_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// IssuedCertificateRequest An array of IssuedCertificate objects +// +// swagger:model IssuedCertificateRequest +type IssuedCertificateRequest struct { + + // data + Data []*IssuedCertificate `json:"Data"` +} + +// Validate validates this issued certificate request +func (m *IssuedCertificateRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *IssuedCertificateRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this issued certificate request based on the context it is used +func (m *IssuedCertificateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *IssuedCertificateRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *IssuedCertificateRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *IssuedCertificateRequest) UnmarshalBinary(b []byte) error { + var res IssuedCertificateRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/issued_certificate_response.go b/api/members/members_models/issued_certificate_response.go new file mode 100644 index 0000000..1281b06 --- /dev/null +++ b/api/members/members_models/issued_certificate_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// IssuedCertificateResponse An array of IssuedCertificate objects +// +// swagger:model IssuedCertificateResponse +type IssuedCertificateResponse struct { + + // data + Data []*IssuedCertificate `json:"Data"` +} + +// Validate validates this issued certificate response +func (m *IssuedCertificateResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *IssuedCertificateResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this issued certificate response based on the context it is used +func (m *IssuedCertificateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *IssuedCertificateResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *IssuedCertificateResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *IssuedCertificateResponse) UnmarshalBinary(b []byte) error { + var res IssuedCertificateResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/lesson_progress.go b/api/members/members_models/lesson_progress.go new file mode 100644 index 0000000..c23ef26 --- /dev/null +++ b/api/members/members_models/lesson_progress.go @@ -0,0 +1,81 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// LessonProgress lesson progress +// +// swagger:model LessonProgress +type LessonProgress struct { + + // completed + Completed int64 `json:"Completed,omitempty"` + + // completedat + Completedat *string `json:"Completedat,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // enrollment ID + EnrollmentID string `json:"EnrollmentID,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // lesson ID + LessonID string `json:"LessonID,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this lesson progress +func (m *LessonProgress) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this lesson progress based on context it is used +func (m *LessonProgress) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *LessonProgress) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *LessonProgress) UnmarshalBinary(b []byte) error { + var res LessonProgress + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/lesson_progress_request.go b/api/members/members_models/lesson_progress_request.go new file mode 100644 index 0000000..0365cb2 --- /dev/null +++ b/api/members/members_models/lesson_progress_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// LessonProgressRequest An array of LessonProgress objects +// +// swagger:model LessonProgressRequest +type LessonProgressRequest struct { + + // data + Data []*LessonProgress `json:"Data"` +} + +// Validate validates this lesson progress request +func (m *LessonProgressRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *LessonProgressRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this lesson progress request based on the context it is used +func (m *LessonProgressRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *LessonProgressRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *LessonProgressRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *LessonProgressRequest) UnmarshalBinary(b []byte) error { + var res LessonProgressRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/lesson_progress_response.go b/api/members/members_models/lesson_progress_response.go new file mode 100644 index 0000000..d8f7881 --- /dev/null +++ b/api/members/members_models/lesson_progress_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// LessonProgressResponse An array of LessonProgress objects +// +// swagger:model LessonProgressResponse +type LessonProgressResponse struct { + + // data + Data []*LessonProgress `json:"Data"` +} + +// Validate validates this lesson progress response +func (m *LessonProgressResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *LessonProgressResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this lesson progress response based on the context it is used +func (m *LessonProgressResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *LessonProgressResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *LessonProgressResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *LessonProgressResponse) UnmarshalBinary(b []byte) error { + var res LessonProgressResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/order.go b/api/members/members_models/order.go new file mode 100644 index 0000000..c401b2c --- /dev/null +++ b/api/members/members_models/order.go @@ -0,0 +1,78 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Order order +// +// swagger:model Order +type Order struct { + + // amountpa ID + AmountpaID *float64 `json:"AmountpaID,omitempty"` + + // createdat + Createdat *string `json:"Createdat,omitempty"` + + // event ID + EventID string `json:"EventID,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // order status + OrderStatus string `json:"OrderStatus,omitempty"` + + // payment method + PaymentMethod *string `json:"PaymentMethod,omitempty"` + + // ticket ID + TicketID string `json:"TicketID,omitempty"` + + // up datedat + UpDatedat *string `json:"UpDatedat,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this order +func (m *Order) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this order based on context it is used +func (m *Order) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Order) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Order) UnmarshalBinary(b []byte) error { + var res Order + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/order_request.go b/api/members/members_models/order_request.go new file mode 100644 index 0000000..d6b2609 --- /dev/null +++ b/api/members/members_models/order_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// OrderRequest An array of Order objects +// +// swagger:model OrderRequest +type OrderRequest struct { + + // data + Data []*Order `json:"Data"` +} + +// Validate validates this order request +func (m *OrderRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *OrderRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this order request based on the context it is used +func (m *OrderRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *OrderRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *OrderRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *OrderRequest) UnmarshalBinary(b []byte) error { + var res OrderRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/order_response.go b/api/members/members_models/order_response.go new file mode 100644 index 0000000..f027d4b --- /dev/null +++ b/api/members/members_models/order_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// OrderResponse An array of Order objects +// +// swagger:model OrderResponse +type OrderResponse struct { + + // data + Data []*Order `json:"Data"` +} + +// Validate validates this order response +func (m *OrderResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *OrderResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this order response based on the context it is used +func (m *OrderResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *OrderResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *OrderResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *OrderResponse) UnmarshalBinary(b []byte) error { + var res OrderResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/payment_method.go b/api/members/members_models/payment_method.go new file mode 100644 index 0000000..ef99a01 --- /dev/null +++ b/api/members/members_models/payment_method.go @@ -0,0 +1,87 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// PaymentMethod payment method +// +// swagger:model PaymentMethod +type PaymentMethod struct { + + // card holder name + CardHolderName string `json:"CardHolderName,omitempty"` + + // card number + CardNumber string `json:"CardNumber,omitempty"` + + // card type + CardType string `json:"CardType,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // expiration month + ExpirationMonth int64 `json:"ExpirationMonth,omitempty"` + + // expiration year + ExpirationYear int64 `json:"ExpirationYear,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // isdefault + Isdefault int64 `json:"Isdefault,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this payment method +func (m *PaymentMethod) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this payment method based on context it is used +func (m *PaymentMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *PaymentMethod) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PaymentMethod) UnmarshalBinary(b []byte) error { + var res PaymentMethod + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/payment_method_request.go b/api/members/members_models/payment_method_request.go new file mode 100644 index 0000000..96de16c --- /dev/null +++ b/api/members/members_models/payment_method_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// PaymentMethodRequest An array of PaymentMethod objects +// +// swagger:model PaymentMethodRequest +type PaymentMethodRequest struct { + + // data + Data []*PaymentMethod `json:"Data"` +} + +// Validate validates this payment method request +func (m *PaymentMethodRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PaymentMethodRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this payment method request based on the context it is used +func (m *PaymentMethodRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PaymentMethodRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *PaymentMethodRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PaymentMethodRequest) UnmarshalBinary(b []byte) error { + var res PaymentMethodRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/payment_method_response.go b/api/members/members_models/payment_method_response.go new file mode 100644 index 0000000..9e53bd9 --- /dev/null +++ b/api/members/members_models/payment_method_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// PaymentMethodResponse An array of PaymentMethod objects +// +// swagger:model PaymentMethodResponse +type PaymentMethodResponse struct { + + // data + Data []*PaymentMethod `json:"Data"` +} + +// Validate validates this payment method response +func (m *PaymentMethodResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PaymentMethodResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this payment method response based on the context it is used +func (m *PaymentMethodResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PaymentMethodResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *PaymentMethodResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PaymentMethodResponse) UnmarshalBinary(b []byte) error { + var res PaymentMethodResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project.go b/api/members/members_models/research_project.go new file mode 100644 index 0000000..d2042b4 --- /dev/null +++ b/api/members/members_models/research_project.go @@ -0,0 +1,81 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProject research project +// +// swagger:model ResearchProject +type ResearchProject struct { + + // account ID + AccountID string `json:"AccountID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // description + Description string `json:"Description,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // name + Name string `json:"Name,omitempty"` + + // tenant ID + TenantID string `json:"TenantID,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this research project +func (m *ResearchProject) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this research project based on context it is used +func (m *ResearchProject) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProject) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProject) UnmarshalBinary(b []byte) error { + var res ResearchProject + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_company.go b/api/members/members_models/research_project_company.go new file mode 100644 index 0000000..e497d8f --- /dev/null +++ b/api/members/members_models/research_project_company.go @@ -0,0 +1,75 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectCompany research project company +// +// swagger:model ResearchProjectCompany +type ResearchProjectCompany struct { + + // account ID + AccountID string `json:"AccountID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // research project ID + ResearchProjectID string `json:"ResearchProjectID,omitempty"` + + // tenant ID + TenantID string `json:"TenantID,omitempty"` +} + +// Validate validates this research project company +func (m *ResearchProjectCompany) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this research project company based on context it is used +func (m *ResearchProjectCompany) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectCompany) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectCompany) UnmarshalBinary(b []byte) error { + var res ResearchProjectCompany + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_company_request.go b/api/members/members_models/research_project_company_request.go new file mode 100644 index 0000000..6010c56 --- /dev/null +++ b/api/members/members_models/research_project_company_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectCompanyRequest An array of ResearchProjectCompany objects +// +// swagger:model ResearchProjectCompanyRequest +type ResearchProjectCompanyRequest struct { + + // data + Data []*ResearchProjectCompany `json:"Data"` +} + +// Validate validates this research project company request +func (m *ResearchProjectCompanyRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectCompanyRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this research project company request based on the context it is used +func (m *ResearchProjectCompanyRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectCompanyRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectCompanyRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectCompanyRequest) UnmarshalBinary(b []byte) error { + var res ResearchProjectCompanyRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_company_response.go b/api/members/members_models/research_project_company_response.go new file mode 100644 index 0000000..025d1d1 --- /dev/null +++ b/api/members/members_models/research_project_company_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectCompanyResponse An array of ResearchProjectCompany objects +// +// swagger:model ResearchProjectCompanyResponse +type ResearchProjectCompanyResponse struct { + + // data + Data []*ResearchProjectCompany `json:"Data"` +} + +// Validate validates this research project company response +func (m *ResearchProjectCompanyResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectCompanyResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this research project company response based on the context it is used +func (m *ResearchProjectCompanyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectCompanyResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectCompanyResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectCompanyResponse) UnmarshalBinary(b []byte) error { + var res ResearchProjectCompanyResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_request.go b/api/members/members_models/research_project_request.go new file mode 100644 index 0000000..e3587c1 --- /dev/null +++ b/api/members/members_models/research_project_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectRequest An array of ResearchProject objects +// +// swagger:model ResearchProjectRequest +type ResearchProjectRequest struct { + + // data + Data []*ResearchProject `json:"Data"` +} + +// Validate validates this research project request +func (m *ResearchProjectRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this research project request based on the context it is used +func (m *ResearchProjectRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectRequest) UnmarshalBinary(b []byte) error { + var res ResearchProjectRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_response.go b/api/members/members_models/research_project_response.go new file mode 100644 index 0000000..0c09944 --- /dev/null +++ b/api/members/members_models/research_project_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectResponse An array of ResearchProject objects +// +// swagger:model ResearchProjectResponse +type ResearchProjectResponse struct { + + // data + Data []*ResearchProject `json:"Data"` +} + +// Validate validates this research project response +func (m *ResearchProjectResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this research project response based on the context it is used +func (m *ResearchProjectResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectResponse) UnmarshalBinary(b []byte) error { + var res ResearchProjectResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_topic.go b/api/members/members_models/research_project_topic.go new file mode 100644 index 0000000..07156b4 --- /dev/null +++ b/api/members/members_models/research_project_topic.go @@ -0,0 +1,75 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectTopic research project topic +// +// swagger:model ResearchProjectTopic +type ResearchProjectTopic struct { + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // research project ID + ResearchProjectID string `json:"ResearchProjectID,omitempty"` + + // tenant ID + TenantID string `json:"TenantID,omitempty"` + + // topic ID + TopicID string `json:"TopicID,omitempty"` +} + +// Validate validates this research project topic +func (m *ResearchProjectTopic) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this research project topic based on context it is used +func (m *ResearchProjectTopic) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectTopic) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectTopic) UnmarshalBinary(b []byte) error { + var res ResearchProjectTopic + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_topic_request.go b/api/members/members_models/research_project_topic_request.go new file mode 100644 index 0000000..8aa8c97 --- /dev/null +++ b/api/members/members_models/research_project_topic_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectTopicRequest An array of ResearchProjectTopic objects +// +// swagger:model ResearchProjectTopicRequest +type ResearchProjectTopicRequest struct { + + // data + Data []*ResearchProjectTopic `json:"Data"` +} + +// Validate validates this research project topic request +func (m *ResearchProjectTopicRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectTopicRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this research project topic request based on the context it is used +func (m *ResearchProjectTopicRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectTopicRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectTopicRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectTopicRequest) UnmarshalBinary(b []byte) error { + var res ResearchProjectTopicRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/research_project_topic_response.go b/api/members/members_models/research_project_topic_response.go new file mode 100644 index 0000000..d5266e2 --- /dev/null +++ b/api/members/members_models/research_project_topic_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// ResearchProjectTopicResponse An array of ResearchProjectTopic objects +// +// swagger:model ResearchProjectTopicResponse +type ResearchProjectTopicResponse struct { + + // data + Data []*ResearchProjectTopic `json:"Data"` +} + +// Validate validates this research project topic response +func (m *ResearchProjectTopicResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectTopicResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this research project topic response based on the context it is used +func (m *ResearchProjectTopicResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResearchProjectTopicResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *ResearchProjectTopicResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResearchProjectTopicResponse) UnmarshalBinary(b []byte) error { + var res ResearchProjectTopicResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/ticket.go b/api/members/members_models/ticket.go new file mode 100644 index 0000000..221d383 --- /dev/null +++ b/api/members/members_models/ticket.go @@ -0,0 +1,72 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Ticket ticket +// +// swagger:model Ticket +type Ticket struct { + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // event ID + EventID string `json:"EventID,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // price + Price *float64 `json:"Price,omitempty"` + + // quantity + Quantity int64 `json:"Quantity,omitempty"` + + // tickettype + Tickettype string `json:"Tickettype,omitempty"` +} + +// Validate validates this ticket +func (m *Ticket) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this ticket based on context it is used +func (m *Ticket) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Ticket) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Ticket) UnmarshalBinary(b []byte) error { + var res Ticket + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/ticket_request.go b/api/members/members_models/ticket_request.go new file mode 100644 index 0000000..8482db0 --- /dev/null +++ b/api/members/members_models/ticket_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// TicketRequest An array of Ticket objects +// +// swagger:model TicketRequest +type TicketRequest struct { + + // data + Data []*Ticket `json:"Data"` +} + +// Validate validates this ticket request +func (m *TicketRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TicketRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this ticket request based on the context it is used +func (m *TicketRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TicketRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *TicketRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *TicketRequest) UnmarshalBinary(b []byte) error { + var res TicketRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/ticket_response.go b/api/members/members_models/ticket_response.go new file mode 100644 index 0000000..1819aca --- /dev/null +++ b/api/members/members_models/ticket_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// TicketResponse An array of Ticket objects +// +// swagger:model TicketResponse +type TicketResponse struct { + + // data + Data []*Ticket `json:"Data"` +} + +// Validate validates this ticket response +func (m *TicketResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TicketResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this ticket response based on the context it is used +func (m *TicketResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TicketResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *TicketResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *TicketResponse) UnmarshalBinary(b []byte) error { + var res TicketResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/transaction.go b/api/members/members_models/transaction.go new file mode 100644 index 0000000..bf152b5 --- /dev/null +++ b/api/members/members_models/transaction.go @@ -0,0 +1,90 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Transaction transaction +// +// swagger:model Transaction +type Transaction struct { + + // amount + Amount float64 `json:"Amount,omitempty"` + + // course ID + CourseID string `json:"CourseID,omitempty"` + + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` + + // currency + Currency string `json:"Currency,omitempty"` + + // enrollment ID + EnrollmentID string `json:"EnrollmentID,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // payment method ID + PaymentMethodID string `json:"PaymentMethodID,omitempty"` + + // status + Status *string `json:"Status,omitempty"` + + // transaction date + TransactionDate string `json:"TransactionDate,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` +} + +// Validate validates this transaction +func (m *Transaction) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this transaction based on context it is used +func (m *Transaction) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Transaction) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Transaction) UnmarshalBinary(b []byte) error { + var res Transaction + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/transaction_request.go b/api/members/members_models/transaction_request.go new file mode 100644 index 0000000..38d2b07 --- /dev/null +++ b/api/members/members_models/transaction_request.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// TransactionRequest An array of Transaction objects +// +// swagger:model TransactionRequest +type TransactionRequest struct { + + // data + Data []*Transaction `json:"Data"` +} + +// Validate validates this transaction request +func (m *TransactionRequest) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TransactionRequest) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this transaction request based on the context it is used +func (m *TransactionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TransactionRequest) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *TransactionRequest) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *TransactionRequest) UnmarshalBinary(b []byte) error { + var res TransactionRequest + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/members/members_models/transaction_response.go b/api/members/members_models/transaction_response.go new file mode 100644 index 0000000..7bcbf5c --- /dev/null +++ b/api/members/members_models/transaction_response.go @@ -0,0 +1,120 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package members_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// TransactionResponse An array of Transaction objects +// +// swagger:model TransactionResponse +type TransactionResponse struct { + + // data + Data []*Transaction `json:"Data"` +} + +// Validate validates this transaction response +func (m *TransactionResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TransactionResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this transaction response based on the context it is used +func (m *TransactionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *TransactionResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *TransactionResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *TransactionResponse) UnmarshalBinary(b []byte) error { + var res TransactionResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/research/research_client/industry/get_industries_observable_parameters.go b/api/research/research_client/industry/get_industries_observable_parameters.go index 8eead7f..8379856 100644 --- a/api/research/research_client/industry/get_industries_observable_parameters.go +++ b/api/research/research_client/industry/get_industries_observable_parameters.go @@ -67,7 +67,7 @@ type GetIndustriesObservableParams struct { /* IndustryID. - Taxnexus Industry record ID + Industry record ID */ IndustryID *string diff --git a/api/research/research_client/industry/get_industries_observable_responses.go b/api/research/research_client/industry/get_industries_observable_responses.go index 74172ee..867f4a1 100644 --- a/api/research/research_client/industry/get_industries_observable_responses.go +++ b/api/research/research_client/industry/get_industries_observable_responses.go @@ -76,7 +76,7 @@ func NewGetIndustriesObservableOK() *GetIndustriesObservableOK { /* GetIndustriesObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Industry objects +Response with an array of Industry objects */ type GetIndustriesObservableOK struct { AccessControlAllowOrigin string diff --git a/api/research/research_client/industry/get_industries_parameters.go b/api/research/research_client/industry/get_industries_parameters.go index 8184ef5..4aec5bc 100644 --- a/api/research/research_client/industry/get_industries_parameters.go +++ b/api/research/research_client/industry/get_industries_parameters.go @@ -67,7 +67,7 @@ type GetIndustriesParams struct { /* IndustryID. - Taxnexus Industry record ID + Industry record ID */ IndustryID *string diff --git a/api/research/research_client/industry/get_industries_responses.go b/api/research/research_client/industry/get_industries_responses.go index d4be010..a4a9e44 100644 --- a/api/research/research_client/industry/get_industries_responses.go +++ b/api/research/research_client/industry/get_industries_responses.go @@ -76,7 +76,7 @@ func NewGetIndustriesOK() *GetIndustriesOK { /* GetIndustriesOK describes a response with status code 200, with default header values. -Taxnexus Response with Industry objects +Response with Industry objects */ type GetIndustriesOK struct { AccessControlAllowOrigin string diff --git a/api/research/research_client/industry/post_industries_responses.go b/api/research/research_client/industry/post_industries_responses.go index 2adb93f..7b9f7fd 100644 --- a/api/research/research_client/industry/post_industries_responses.go +++ b/api/research/research_client/industry/post_industries_responses.go @@ -76,7 +76,7 @@ func NewPostIndustriesOK() *PostIndustriesOK { /* PostIndustriesOK describes a response with status code 200, with default header values. -Taxnexus Response with Industry objects +Response with Industry objects */ type PostIndustriesOK struct { AccessControlAllowOrigin string diff --git a/api/research/research_client/topic/get_topics_observable_parameters.go b/api/research/research_client/topic/get_topics_observable_parameters.go index 9e53f00..a425f33 100644 --- a/api/research/research_client/topic/get_topics_observable_parameters.go +++ b/api/research/research_client/topic/get_topics_observable_parameters.go @@ -67,7 +67,7 @@ type GetTopicsObservableParams struct { /* TopicID. - Taxnexus Topic record ID + Topic record ID */ TopicID *string diff --git a/api/research/research_client/topic/get_topics_observable_responses.go b/api/research/research_client/topic/get_topics_observable_responses.go index 45e5306..ef2aca7 100644 --- a/api/research/research_client/topic/get_topics_observable_responses.go +++ b/api/research/research_client/topic/get_topics_observable_responses.go @@ -76,7 +76,7 @@ func NewGetTopicsObservableOK() *GetTopicsObservableOK { /* GetTopicsObservableOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Topic objects +Response with an array of Topic objects */ type GetTopicsObservableOK struct { AccessControlAllowOrigin string diff --git a/api/research/research_client/topic/get_topics_parameters.go b/api/research/research_client/topic/get_topics_parameters.go index ab68aec..3dd5d00 100644 --- a/api/research/research_client/topic/get_topics_parameters.go +++ b/api/research/research_client/topic/get_topics_parameters.go @@ -67,7 +67,7 @@ type GetTopicsParams struct { /* TopicID. - Taxnexus Topic record ID + Topic record ID */ TopicID *string diff --git a/api/research/research_client/topic/get_topics_responses.go b/api/research/research_client/topic/get_topics_responses.go index e097421..d34ab59 100644 --- a/api/research/research_client/topic/get_topics_responses.go +++ b/api/research/research_client/topic/get_topics_responses.go @@ -76,7 +76,7 @@ func NewGetTopicsOK() *GetTopicsOK { /* GetTopicsOK describes a response with status code 200, with default header values. -Taxnexus Response with Topic objects +Response with Topic objects */ type GetTopicsOK struct { AccessControlAllowOrigin string diff --git a/api/research/research_client/topic/post_topics_responses.go b/api/research/research_client/topic/post_topics_responses.go index 3fc0c09..727f25c 100644 --- a/api/research/research_client/topic/post_topics_responses.go +++ b/api/research/research_client/topic/post_topics_responses.go @@ -76,7 +76,7 @@ func NewPostTopicsOK() *PostTopicsOK { /* PostTopicsOK describes a response with status code 200, with default header values. -Taxnexus Response with Topic objects +Response with Topic objects */ type PostTopicsOK struct { AccessControlAllowOrigin string diff --git a/api/research/research_models/company_product.go b/api/research/research_models/company_product.go index 7946ace..a86b25c 100644 --- a/api/research/research_models/company_product.go +++ b/api/research/research_models/company_product.go @@ -21,7 +21,7 @@ import ( // swagger:model CompanyProduct type CompanyProduct struct { - // Taxnexus ID of the Company that owns this Product + // ID of the Company that owns this Product AccountID string `json:"AccountID,omitempty"` // Created By User ID @@ -33,18 +33,39 @@ type CompanyProduct struct { // Description of product Description string `json:"Description,omitempty"` - // Taxnexus Record Id + // Full Description of product + FullDescription string `json:"FullDescription,omitempty"` + + // Record Id ID string `json:"ID,omitempty"` + // Image URL + ImageURL string `json:"ImageURL,omitempty"` + + // Image Alt Text + Imagealttext string `json:"Imagealttext,omitempty"` + // Last Modified By User ID LastModifiedByID string `json:"LastModifiedByID,omitempty"` // Last Modified Date LastModifiedDate string `json:"LastModifiedDate,omitempty"` + // Logo + Logo string `json:"Logo,omitempty"` + // Product Name Name string `json:"Name,omitempty"` + // Published + Published bool `json:"Published,omitempty"` + + // Salesforce Specific + SalesforceSpecific bool `json:"SalesforceSpecific,omitempty"` + + // Site URL + SiteURL string `json:"SiteURL,omitempty"` + // TagLine TagLine string `json:"TagLine,omitempty"` diff --git a/api/research/research_models/factor.go b/api/research/research_models/factor.go index d1443bd..a86931d 100644 --- a/api/research/research_models/factor.go +++ b/api/research/research_models/factor.go @@ -32,7 +32,7 @@ type Factor struct { // Topic Description Description string `json:"Description,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Last Modified By User ID @@ -50,6 +50,9 @@ type Factor struct { // The URL of the corresponding page on the CMS SiteURL string `json:"SiteURL,omitempty"` + // The slug of the corresponding page on the CMS + Slug string `json:"Slug,omitempty"` + // The ID of the Topic that owns this Factor TopicID string `json:"TopicID,omitempty"` } diff --git a/api/research/research_models/industry.go b/api/research/research_models/industry.go index 3d491ac..24b1012 100644 --- a/api/research/research_models/industry.go +++ b/api/research/research_models/industry.go @@ -38,9 +38,15 @@ type Industry struct { // Industry Description Description string `json:"Description,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` + // Image URL + ImageURL string `json:"ImageURL,omitempty"` + + // Image Alt Text + Imagealttext string `json:"Imagealttext,omitempty"` + // Last Modified By User ID LastModifiedByID string `json:"LastModifiedByID,omitempty"` @@ -50,6 +56,9 @@ type Industry struct { // The hierarchical level of this Industry Level string `json:"Level,omitempty"` + // Logo + Logo string `json:"Logo,omitempty"` + // Industry Name Name string `json:"Name,omitempty"` @@ -64,6 +73,9 @@ type Industry struct { // The CMS Slug for this Industry Slug string `json:"Slug,omitempty"` + + // TagLine + TagLine string `json:"TagLine,omitempty"` } // Validate validates this industry diff --git a/api/research/research_models/industry_product.go b/api/research/research_models/industry_product.go new file mode 100644 index 0000000..0dd2d88 --- /dev/null +++ b/api/research/research_models/industry_product.go @@ -0,0 +1,75 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package research_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// IndustryProduct Junction object between Industry and CompanyProduct +// +// swagger:model IndustryProduct +type IndustryProduct struct { + + // company product ID + CompanyProductID string `json:"CompanyProductID,omitempty"` + + // Created By User ID + CreatedByID string `json:"CreatedByID,omitempty"` + + // Created Date + CreatedDate string `json:"CreatedDate,omitempty"` + + // HTML + HTML string `json:"HTML,omitempty"` + + // Record Id + ID string `json:"ID,omitempty"` + + // industry ID + IndustryID string `json:"IndustryID,omitempty"` + + // Last Modified By User ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // Last Modified Date + LastModifiedDate string `json:"LastModifiedDate,omitempty"` +} + +// Validate validates this industry product +func (m *IndustryProduct) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this industry product based on context it is used +func (m *IndustryProduct) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *IndustryProduct) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *IndustryProduct) UnmarshalBinary(b []byte) error { + var res IndustryProduct + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/research/research_models/observation.go b/api/research/research_models/observation.go index adc8d37..e3b28d8 100644 --- a/api/research/research_models/observation.go +++ b/api/research/research_models/observation.go @@ -24,6 +24,9 @@ type Observation struct { // The ID of the Company being analyzed AccountID string `json:"AccountID,omitempty"` + // The ID of the Product being analyzed + CompanyProductID string `json:"CompanyProductID,omitempty"` + // Created By User ID CreatedByID string `json:"CreatedByID,omitempty"` @@ -36,7 +39,7 @@ type Observation struct { // The ID of the Factor that owns this Observation FactorID string `json:"FactorID,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Last Modified By User ID @@ -50,9 +53,6 @@ type Observation struct { // The data point collected Value string `json:"Value,omitempty"` - - // The ID of the Product being analyzed - CompanyProductID string `json:"companyProductID,omitempty"` } // Validate validates this observation diff --git a/api/research/research_models/request_meta.go b/api/research/research_models/request_meta.go index d4cea89..e974578 100644 --- a/api/research/research_models/request_meta.go +++ b/api/research/research_models/request_meta.go @@ -23,7 +23,7 @@ import ( // swagger:model RequestMeta type RequestMeta struct { - // Taxnexus Account Number of the Reseller or OEM + // Account Number of the Reseller or OEM // Required: true TaxnexusAccount *string `json:"TaxnexusAccount"` } diff --git a/api/research/research_models/response_meta.go b/api/research/research_models/response_meta.go index 021cd85..131a6d6 100644 --- a/api/research/research_models/response_meta.go +++ b/api/research/research_models/response_meta.go @@ -55,7 +55,7 @@ type ResponseMeta struct { // Backend Server Timestamp ServerTimestamp string `json:"ServerTimestamp,omitempty"` - // Taxnexus Account Number used for recording transactions + // Account Number used for recording transactions TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` } diff --git a/api/research/research_models/topic.go b/api/research/research_models/topic.go index bd24ee7..ca65d0d 100644 --- a/api/research/research_models/topic.go +++ b/api/research/research_models/topic.go @@ -35,7 +35,7 @@ type Topic struct { // The list of Factors used to analyze this industry Factors []*Factor `json:"Factors"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Last Modified By User ID @@ -52,6 +52,9 @@ type Topic struct { // The URL of the corresponding page on the CMS SiteURL string `json:"SiteURL,omitempty"` + + // The CMS Slug for this Topic + Slug string `json:"Slug,omitempty"` } // Validate validates this topic diff --git a/api/sfgate/sfgate_client/accounts/accounts_client.go b/api/sfgate/sfgate_client/accounts/accounts_client.go index bc14266..76bac56 100644 --- a/api/sfgate/sfgate_client/accounts/accounts_client.go +++ b/api/sfgate/sfgate_client/accounts/accounts_client.go @@ -38,9 +38,9 @@ type ClientService interface { GetAccounts(params *GetAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccountsOK, error) - PostAccounts(params *PostAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAccountsOK, error) + PostAccounts(params *PostAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAccountsCreated, error) - PutAccount(params *PutAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAccountOK, error) + PutAccounts(params *PutAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAccountsOK, error) SetTransport(transport runtime.ClientTransport) } @@ -48,7 +48,7 @@ type ClientService interface { /* DeleteAccount deletes an account -Delete Taxnexus Account record +Delete Account record */ func (a *Client) DeleteAccount(params *DeleteAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAccountOK, error) { // TODO: Validate the params before sending @@ -132,7 +132,7 @@ PostAccounts adds a new account to taxnexus Account record to be added */ -func (a *Client) PostAccounts(params *PostAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAccountsOK, error) { +func (a *Client) PostAccounts(params *PostAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAccountsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostAccountsParams() @@ -158,7 +158,7 @@ func (a *Client) PostAccounts(params *PostAccountsParams, authInfo runtime.Clien if err != nil { return nil, err } - success, ok := result.(*PostAccountsOK) + success, ok := result.(*PostAccountsCreated) if ok { return success, nil } @@ -169,24 +169,24 @@ func (a *Client) PostAccounts(params *PostAccountsParams, authInfo runtime.Clien } /* -PutAccount updates a single account +PutAccounts updates a single account -Update a single account specified by accountId +Update one or more accounts specified by accountId */ -func (a *Client) PutAccount(params *PutAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAccountOK, error) { +func (a *Client) PutAccounts(params *PutAccountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAccountsOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewPutAccountParams() + params = NewPutAccountsParams() } op := &runtime.ClientOperation{ - ID: "putAccount", + ID: "putAccounts", Method: "PUT", PathPattern: "/accounts", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"http"}, Params: params, - Reader: &PutAccountReader{formats: a.formats}, + Reader: &PutAccountsReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -199,13 +199,13 @@ func (a *Client) PutAccount(params *PutAccountParams, authInfo runtime.ClientAut if err != nil { return nil, err } - success, ok := result.(*PutAccountOK) + success, ok := result.(*PutAccountsOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for putAccount: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for putAccounts: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } diff --git a/api/sfgate/sfgate_client/accounts/delete_account_parameters.go b/api/sfgate/sfgate_client/accounts/delete_account_parameters.go index 0ffc96c..82076a0 100644 --- a/api/sfgate/sfgate_client/accounts/delete_account_parameters.go +++ b/api/sfgate/sfgate_client/accounts/delete_account_parameters.go @@ -67,7 +67,7 @@ type DeleteAccountParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string diff --git a/api/sfgate/sfgate_client/accounts/delete_account_responses.go b/api/sfgate/sfgate_client/accounts/delete_account_responses.go index 117a578..630552c 100644 --- a/api/sfgate/sfgate_client/accounts/delete_account_responses.go +++ b/api/sfgate/sfgate_client/accounts/delete_account_responses.go @@ -76,7 +76,7 @@ func NewDeleteAccountOK() *DeleteAccountOK { /* DeleteAccountOK describes a response with status code 200, with default header values. -Taxnexus Response with Message Objects with Delete Status +Response with Message Objects with Delete Status */ type DeleteAccountOK struct { AccessControlAllowOrigin string diff --git a/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go b/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go index bf03bf6..99664db 100644 --- a/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go +++ b/api/sfgate/sfgate_client/accounts/get_accounts_parameters.go @@ -68,7 +68,7 @@ type GetAccountsParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string diff --git a/api/sfgate/sfgate_client/accounts/get_accounts_responses.go b/api/sfgate/sfgate_client/accounts/get_accounts_responses.go index 0cd670d..6ed9568 100644 --- a/api/sfgate/sfgate_client/accounts/get_accounts_responses.go +++ b/api/sfgate/sfgate_client/accounts/get_accounts_responses.go @@ -76,7 +76,7 @@ func NewGetAccountsOK() *GetAccountsOK { /* GetAccountsOK describes a response with status code 200, with default header values. -Taxnexus Response with Account objects with Contacts +Response with Account objects with Contacts */ type GetAccountsOK struct { AccessControlAllowOrigin string diff --git a/api/sfgate/sfgate_client/accounts/post_accounts_responses.go b/api/sfgate/sfgate_client/accounts/post_accounts_responses.go index b08a3d0..dce438e 100644 --- a/api/sfgate/sfgate_client/accounts/post_accounts_responses.go +++ b/api/sfgate/sfgate_client/accounts/post_accounts_responses.go @@ -27,8 +27,8 @@ type PostAccountsReader struct { // ReadResponse reads a server response into the received o. func (o *PostAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostAccountsOK() + case 201: + result := NewPostAccountsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,82 +68,65 @@ func (o *PostAccountsReader) ReadResponse(response runtime.ClientResponse, consu } } -// NewPostAccountsOK creates a PostAccountsOK with default headers values -func NewPostAccountsOK() *PostAccountsOK { - return &PostAccountsOK{} +// NewPostAccountsCreated creates a PostAccountsCreated with default headers values +func NewPostAccountsCreated() *PostAccountsCreated { + return &PostAccountsCreated{} } /* -PostAccountsOK describes a response with status code 200, with default header values. +PostAccountsCreated describes a response with status code 201, with default header values. -Taxnexus Response with Account objects with Contacts +Response from Salesforce */ -type PostAccountsOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.AccountResponse +type PostAccountsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post accounts o k response has a 2xx status code -func (o *PostAccountsOK) IsSuccess() bool { +// IsSuccess returns true when this post accounts created response has a 2xx status code +func (o *PostAccountsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post accounts o k response has a 3xx status code -func (o *PostAccountsOK) IsRedirect() bool { +// IsRedirect returns true when this post accounts created response has a 3xx status code +func (o *PostAccountsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post accounts o k response has a 4xx status code -func (o *PostAccountsOK) IsClientError() bool { +// IsClientError returns true when this post accounts created response has a 4xx status code +func (o *PostAccountsCreated) IsClientError() bool { return false } -// IsServerError returns true when this post accounts o k response has a 5xx status code -func (o *PostAccountsOK) IsServerError() bool { +// IsServerError returns true when this post accounts created response has a 5xx status code +func (o *PostAccountsCreated) IsServerError() bool { return false } -// IsCode returns true when this post accounts o k response a status code equal to that given -func (o *PostAccountsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post accounts created response a status code equal to that given +func (o *PostAccountsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post accounts o k response -func (o *PostAccountsOK) Code() int { - return 200 +// Code gets the status code for the post accounts created response +func (o *PostAccountsCreated) Code() int { + return 201 } -func (o *PostAccountsOK) Error() string { - return fmt.Sprintf("[POST /accounts][%d] postAccountsOK %+v", 200, o.Payload) +func (o *PostAccountsCreated) Error() string { + return fmt.Sprintf("[POST /accounts][%d] postAccountsCreated %+v", 201, o.Payload) } -func (o *PostAccountsOK) String() string { - return fmt.Sprintf("[POST /accounts][%d] postAccountsOK %+v", 200, o.Payload) +func (o *PostAccountsCreated) String() string { + return fmt.Sprintf("[POST /accounts][%d] postAccountsCreated %+v", 201, o.Payload) } -func (o *PostAccountsOK) GetPayload() *sfgate_models.AccountResponse { +func (o *PostAccountsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostAccountsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostAccountsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.AccountResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/accounts/put_account_parameters.go b/api/sfgate/sfgate_client/accounts/put_account_parameters.go deleted file mode 100644 index 8f056c4..0000000 --- a/api/sfgate/sfgate_client/accounts/put_account_parameters.go +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package accounts - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" -) - -// NewPutAccountParams creates a new PutAccountParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewPutAccountParams() *PutAccountParams { - return &PutAccountParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewPutAccountParamsWithTimeout creates a new PutAccountParams object -// with the ability to set a timeout on a request. -func NewPutAccountParamsWithTimeout(timeout time.Duration) *PutAccountParams { - return &PutAccountParams{ - timeout: timeout, - } -} - -// NewPutAccountParamsWithContext creates a new PutAccountParams object -// with the ability to set a context for a request. -func NewPutAccountParamsWithContext(ctx context.Context) *PutAccountParams { - return &PutAccountParams{ - Context: ctx, - } -} - -// NewPutAccountParamsWithHTTPClient creates a new PutAccountParams object -// with the ability to set a custom HTTPClient for a request. -func NewPutAccountParamsWithHTTPClient(client *http.Client) *PutAccountParams { - return &PutAccountParams{ - HTTPClient: client, - } -} - -/* -PutAccountParams contains all the parameters to send to the API endpoint - - for the put account operation. - - Typically these are written to a http.Request. -*/ -type PutAccountParams struct { - - /* AccountRequest. - - A request with an array of Account Objects - */ - AccountRequest *sfgate_models.AccountRequest - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the put account params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PutAccountParams) WithDefaults() *PutAccountParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the put account params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PutAccountParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the put account params -func (o *PutAccountParams) WithTimeout(timeout time.Duration) *PutAccountParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put account params -func (o *PutAccountParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put account params -func (o *PutAccountParams) WithContext(ctx context.Context) *PutAccountParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put account params -func (o *PutAccountParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put account params -func (o *PutAccountParams) WithHTTPClient(client *http.Client) *PutAccountParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put account params -func (o *PutAccountParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAccountRequest adds the accountRequest to the put account params -func (o *PutAccountParams) WithAccountRequest(accountRequest *sfgate_models.AccountRequest) *PutAccountParams { - o.SetAccountRequest(accountRequest) - return o -} - -// SetAccountRequest adds the accountRequest to the put account params -func (o *PutAccountParams) SetAccountRequest(accountRequest *sfgate_models.AccountRequest) { - o.AccountRequest = accountRequest -} - -// WriteToRequest writes these params to a swagger request -func (o *PutAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if o.AccountRequest != nil { - if err := r.SetBodyParam(o.AccountRequest); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/sfgate/sfgate_client/accounts/put_account_responses.go b/api/sfgate/sfgate_client/accounts/put_account_responses.go deleted file mode 100644 index c0ff8eb..0000000 --- a/api/sfgate/sfgate_client/accounts/put_account_responses.go +++ /dev/null @@ -1,539 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package accounts - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" -) - -// PutAccountReader is a Reader for the PutAccount structure. -type PutAccountReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutAccountOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewPutAccountUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewPutAccountForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewPutAccountNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewPutAccountUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewPutAccountInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewPutAccountOK creates a PutAccountOK with default headers values -func NewPutAccountOK() *PutAccountOK { - return &PutAccountOK{} -} - -/* -PutAccountOK describes a response with status code 200, with default header values. - -Taxnexus Response with Account objects with Contacts -*/ -type PutAccountOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.AccountResponse -} - -// IsSuccess returns true when this put account o k response has a 2xx status code -func (o *PutAccountOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this put account o k response has a 3xx status code -func (o *PutAccountOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this put account o k response has a 4xx status code -func (o *PutAccountOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this put account o k response has a 5xx status code -func (o *PutAccountOK) IsServerError() bool { - return false -} - -// IsCode returns true when this put account o k response a status code equal to that given -func (o *PutAccountOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the put account o k response -func (o *PutAccountOK) Code() int { - return 200 -} - -func (o *PutAccountOK) Error() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountOK %+v", 200, o.Payload) -} - -func (o *PutAccountOK) String() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountOK %+v", 200, o.Payload) -} - -func (o *PutAccountOK) GetPayload() *sfgate_models.AccountResponse { - return o.Payload -} - -func (o *PutAccountOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.AccountResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutAccountUnauthorized creates a PutAccountUnauthorized with default headers values -func NewPutAccountUnauthorized() *PutAccountUnauthorized { - return &PutAccountUnauthorized{} -} - -/* -PutAccountUnauthorized describes a response with status code 401, with default header values. - -Access unauthorized, invalid API-KEY was used -*/ -type PutAccountUnauthorized struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this put account unauthorized response has a 2xx status code -func (o *PutAccountUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this put account unauthorized response has a 3xx status code -func (o *PutAccountUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this put account unauthorized response has a 4xx status code -func (o *PutAccountUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this put account unauthorized response has a 5xx status code -func (o *PutAccountUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this put account unauthorized response a status code equal to that given -func (o *PutAccountUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the put account unauthorized response -func (o *PutAccountUnauthorized) Code() int { - return 401 -} - -func (o *PutAccountUnauthorized) Error() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountUnauthorized %+v", 401, o.Payload) -} - -func (o *PutAccountUnauthorized) String() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountUnauthorized %+v", 401, o.Payload) -} - -func (o *PutAccountUnauthorized) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PutAccountUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutAccountForbidden creates a PutAccountForbidden with default headers values -func NewPutAccountForbidden() *PutAccountForbidden { - return &PutAccountForbidden{} -} - -/* -PutAccountForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type PutAccountForbidden struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this put account forbidden response has a 2xx status code -func (o *PutAccountForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this put account forbidden response has a 3xx status code -func (o *PutAccountForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this put account forbidden response has a 4xx status code -func (o *PutAccountForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this put account forbidden response has a 5xx status code -func (o *PutAccountForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this put account forbidden response a status code equal to that given -func (o *PutAccountForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the put account forbidden response -func (o *PutAccountForbidden) Code() int { - return 403 -} - -func (o *PutAccountForbidden) Error() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountForbidden %+v", 403, o.Payload) -} - -func (o *PutAccountForbidden) String() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountForbidden %+v", 403, o.Payload) -} - -func (o *PutAccountForbidden) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PutAccountForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutAccountNotFound creates a PutAccountNotFound with default headers values -func NewPutAccountNotFound() *PutAccountNotFound { - return &PutAccountNotFound{} -} - -/* -PutAccountNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type PutAccountNotFound struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this put account not found response has a 2xx status code -func (o *PutAccountNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this put account not found response has a 3xx status code -func (o *PutAccountNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this put account not found response has a 4xx status code -func (o *PutAccountNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this put account not found response has a 5xx status code -func (o *PutAccountNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this put account not found response a status code equal to that given -func (o *PutAccountNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the put account not found response -func (o *PutAccountNotFound) Code() int { - return 404 -} - -func (o *PutAccountNotFound) Error() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountNotFound %+v", 404, o.Payload) -} - -func (o *PutAccountNotFound) String() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountNotFound %+v", 404, o.Payload) -} - -func (o *PutAccountNotFound) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PutAccountNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutAccountUnprocessableEntity creates a PutAccountUnprocessableEntity with default headers values -func NewPutAccountUnprocessableEntity() *PutAccountUnprocessableEntity { - return &PutAccountUnprocessableEntity{} -} - -/* -PutAccountUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type PutAccountUnprocessableEntity struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this put account unprocessable entity response has a 2xx status code -func (o *PutAccountUnprocessableEntity) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this put account unprocessable entity response has a 3xx status code -func (o *PutAccountUnprocessableEntity) IsRedirect() bool { - return false -} - -// IsClientError returns true when this put account unprocessable entity response has a 4xx status code -func (o *PutAccountUnprocessableEntity) IsClientError() bool { - return true -} - -// IsServerError returns true when this put account unprocessable entity response has a 5xx status code -func (o *PutAccountUnprocessableEntity) IsServerError() bool { - return false -} - -// IsCode returns true when this put account unprocessable entity response a status code equal to that given -func (o *PutAccountUnprocessableEntity) IsCode(code int) bool { - return code == 422 -} - -// Code gets the status code for the put account unprocessable entity response -func (o *PutAccountUnprocessableEntity) Code() int { - return 422 -} - -func (o *PutAccountUnprocessableEntity) Error() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *PutAccountUnprocessableEntity) String() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *PutAccountUnprocessableEntity) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PutAccountUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutAccountInternalServerError creates a PutAccountInternalServerError with default headers values -func NewPutAccountInternalServerError() *PutAccountInternalServerError { - return &PutAccountInternalServerError{} -} - -/* -PutAccountInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type PutAccountInternalServerError struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this put account internal server error response has a 2xx status code -func (o *PutAccountInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this put account internal server error response has a 3xx status code -func (o *PutAccountInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this put account internal server error response has a 4xx status code -func (o *PutAccountInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this put account internal server error response has a 5xx status code -func (o *PutAccountInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this put account internal server error response a status code equal to that given -func (o *PutAccountInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the put account internal server error response -func (o *PutAccountInternalServerError) Code() int { - return 500 -} - -func (o *PutAccountInternalServerError) Error() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountInternalServerError %+v", 500, o.Payload) -} - -func (o *PutAccountInternalServerError) String() string { - return fmt.Sprintf("[PUT /accounts][%d] putAccountInternalServerError %+v", 500, o.Payload) -} - -func (o *PutAccountInternalServerError) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PutAccountInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/sfgate/sfgate_client/accounts/put_accounts_parameters.go b/api/sfgate/sfgate_client/accounts/put_accounts_parameters.go new file mode 100644 index 0000000..665d7fd --- /dev/null +++ b/api/sfgate/sfgate_client/accounts/put_accounts_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package accounts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// NewPutAccountsParams creates a new PutAccountsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPutAccountsParams() *PutAccountsParams { + return &PutAccountsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPutAccountsParamsWithTimeout creates a new PutAccountsParams object +// with the ability to set a timeout on a request. +func NewPutAccountsParamsWithTimeout(timeout time.Duration) *PutAccountsParams { + return &PutAccountsParams{ + timeout: timeout, + } +} + +// NewPutAccountsParamsWithContext creates a new PutAccountsParams object +// with the ability to set a context for a request. +func NewPutAccountsParamsWithContext(ctx context.Context) *PutAccountsParams { + return &PutAccountsParams{ + Context: ctx, + } +} + +// NewPutAccountsParamsWithHTTPClient creates a new PutAccountsParams object +// with the ability to set a custom HTTPClient for a request. +func NewPutAccountsParamsWithHTTPClient(client *http.Client) *PutAccountsParams { + return &PutAccountsParams{ + HTTPClient: client, + } +} + +/* +PutAccountsParams contains all the parameters to send to the API endpoint + + for the put accounts operation. + + Typically these are written to a http.Request. +*/ +type PutAccountsParams struct { + + /* AccountRequest. + + A request with an array of Account Objects + */ + AccountRequest *sfgate_models.AccountRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the put accounts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PutAccountsParams) WithDefaults() *PutAccountsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the put accounts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PutAccountsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the put accounts params +func (o *PutAccountsParams) WithTimeout(timeout time.Duration) *PutAccountsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the put accounts params +func (o *PutAccountsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the put accounts params +func (o *PutAccountsParams) WithContext(ctx context.Context) *PutAccountsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the put accounts params +func (o *PutAccountsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the put accounts params +func (o *PutAccountsParams) WithHTTPClient(client *http.Client) *PutAccountsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the put accounts params +func (o *PutAccountsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAccountRequest adds the accountRequest to the put accounts params +func (o *PutAccountsParams) WithAccountRequest(accountRequest *sfgate_models.AccountRequest) *PutAccountsParams { + o.SetAccountRequest(accountRequest) + return o +} + +// SetAccountRequest adds the accountRequest to the put accounts params +func (o *PutAccountsParams) SetAccountRequest(accountRequest *sfgate_models.AccountRequest) { + o.AccountRequest = accountRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PutAccountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.AccountRequest != nil { + if err := r.SetBodyParam(o.AccountRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/sfgate/sfgate_client/accounts/put_accounts_responses.go b/api/sfgate/sfgate_client/accounts/put_accounts_responses.go new file mode 100644 index 0000000..5492b10 --- /dev/null +++ b/api/sfgate/sfgate_client/accounts/put_accounts_responses.go @@ -0,0 +1,539 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package accounts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// PutAccountsReader is a Reader for the PutAccounts structure. +type PutAccountsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PutAccountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPutAccountsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPutAccountsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPutAccountsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPutAccountsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPutAccountsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPutAccountsInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPutAccountsOK creates a PutAccountsOK with default headers values +func NewPutAccountsOK() *PutAccountsOK { + return &PutAccountsOK{} +} + +/* +PutAccountsOK describes a response with status code 200, with default header values. + +Response with Account objects with Contacts +*/ +type PutAccountsOK struct { + AccessControlAllowOrigin string + CacheControl string + + Payload *sfgate_models.AccountResponse +} + +// IsSuccess returns true when this put accounts o k response has a 2xx status code +func (o *PutAccountsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put accounts o k response has a 3xx status code +func (o *PutAccountsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put accounts o k response has a 4xx status code +func (o *PutAccountsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put accounts o k response has a 5xx status code +func (o *PutAccountsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put accounts o k response a status code equal to that given +func (o *PutAccountsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put accounts o k response +func (o *PutAccountsOK) Code() int { + return 200 +} + +func (o *PutAccountsOK) Error() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsOK %+v", 200, o.Payload) +} + +func (o *PutAccountsOK) String() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsOK %+v", 200, o.Payload) +} + +func (o *PutAccountsOK) GetPayload() *sfgate_models.AccountResponse { + return o.Payload +} + +func (o *PutAccountsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + // hydrates response header Cache-Control + hdrCacheControl := response.GetHeader("Cache-Control") + + if hdrCacheControl != "" { + o.CacheControl = hdrCacheControl + } + + o.Payload = new(sfgate_models.AccountResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutAccountsUnauthorized creates a PutAccountsUnauthorized with default headers values +func NewPutAccountsUnauthorized() *PutAccountsUnauthorized { + return &PutAccountsUnauthorized{} +} + +/* +PutAccountsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PutAccountsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put accounts unauthorized response has a 2xx status code +func (o *PutAccountsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put accounts unauthorized response has a 3xx status code +func (o *PutAccountsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put accounts unauthorized response has a 4xx status code +func (o *PutAccountsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put accounts unauthorized response has a 5xx status code +func (o *PutAccountsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put accounts unauthorized response a status code equal to that given +func (o *PutAccountsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put accounts unauthorized response +func (o *PutAccountsUnauthorized) Code() int { + return 401 +} + +func (o *PutAccountsUnauthorized) Error() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsUnauthorized %+v", 401, o.Payload) +} + +func (o *PutAccountsUnauthorized) String() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsUnauthorized %+v", 401, o.Payload) +} + +func (o *PutAccountsUnauthorized) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutAccountsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutAccountsForbidden creates a PutAccountsForbidden with default headers values +func NewPutAccountsForbidden() *PutAccountsForbidden { + return &PutAccountsForbidden{} +} + +/* +PutAccountsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PutAccountsForbidden struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put accounts forbidden response has a 2xx status code +func (o *PutAccountsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put accounts forbidden response has a 3xx status code +func (o *PutAccountsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put accounts forbidden response has a 4xx status code +func (o *PutAccountsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put accounts forbidden response has a 5xx status code +func (o *PutAccountsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put accounts forbidden response a status code equal to that given +func (o *PutAccountsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put accounts forbidden response +func (o *PutAccountsForbidden) Code() int { + return 403 +} + +func (o *PutAccountsForbidden) Error() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsForbidden %+v", 403, o.Payload) +} + +func (o *PutAccountsForbidden) String() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsForbidden %+v", 403, o.Payload) +} + +func (o *PutAccountsForbidden) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutAccountsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutAccountsNotFound creates a PutAccountsNotFound with default headers values +func NewPutAccountsNotFound() *PutAccountsNotFound { + return &PutAccountsNotFound{} +} + +/* +PutAccountsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PutAccountsNotFound struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put accounts not found response has a 2xx status code +func (o *PutAccountsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put accounts not found response has a 3xx status code +func (o *PutAccountsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put accounts not found response has a 4xx status code +func (o *PutAccountsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put accounts not found response has a 5xx status code +func (o *PutAccountsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put accounts not found response a status code equal to that given +func (o *PutAccountsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put accounts not found response +func (o *PutAccountsNotFound) Code() int { + return 404 +} + +func (o *PutAccountsNotFound) Error() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsNotFound %+v", 404, o.Payload) +} + +func (o *PutAccountsNotFound) String() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsNotFound %+v", 404, o.Payload) +} + +func (o *PutAccountsNotFound) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutAccountsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutAccountsUnprocessableEntity creates a PutAccountsUnprocessableEntity with default headers values +func NewPutAccountsUnprocessableEntity() *PutAccountsUnprocessableEntity { + return &PutAccountsUnprocessableEntity{} +} + +/* +PutAccountsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PutAccountsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put accounts unprocessable entity response has a 2xx status code +func (o *PutAccountsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put accounts unprocessable entity response has a 3xx status code +func (o *PutAccountsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put accounts unprocessable entity response has a 4xx status code +func (o *PutAccountsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put accounts unprocessable entity response has a 5xx status code +func (o *PutAccountsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put accounts unprocessable entity response a status code equal to that given +func (o *PutAccountsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put accounts unprocessable entity response +func (o *PutAccountsUnprocessableEntity) Code() int { + return 422 +} + +func (o *PutAccountsUnprocessableEntity) Error() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *PutAccountsUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *PutAccountsUnprocessableEntity) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutAccountsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutAccountsInternalServerError creates a PutAccountsInternalServerError with default headers values +func NewPutAccountsInternalServerError() *PutAccountsInternalServerError { + return &PutAccountsInternalServerError{} +} + +/* +PutAccountsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PutAccountsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put accounts internal server error response has a 2xx status code +func (o *PutAccountsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put accounts internal server error response has a 3xx status code +func (o *PutAccountsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put accounts internal server error response has a 4xx status code +func (o *PutAccountsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put accounts internal server error response has a 5xx status code +func (o *PutAccountsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put accounts internal server error response a status code equal to that given +func (o *PutAccountsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put accounts internal server error response +func (o *PutAccountsInternalServerError) Code() int { + return 500 +} + +func (o *PutAccountsInternalServerError) Error() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsInternalServerError %+v", 500, o.Payload) +} + +func (o *PutAccountsInternalServerError) String() string { + return fmt.Sprintf("[PUT /accounts][%d] putAccountsInternalServerError %+v", 500, o.Payload) +} + +func (o *PutAccountsInternalServerError) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutAccountsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/sfgate/sfgate_client/assets/assets_client.go b/api/sfgate/sfgate_client/assets/assets_client.go index ef0af88..2409cda 100644 --- a/api/sfgate/sfgate_client/assets/assets_client.go +++ b/api/sfgate/sfgate_client/assets/assets_client.go @@ -36,7 +36,7 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetsOK, error) - PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error) + PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsCreated, error) SetTransport(transport runtime.ClientTransport) } @@ -87,7 +87,7 @@ PostAssets adds a new asset to taxnexus Industry record to be added */ -func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsOK, error) { +func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAssetsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostAssetsParams() @@ -113,7 +113,7 @@ func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAut if err != nil { return nil, err } - success, ok := result.(*PostAssetsOK) + success, ok := result.(*PostAssetsCreated) if ok { return success, nil } diff --git a/api/sfgate/sfgate_client/assets/get_assets_parameters.go b/api/sfgate/sfgate_client/assets/get_assets_parameters.go index 4b648b6..1432237 100644 --- a/api/sfgate/sfgate_client/assets/get_assets_parameters.go +++ b/api/sfgate/sfgate_client/assets/get_assets_parameters.go @@ -74,7 +74,7 @@ type GetAssetsParams struct { /* AssetID. - Taxnexus Record Id of an Asset + Record Id of an Asset */ AssetID *string diff --git a/api/sfgate/sfgate_client/assets/get_assets_responses.go b/api/sfgate/sfgate_client/assets/get_assets_responses.go index 52a827e..39979ac 100644 --- a/api/sfgate/sfgate_client/assets/get_assets_responses.go +++ b/api/sfgate/sfgate_client/assets/get_assets_responses.go @@ -76,7 +76,7 @@ func NewGetAssetsOK() *GetAssetsOK { /* GetAssetsOK describes a response with status code 200, with default header values. -Taxnexus Response with Asset objects with Contacts +Response with Asset objects with Contacts */ type GetAssetsOK struct { AccessControlAllowOrigin string diff --git a/api/sfgate/sfgate_client/assets/post_assets_responses.go b/api/sfgate/sfgate_client/assets/post_assets_responses.go index e1c6ba8..c81f391 100644 --- a/api/sfgate/sfgate_client/assets/post_assets_responses.go +++ b/api/sfgate/sfgate_client/assets/post_assets_responses.go @@ -27,8 +27,8 @@ type PostAssetsReader struct { // ReadResponse reads a server response into the received o. func (o *PostAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostAssetsOK() + case 201: + result := NewPostAssetsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,82 +68,65 @@ func (o *PostAssetsReader) ReadResponse(response runtime.ClientResponse, consume } } -// NewPostAssetsOK creates a PostAssetsOK with default headers values -func NewPostAssetsOK() *PostAssetsOK { - return &PostAssetsOK{} +// NewPostAssetsCreated creates a PostAssetsCreated with default headers values +func NewPostAssetsCreated() *PostAssetsCreated { + return &PostAssetsCreated{} } /* -PostAssetsOK describes a response with status code 200, with default header values. +PostAssetsCreated describes a response with status code 201, with default header values. -Taxnexus Response with Asset objects with Contacts +Response from Salesforce */ -type PostAssetsOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.AssetResponse +type PostAssetsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post assets o k response has a 2xx status code -func (o *PostAssetsOK) IsSuccess() bool { +// IsSuccess returns true when this post assets created response has a 2xx status code +func (o *PostAssetsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post assets o k response has a 3xx status code -func (o *PostAssetsOK) IsRedirect() bool { +// IsRedirect returns true when this post assets created response has a 3xx status code +func (o *PostAssetsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post assets o k response has a 4xx status code -func (o *PostAssetsOK) IsClientError() bool { +// IsClientError returns true when this post assets created response has a 4xx status code +func (o *PostAssetsCreated) IsClientError() bool { return false } -// IsServerError returns true when this post assets o k response has a 5xx status code -func (o *PostAssetsOK) IsServerError() bool { +// IsServerError returns true when this post assets created response has a 5xx status code +func (o *PostAssetsCreated) IsServerError() bool { return false } -// IsCode returns true when this post assets o k response a status code equal to that given -func (o *PostAssetsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post assets created response a status code equal to that given +func (o *PostAssetsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post assets o k response -func (o *PostAssetsOK) Code() int { - return 200 +// Code gets the status code for the post assets created response +func (o *PostAssetsCreated) Code() int { + return 201 } -func (o *PostAssetsOK) Error() string { - return fmt.Sprintf("[POST /assets][%d] postAssetsOK %+v", 200, o.Payload) +func (o *PostAssetsCreated) Error() string { + return fmt.Sprintf("[POST /assets][%d] postAssetsCreated %+v", 201, o.Payload) } -func (o *PostAssetsOK) String() string { - return fmt.Sprintf("[POST /assets][%d] postAssetsOK %+v", 200, o.Payload) +func (o *PostAssetsCreated) String() string { + return fmt.Sprintf("[POST /assets][%d] postAssetsCreated %+v", 201, o.Payload) } -func (o *PostAssetsOK) GetPayload() *sfgate_models.AssetResponse { +func (o *PostAssetsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostAssetsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostAssetsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.AssetResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/clusters/clusters_client.go b/api/sfgate/sfgate_client/clusters/clusters_client.go index 012be54..a72be29 100644 --- a/api/sfgate/sfgate_client/clusters/clusters_client.go +++ b/api/sfgate/sfgate_client/clusters/clusters_client.go @@ -36,7 +36,7 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetClusters(params *GetClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetClustersOK, error) - PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersOK, error) + PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersCreated, error) PutClusters(params *PutClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClustersOK, error) @@ -87,9 +87,9 @@ func (a *Client) GetClusters(params *GetClustersParams, authInfo runtime.ClientA /* PostClusters creates new clusters -Create Clusters in Taxnexus +Create Clusters in Salesforce */ -func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersOK, error) { +func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostClustersCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostClustersParams() @@ -115,7 +115,7 @@ func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.Clien if err != nil { return nil, err } - success, ok := result.(*PostClustersOK) + success, ok := result.(*PostClustersCreated) if ok { return success, nil } @@ -128,7 +128,7 @@ func (a *Client) PostClusters(params *PostClustersParams, authInfo runtime.Clien /* PutClusters updates clusters -Update Cluster in Taxnexus +Update Cluster in Salesforce */ func (a *Client) PutClusters(params *PutClustersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutClustersOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go b/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go index 608e85c..8a055b0 100644 --- a/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go +++ b/api/sfgate/sfgate_client/clusters/get_clusters_parameters.go @@ -68,7 +68,7 @@ type GetClustersParams struct { /* ClusterID. - Taxnexus Record Id of a Cluster + Record Id of a Cluster */ ClusterID *string diff --git a/api/sfgate/sfgate_client/clusters/get_clusters_responses.go b/api/sfgate/sfgate_client/clusters/get_clusters_responses.go index 32ddc87..0f1568c 100644 --- a/api/sfgate/sfgate_client/clusters/get_clusters_responses.go +++ b/api/sfgate/sfgate_client/clusters/get_clusters_responses.go @@ -76,7 +76,7 @@ func NewGetClustersOK() *GetClustersOK { /* GetClustersOK describes a response with status code 200, with default header values. -Taxnexus Response with Cluster objects +Response with Cluster objects */ type GetClustersOK struct { Payload *sfgate_models.ClusterResponse diff --git a/api/sfgate/sfgate_client/clusters/post_clusters_responses.go b/api/sfgate/sfgate_client/clusters/post_clusters_responses.go index 511211f..6958201 100644 --- a/api/sfgate/sfgate_client/clusters/post_clusters_responses.go +++ b/api/sfgate/sfgate_client/clusters/post_clusters_responses.go @@ -27,8 +27,8 @@ type PostClustersReader struct { // ReadResponse reads a server response into the received o. func (o *PostClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostClustersOK() + case 201: + result := NewPostClustersCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,65 +68,65 @@ func (o *PostClustersReader) ReadResponse(response runtime.ClientResponse, consu } } -// NewPostClustersOK creates a PostClustersOK with default headers values -func NewPostClustersOK() *PostClustersOK { - return &PostClustersOK{} +// NewPostClustersCreated creates a PostClustersCreated with default headers values +func NewPostClustersCreated() *PostClustersCreated { + return &PostClustersCreated{} } /* -PostClustersOK describes a response with status code 200, with default header values. +PostClustersCreated describes a response with status code 201, with default header values. -Taxnexus Response with Cluster objects +Response from Salesforce */ -type PostClustersOK struct { - Payload *sfgate_models.ClusterResponse +type PostClustersCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post clusters o k response has a 2xx status code -func (o *PostClustersOK) IsSuccess() bool { +// IsSuccess returns true when this post clusters created response has a 2xx status code +func (o *PostClustersCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post clusters o k response has a 3xx status code -func (o *PostClustersOK) IsRedirect() bool { +// IsRedirect returns true when this post clusters created response has a 3xx status code +func (o *PostClustersCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post clusters o k response has a 4xx status code -func (o *PostClustersOK) IsClientError() bool { +// IsClientError returns true when this post clusters created response has a 4xx status code +func (o *PostClustersCreated) IsClientError() bool { return false } -// IsServerError returns true when this post clusters o k response has a 5xx status code -func (o *PostClustersOK) IsServerError() bool { +// IsServerError returns true when this post clusters created response has a 5xx status code +func (o *PostClustersCreated) IsServerError() bool { return false } -// IsCode returns true when this post clusters o k response a status code equal to that given -func (o *PostClustersOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post clusters created response a status code equal to that given +func (o *PostClustersCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post clusters o k response -func (o *PostClustersOK) Code() int { - return 200 +// Code gets the status code for the post clusters created response +func (o *PostClustersCreated) Code() int { + return 201 } -func (o *PostClustersOK) Error() string { - return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) +func (o *PostClustersCreated) Error() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersCreated %+v", 201, o.Payload) } -func (o *PostClustersOK) String() string { - return fmt.Sprintf("[POST /clusters][%d] postClustersOK %+v", 200, o.Payload) +func (o *PostClustersCreated) String() string { + return fmt.Sprintf("[POST /clusters][%d] postClustersCreated %+v", 201, o.Payload) } -func (o *PostClustersOK) GetPayload() *sfgate_models.ClusterResponse { +func (o *PostClustersCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostClustersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostClustersCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(sfgate_models.ClusterResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/clusters/put_clusters_responses.go b/api/sfgate/sfgate_client/clusters/put_clusters_responses.go index 3fca52d..666b1bb 100644 --- a/api/sfgate/sfgate_client/clusters/put_clusters_responses.go +++ b/api/sfgate/sfgate_client/clusters/put_clusters_responses.go @@ -76,7 +76,7 @@ func NewPutClustersOK() *PutClustersOK { /* PutClustersOK describes a response with status code 200, with default header values. -Taxnexus Response with Cluster objects +Response with Cluster objects */ type PutClustersOK struct { Payload *sfgate_models.ClusterResponse diff --git a/api/sfgate/sfgate_client/company_products/company_products_client.go b/api/sfgate/sfgate_client/company_products/company_products_client.go index 6a0cc59..9e528f8 100644 --- a/api/sfgate/sfgate_client/company_products/company_products_client.go +++ b/api/sfgate/sfgate_client/company_products/company_products_client.go @@ -36,7 +36,7 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetCompanyProducts(params *GetCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyProductsOK, error) - PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error) + PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsCreated, error) SetTransport(transport runtime.ClientTransport) } @@ -87,7 +87,7 @@ PostCompanyProducts adds a new companyproduct to taxnexus Industry record to be added */ -func (a *Client) PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsOK, error) { +func (a *Client) PostCompanyProducts(params *PostCompanyProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostCompanyProductsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostCompanyProductsParams() @@ -113,7 +113,7 @@ func (a *Client) PostCompanyProducts(params *PostCompanyProductsParams, authInfo if err != nil { return nil, err } - success, ok := result.(*PostCompanyProductsOK) + success, ok := result.(*PostCompanyProductsCreated) if ok { return success, nil } diff --git a/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go b/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go index 50c9b66..a1e9464 100644 --- a/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go +++ b/api/sfgate/sfgate_client/company_products/get_company_products_parameters.go @@ -74,7 +74,7 @@ type GetCompanyProductsParams struct { /* CompanyProductID. - Taxnexus CompanyProduct record ID + CompanyProduct record ID */ CompanyProductID *string diff --git a/api/sfgate/sfgate_client/company_products/get_company_products_responses.go b/api/sfgate/sfgate_client/company_products/get_company_products_responses.go index e54d1bb..bd5e9f3 100644 --- a/api/sfgate/sfgate_client/company_products/get_company_products_responses.go +++ b/api/sfgate/sfgate_client/company_products/get_company_products_responses.go @@ -76,7 +76,7 @@ func NewGetCompanyProductsOK() *GetCompanyProductsOK { /* GetCompanyProductsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of CompanyProduct objects +Response with an array of CompanyProduct objects */ type GetCompanyProductsOK struct { AccessControlAllowOrigin string diff --git a/api/sfgate/sfgate_client/company_products/post_company_products_responses.go b/api/sfgate/sfgate_client/company_products/post_company_products_responses.go index a7a08ce..cf6b710 100644 --- a/api/sfgate/sfgate_client/company_products/post_company_products_responses.go +++ b/api/sfgate/sfgate_client/company_products/post_company_products_responses.go @@ -27,8 +27,8 @@ type PostCompanyProductsReader struct { // ReadResponse reads a server response into the received o. func (o *PostCompanyProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostCompanyProductsOK() + case 201: + result := NewPostCompanyProductsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,82 +68,65 @@ func (o *PostCompanyProductsReader) ReadResponse(response runtime.ClientResponse } } -// NewPostCompanyProductsOK creates a PostCompanyProductsOK with default headers values -func NewPostCompanyProductsOK() *PostCompanyProductsOK { - return &PostCompanyProductsOK{} +// NewPostCompanyProductsCreated creates a PostCompanyProductsCreated with default headers values +func NewPostCompanyProductsCreated() *PostCompanyProductsCreated { + return &PostCompanyProductsCreated{} } /* -PostCompanyProductsOK describes a response with status code 200, with default header values. +PostCompanyProductsCreated describes a response with status code 201, with default header values. -Taxnexus Response with an array of CompanyProduct objects +Response from Salesforce */ -type PostCompanyProductsOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.CompanyProductResponse +type PostCompanyProductsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post company products o k response has a 2xx status code -func (o *PostCompanyProductsOK) IsSuccess() bool { +// IsSuccess returns true when this post company products created response has a 2xx status code +func (o *PostCompanyProductsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post company products o k response has a 3xx status code -func (o *PostCompanyProductsOK) IsRedirect() bool { +// IsRedirect returns true when this post company products created response has a 3xx status code +func (o *PostCompanyProductsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post company products o k response has a 4xx status code -func (o *PostCompanyProductsOK) IsClientError() bool { +// IsClientError returns true when this post company products created response has a 4xx status code +func (o *PostCompanyProductsCreated) IsClientError() bool { return false } -// IsServerError returns true when this post company products o k response has a 5xx status code -func (o *PostCompanyProductsOK) IsServerError() bool { +// IsServerError returns true when this post company products created response has a 5xx status code +func (o *PostCompanyProductsCreated) IsServerError() bool { return false } -// IsCode returns true when this post company products o k response a status code equal to that given -func (o *PostCompanyProductsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post company products created response a status code equal to that given +func (o *PostCompanyProductsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post company products o k response -func (o *PostCompanyProductsOK) Code() int { - return 200 +// Code gets the status code for the post company products created response +func (o *PostCompanyProductsCreated) Code() int { + return 201 } -func (o *PostCompanyProductsOK) Error() string { - return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsOK %+v", 200, o.Payload) +func (o *PostCompanyProductsCreated) Error() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsCreated %+v", 201, o.Payload) } -func (o *PostCompanyProductsOK) String() string { - return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsOK %+v", 200, o.Payload) +func (o *PostCompanyProductsCreated) String() string { + return fmt.Sprintf("[POST /companyproducts][%d] postCompanyProductsCreated %+v", 201, o.Payload) } -func (o *PostCompanyProductsOK) GetPayload() *sfgate_models.CompanyProductResponse { +func (o *PostCompanyProductsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostCompanyProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostCompanyProductsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.CompanyProductResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/contacts/contacts_client.go b/api/sfgate/sfgate_client/contacts/contacts_client.go index f800c6a..77f8d00 100644 --- a/api/sfgate/sfgate_client/contacts/contacts_client.go +++ b/api/sfgate/sfgate_client/contacts/contacts_client.go @@ -34,17 +34,62 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { + DeleteContacts(params *DeleteContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteContactsOK, error) + GetContacts(params *GetContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContactsOK, error) - PostContacts(params *PostContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContactsOK, error) + PostContacts(params *PostContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContactsCreated, error) + + PutContacts(params *PutContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutContactsOK, error) SetTransport(transport runtime.ClientTransport) } +/* +DeleteContacts deletes a contact record + +Delete Contact record from Salesforce +*/ +func (a *Client) DeleteContacts(params *DeleteContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteContactsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteContactsParams() + } + op := &runtime.ClientOperation{ + ID: "deleteContacts", + Method: "DELETE", + PathPattern: "/contacts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteContactsReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteContactsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for deleteContacts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + /* GetContacts gets a contact record -Retrieve Contact records from the datastore +Retrieve Contact records from Salesforce */ func (a *Client) GetContacts(params *GetContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContactsOK, error) { // TODO: Validate the params before sending @@ -87,7 +132,7 @@ PostContacts adds a new contacts to taxnexus Contacts record to be added */ -func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContactsOK, error) { +func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContactsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostContactsParams() @@ -113,7 +158,7 @@ func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.Clien if err != nil { return nil, err } - success, ok := result.(*PostContactsOK) + success, ok := result.(*PostContactsCreated) if ok { return success, nil } @@ -123,6 +168,47 @@ func (a *Client) PostContacts(params *PostContactsParams, authInfo runtime.Clien panic(msg) } +/* +PutContacts updates a contact record + +Update Contact records in Salesforce +*/ +func (a *Client) PutContacts(params *PutContactsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutContactsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPutContactsParams() + } + op := &runtime.ClientOperation{ + ID: "putContacts", + Method: "PUT", + PathPattern: "/contacts", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PutContactsReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PutContactsOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for putContacts: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + // SetTransport changes the transport on the client func (a *Client) SetTransport(transport runtime.ClientTransport) { a.transport = transport diff --git a/api/sfgate/sfgate_client/contacts/delete_contacts_parameters.go b/api/sfgate/sfgate_client/contacts/delete_contacts_parameters.go new file mode 100644 index 0000000..0f5fea0 --- /dev/null +++ b/api/sfgate/sfgate_client/contacts/delete_contacts_parameters.go @@ -0,0 +1,167 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contacts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteContactsParams creates a new DeleteContactsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteContactsParams() *DeleteContactsParams { + return &DeleteContactsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteContactsParamsWithTimeout creates a new DeleteContactsParams object +// with the ability to set a timeout on a request. +func NewDeleteContactsParamsWithTimeout(timeout time.Duration) *DeleteContactsParams { + return &DeleteContactsParams{ + timeout: timeout, + } +} + +// NewDeleteContactsParamsWithContext creates a new DeleteContactsParams object +// with the ability to set a context for a request. +func NewDeleteContactsParamsWithContext(ctx context.Context) *DeleteContactsParams { + return &DeleteContactsParams{ + Context: ctx, + } +} + +// NewDeleteContactsParamsWithHTTPClient creates a new DeleteContactsParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteContactsParamsWithHTTPClient(client *http.Client) *DeleteContactsParams { + return &DeleteContactsParams{ + HTTPClient: client, + } +} + +/* +DeleteContactsParams contains all the parameters to send to the API endpoint + + for the delete contacts operation. + + Typically these are written to a http.Request. +*/ +type DeleteContactsParams struct { + + /* ContactID. + + Record Id of a Contact + */ + ContactID *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete contacts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteContactsParams) WithDefaults() *DeleteContactsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete contacts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteContactsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete contacts params +func (o *DeleteContactsParams) WithTimeout(timeout time.Duration) *DeleteContactsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete contacts params +func (o *DeleteContactsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete contacts params +func (o *DeleteContactsParams) WithContext(ctx context.Context) *DeleteContactsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete contacts params +func (o *DeleteContactsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete contacts params +func (o *DeleteContactsParams) WithHTTPClient(client *http.Client) *DeleteContactsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete contacts params +func (o *DeleteContactsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContactID adds the contactID to the delete contacts params +func (o *DeleteContactsParams) WithContactID(contactID *string) *DeleteContactsParams { + o.SetContactID(contactID) + return o +} + +// SetContactID adds the contactId to the delete contacts params +func (o *DeleteContactsParams) SetContactID(contactID *string) { + o.ContactID = contactID +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.ContactID != nil { + + // query param contactId + var qrContactID string + + if o.ContactID != nil { + qrContactID = *o.ContactID + } + qContactID := qrContactID + if qContactID != "" { + + if err := r.SetQueryParam("contactId", qContactID); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/sfgate/sfgate_client/contacts/delete_contacts_responses.go b/api/sfgate/sfgate_client/contacts/delete_contacts_responses.go new file mode 100644 index 0000000..52fa1da --- /dev/null +++ b/api/sfgate/sfgate_client/contacts/delete_contacts_responses.go @@ -0,0 +1,522 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contacts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// DeleteContactsReader is a Reader for the DeleteContacts structure. +type DeleteContactsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteContactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDeleteContactsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewDeleteContactsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewDeleteContactsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewDeleteContactsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewDeleteContactsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewDeleteContactsInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewDeleteContactsOK creates a DeleteContactsOK with default headers values +func NewDeleteContactsOK() *DeleteContactsOK { + return &DeleteContactsOK{} +} + +/* +DeleteContactsOK describes a response with status code 200, with default header values. + +Response with Contact objects +*/ +type DeleteContactsOK struct { + Payload *sfgate_models.ContactResponse +} + +// IsSuccess returns true when this delete contacts o k response has a 2xx status code +func (o *DeleteContactsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete contacts o k response has a 3xx status code +func (o *DeleteContactsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete contacts o k response has a 4xx status code +func (o *DeleteContactsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete contacts o k response has a 5xx status code +func (o *DeleteContactsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete contacts o k response a status code equal to that given +func (o *DeleteContactsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete contacts o k response +func (o *DeleteContactsOK) Code() int { + return 200 +} + +func (o *DeleteContactsOK) Error() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsOK %+v", 200, o.Payload) +} + +func (o *DeleteContactsOK) String() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsOK %+v", 200, o.Payload) +} + +func (o *DeleteContactsOK) GetPayload() *sfgate_models.ContactResponse { + return o.Payload +} + +func (o *DeleteContactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(sfgate_models.ContactResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContactsUnauthorized creates a DeleteContactsUnauthorized with default headers values +func NewDeleteContactsUnauthorized() *DeleteContactsUnauthorized { + return &DeleteContactsUnauthorized{} +} + +/* +DeleteContactsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type DeleteContactsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this delete contacts unauthorized response has a 2xx status code +func (o *DeleteContactsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete contacts unauthorized response has a 3xx status code +func (o *DeleteContactsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete contacts unauthorized response has a 4xx status code +func (o *DeleteContactsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete contacts unauthorized response has a 5xx status code +func (o *DeleteContactsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this delete contacts unauthorized response a status code equal to that given +func (o *DeleteContactsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the delete contacts unauthorized response +func (o *DeleteContactsUnauthorized) Code() int { + return 401 +} + +func (o *DeleteContactsUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsUnauthorized %+v", 401, o.Payload) +} + +func (o *DeleteContactsUnauthorized) String() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsUnauthorized %+v", 401, o.Payload) +} + +func (o *DeleteContactsUnauthorized) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *DeleteContactsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContactsForbidden creates a DeleteContactsForbidden with default headers values +func NewDeleteContactsForbidden() *DeleteContactsForbidden { + return &DeleteContactsForbidden{} +} + +/* +DeleteContactsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type DeleteContactsForbidden struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this delete contacts forbidden response has a 2xx status code +func (o *DeleteContactsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete contacts forbidden response has a 3xx status code +func (o *DeleteContactsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete contacts forbidden response has a 4xx status code +func (o *DeleteContactsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete contacts forbidden response has a 5xx status code +func (o *DeleteContactsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this delete contacts forbidden response a status code equal to that given +func (o *DeleteContactsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the delete contacts forbidden response +func (o *DeleteContactsForbidden) Code() int { + return 403 +} + +func (o *DeleteContactsForbidden) Error() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsForbidden %+v", 403, o.Payload) +} + +func (o *DeleteContactsForbidden) String() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsForbidden %+v", 403, o.Payload) +} + +func (o *DeleteContactsForbidden) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *DeleteContactsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContactsNotFound creates a DeleteContactsNotFound with default headers values +func NewDeleteContactsNotFound() *DeleteContactsNotFound { + return &DeleteContactsNotFound{} +} + +/* +DeleteContactsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type DeleteContactsNotFound struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this delete contacts not found response has a 2xx status code +func (o *DeleteContactsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete contacts not found response has a 3xx status code +func (o *DeleteContactsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete contacts not found response has a 4xx status code +func (o *DeleteContactsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete contacts not found response has a 5xx status code +func (o *DeleteContactsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this delete contacts not found response a status code equal to that given +func (o *DeleteContactsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the delete contacts not found response +func (o *DeleteContactsNotFound) Code() int { + return 404 +} + +func (o *DeleteContactsNotFound) Error() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsNotFound %+v", 404, o.Payload) +} + +func (o *DeleteContactsNotFound) String() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsNotFound %+v", 404, o.Payload) +} + +func (o *DeleteContactsNotFound) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *DeleteContactsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContactsUnprocessableEntity creates a DeleteContactsUnprocessableEntity with default headers values +func NewDeleteContactsUnprocessableEntity() *DeleteContactsUnprocessableEntity { + return &DeleteContactsUnprocessableEntity{} +} + +/* +DeleteContactsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type DeleteContactsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this delete contacts unprocessable entity response has a 2xx status code +func (o *DeleteContactsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete contacts unprocessable entity response has a 3xx status code +func (o *DeleteContactsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete contacts unprocessable entity response has a 4xx status code +func (o *DeleteContactsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this delete contacts unprocessable entity response has a 5xx status code +func (o *DeleteContactsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this delete contacts unprocessable entity response a status code equal to that given +func (o *DeleteContactsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the delete contacts unprocessable entity response +func (o *DeleteContactsUnprocessableEntity) Code() int { + return 422 +} + +func (o *DeleteContactsUnprocessableEntity) Error() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *DeleteContactsUnprocessableEntity) String() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *DeleteContactsUnprocessableEntity) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *DeleteContactsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteContactsInternalServerError creates a DeleteContactsInternalServerError with default headers values +func NewDeleteContactsInternalServerError() *DeleteContactsInternalServerError { + return &DeleteContactsInternalServerError{} +} + +/* +DeleteContactsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type DeleteContactsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this delete contacts internal server error response has a 2xx status code +func (o *DeleteContactsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this delete contacts internal server error response has a 3xx status code +func (o *DeleteContactsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete contacts internal server error response has a 4xx status code +func (o *DeleteContactsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete contacts internal server error response has a 5xx status code +func (o *DeleteContactsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this delete contacts internal server error response a status code equal to that given +func (o *DeleteContactsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the delete contacts internal server error response +func (o *DeleteContactsInternalServerError) Code() int { + return 500 +} + +func (o *DeleteContactsInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsInternalServerError %+v", 500, o.Payload) +} + +func (o *DeleteContactsInternalServerError) String() string { + return fmt.Sprintf("[DELETE /contacts][%d] deleteContactsInternalServerError %+v", 500, o.Payload) +} + +func (o *DeleteContactsInternalServerError) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *DeleteContactsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go b/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go index f3b53dd..92b453a 100644 --- a/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go +++ b/api/sfgate/sfgate_client/contacts/get_contacts_parameters.go @@ -68,7 +68,7 @@ type GetContactsParams struct { /* AccountID. - Taxnexus Record Id of an Account + Record Id of an Account */ AccountID *string @@ -80,7 +80,7 @@ type GetContactsParams struct { /* ContactID. - Taxnexus Record Id of a Contact + Record Id of a Contact */ ContactID *string diff --git a/api/sfgate/sfgate_client/contacts/get_contacts_responses.go b/api/sfgate/sfgate_client/contacts/get_contacts_responses.go index 978ddb1..f096000 100644 --- a/api/sfgate/sfgate_client/contacts/get_contacts_responses.go +++ b/api/sfgate/sfgate_client/contacts/get_contacts_responses.go @@ -76,7 +76,7 @@ func NewGetContactsOK() *GetContactsOK { /* GetContactsOK describes a response with status code 200, with default header values. -Taxnexus Response with Contact objects +Response with Contact objects */ type GetContactsOK struct { Payload *sfgate_models.ContactResponse diff --git a/api/sfgate/sfgate_client/contacts/post_contacts_responses.go b/api/sfgate/sfgate_client/contacts/post_contacts_responses.go index ad9f40a..8d45b4b 100644 --- a/api/sfgate/sfgate_client/contacts/post_contacts_responses.go +++ b/api/sfgate/sfgate_client/contacts/post_contacts_responses.go @@ -27,8 +27,8 @@ type PostContactsReader struct { // ReadResponse reads a server response into the received o. func (o *PostContactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostContactsOK() + case 201: + result := NewPostContactsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -62,65 +62,65 @@ func (o *PostContactsReader) ReadResponse(response runtime.ClientResponse, consu } } -// NewPostContactsOK creates a PostContactsOK with default headers values -func NewPostContactsOK() *PostContactsOK { - return &PostContactsOK{} +// NewPostContactsCreated creates a PostContactsCreated with default headers values +func NewPostContactsCreated() *PostContactsCreated { + return &PostContactsCreated{} } /* -PostContactsOK describes a response with status code 200, with default header values. +PostContactsCreated describes a response with status code 201, with default header values. -Taxnexus Response with Contact objects +Response from Salesforce */ -type PostContactsOK struct { - Payload *sfgate_models.ContactResponse +type PostContactsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post contacts o k response has a 2xx status code -func (o *PostContactsOK) IsSuccess() bool { +// IsSuccess returns true when this post contacts created response has a 2xx status code +func (o *PostContactsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post contacts o k response has a 3xx status code -func (o *PostContactsOK) IsRedirect() bool { +// IsRedirect returns true when this post contacts created response has a 3xx status code +func (o *PostContactsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post contacts o k response has a 4xx status code -func (o *PostContactsOK) IsClientError() bool { +// IsClientError returns true when this post contacts created response has a 4xx status code +func (o *PostContactsCreated) IsClientError() bool { return false } -// IsServerError returns true when this post contacts o k response has a 5xx status code -func (o *PostContactsOK) IsServerError() bool { +// IsServerError returns true when this post contacts created response has a 5xx status code +func (o *PostContactsCreated) IsServerError() bool { return false } -// IsCode returns true when this post contacts o k response a status code equal to that given -func (o *PostContactsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post contacts created response a status code equal to that given +func (o *PostContactsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post contacts o k response -func (o *PostContactsOK) Code() int { - return 200 +// Code gets the status code for the post contacts created response +func (o *PostContactsCreated) Code() int { + return 201 } -func (o *PostContactsOK) Error() string { - return fmt.Sprintf("[POST /contacts][%d] postContactsOK %+v", 200, o.Payload) +func (o *PostContactsCreated) Error() string { + return fmt.Sprintf("[POST /contacts][%d] postContactsCreated %+v", 201, o.Payload) } -func (o *PostContactsOK) String() string { - return fmt.Sprintf("[POST /contacts][%d] postContactsOK %+v", 200, o.Payload) +func (o *PostContactsCreated) String() string { + return fmt.Sprintf("[POST /contacts][%d] postContactsCreated %+v", 201, o.Payload) } -func (o *PostContactsOK) GetPayload() *sfgate_models.ContactResponse { +func (o *PostContactsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostContactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostContactsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(sfgate_models.ContactResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/contacts/put_contacts_parameters.go b/api/sfgate/sfgate_client/contacts/put_contacts_parameters.go new file mode 100644 index 0000000..5fcf969 --- /dev/null +++ b/api/sfgate/sfgate_client/contacts/put_contacts_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contacts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// NewPutContactsParams creates a new PutContactsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPutContactsParams() *PutContactsParams { + return &PutContactsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPutContactsParamsWithTimeout creates a new PutContactsParams object +// with the ability to set a timeout on a request. +func NewPutContactsParamsWithTimeout(timeout time.Duration) *PutContactsParams { + return &PutContactsParams{ + timeout: timeout, + } +} + +// NewPutContactsParamsWithContext creates a new PutContactsParams object +// with the ability to set a context for a request. +func NewPutContactsParamsWithContext(ctx context.Context) *PutContactsParams { + return &PutContactsParams{ + Context: ctx, + } +} + +// NewPutContactsParamsWithHTTPClient creates a new PutContactsParams object +// with the ability to set a custom HTTPClient for a request. +func NewPutContactsParamsWithHTTPClient(client *http.Client) *PutContactsParams { + return &PutContactsParams{ + HTTPClient: client, + } +} + +/* +PutContactsParams contains all the parameters to send to the API endpoint + + for the put contacts operation. + + Typically these are written to a http.Request. +*/ +type PutContactsParams struct { + + /* ContactRequest. + + An array of new Contact records + */ + ContactRequest *sfgate_models.ContactRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the put contacts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PutContactsParams) WithDefaults() *PutContactsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the put contacts params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PutContactsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the put contacts params +func (o *PutContactsParams) WithTimeout(timeout time.Duration) *PutContactsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the put contacts params +func (o *PutContactsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the put contacts params +func (o *PutContactsParams) WithContext(ctx context.Context) *PutContactsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the put contacts params +func (o *PutContactsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the put contacts params +func (o *PutContactsParams) WithHTTPClient(client *http.Client) *PutContactsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the put contacts params +func (o *PutContactsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithContactRequest adds the contactRequest to the put contacts params +func (o *PutContactsParams) WithContactRequest(contactRequest *sfgate_models.ContactRequest) *PutContactsParams { + o.SetContactRequest(contactRequest) + return o +} + +// SetContactRequest adds the contactRequest to the put contacts params +func (o *PutContactsParams) SetContactRequest(contactRequest *sfgate_models.ContactRequest) { + o.ContactRequest = contactRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PutContactsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.ContactRequest != nil { + if err := r.SetBodyParam(o.ContactRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/sfgate/sfgate_client/contacts/put_contacts_responses.go b/api/sfgate/sfgate_client/contacts/put_contacts_responses.go new file mode 100644 index 0000000..9aa97f4 --- /dev/null +++ b/api/sfgate/sfgate_client/contacts/put_contacts_responses.go @@ -0,0 +1,522 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package contacts + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// PutContactsReader is a Reader for the PutContacts structure. +type PutContactsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PutContactsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPutContactsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPutContactsUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPutContactsForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPutContactsNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPutContactsUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPutContactsInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPutContactsOK creates a PutContactsOK with default headers values +func NewPutContactsOK() *PutContactsOK { + return &PutContactsOK{} +} + +/* +PutContactsOK describes a response with status code 200, with default header values. + +Response with Contact objects +*/ +type PutContactsOK struct { + Payload *sfgate_models.ContactResponse +} + +// IsSuccess returns true when this put contacts o k response has a 2xx status code +func (o *PutContactsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this put contacts o k response has a 3xx status code +func (o *PutContactsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put contacts o k response has a 4xx status code +func (o *PutContactsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this put contacts o k response has a 5xx status code +func (o *PutContactsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this put contacts o k response a status code equal to that given +func (o *PutContactsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the put contacts o k response +func (o *PutContactsOK) Code() int { + return 200 +} + +func (o *PutContactsOK) Error() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsOK %+v", 200, o.Payload) +} + +func (o *PutContactsOK) String() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsOK %+v", 200, o.Payload) +} + +func (o *PutContactsOK) GetPayload() *sfgate_models.ContactResponse { + return o.Payload +} + +func (o *PutContactsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(sfgate_models.ContactResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContactsUnauthorized creates a PutContactsUnauthorized with default headers values +func NewPutContactsUnauthorized() *PutContactsUnauthorized { + return &PutContactsUnauthorized{} +} + +/* +PutContactsUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PutContactsUnauthorized struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put contacts unauthorized response has a 2xx status code +func (o *PutContactsUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put contacts unauthorized response has a 3xx status code +func (o *PutContactsUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put contacts unauthorized response has a 4xx status code +func (o *PutContactsUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this put contacts unauthorized response has a 5xx status code +func (o *PutContactsUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this put contacts unauthorized response a status code equal to that given +func (o *PutContactsUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the put contacts unauthorized response +func (o *PutContactsUnauthorized) Code() int { + return 401 +} + +func (o *PutContactsUnauthorized) Error() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsUnauthorized %+v", 401, o.Payload) +} + +func (o *PutContactsUnauthorized) String() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsUnauthorized %+v", 401, o.Payload) +} + +func (o *PutContactsUnauthorized) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutContactsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContactsForbidden creates a PutContactsForbidden with default headers values +func NewPutContactsForbidden() *PutContactsForbidden { + return &PutContactsForbidden{} +} + +/* +PutContactsForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PutContactsForbidden struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put contacts forbidden response has a 2xx status code +func (o *PutContactsForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put contacts forbidden response has a 3xx status code +func (o *PutContactsForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put contacts forbidden response has a 4xx status code +func (o *PutContactsForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this put contacts forbidden response has a 5xx status code +func (o *PutContactsForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this put contacts forbidden response a status code equal to that given +func (o *PutContactsForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the put contacts forbidden response +func (o *PutContactsForbidden) Code() int { + return 403 +} + +func (o *PutContactsForbidden) Error() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsForbidden %+v", 403, o.Payload) +} + +func (o *PutContactsForbidden) String() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsForbidden %+v", 403, o.Payload) +} + +func (o *PutContactsForbidden) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutContactsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContactsNotFound creates a PutContactsNotFound with default headers values +func NewPutContactsNotFound() *PutContactsNotFound { + return &PutContactsNotFound{} +} + +/* +PutContactsNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PutContactsNotFound struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put contacts not found response has a 2xx status code +func (o *PutContactsNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put contacts not found response has a 3xx status code +func (o *PutContactsNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put contacts not found response has a 4xx status code +func (o *PutContactsNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this put contacts not found response has a 5xx status code +func (o *PutContactsNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this put contacts not found response a status code equal to that given +func (o *PutContactsNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the put contacts not found response +func (o *PutContactsNotFound) Code() int { + return 404 +} + +func (o *PutContactsNotFound) Error() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsNotFound %+v", 404, o.Payload) +} + +func (o *PutContactsNotFound) String() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsNotFound %+v", 404, o.Payload) +} + +func (o *PutContactsNotFound) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutContactsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContactsUnprocessableEntity creates a PutContactsUnprocessableEntity with default headers values +func NewPutContactsUnprocessableEntity() *PutContactsUnprocessableEntity { + return &PutContactsUnprocessableEntity{} +} + +/* +PutContactsUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PutContactsUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put contacts unprocessable entity response has a 2xx status code +func (o *PutContactsUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put contacts unprocessable entity response has a 3xx status code +func (o *PutContactsUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put contacts unprocessable entity response has a 4xx status code +func (o *PutContactsUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this put contacts unprocessable entity response has a 5xx status code +func (o *PutContactsUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this put contacts unprocessable entity response a status code equal to that given +func (o *PutContactsUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the put contacts unprocessable entity response +func (o *PutContactsUnprocessableEntity) Code() int { + return 422 +} + +func (o *PutContactsUnprocessableEntity) Error() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *PutContactsUnprocessableEntity) String() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *PutContactsUnprocessableEntity) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutContactsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPutContactsInternalServerError creates a PutContactsInternalServerError with default headers values +func NewPutContactsInternalServerError() *PutContactsInternalServerError { + return &PutContactsInternalServerError{} +} + +/* +PutContactsInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PutContactsInternalServerError struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this put contacts internal server error response has a 2xx status code +func (o *PutContactsInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this put contacts internal server error response has a 3xx status code +func (o *PutContactsInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this put contacts internal server error response has a 4xx status code +func (o *PutContactsInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this put contacts internal server error response has a 5xx status code +func (o *PutContactsInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this put contacts internal server error response a status code equal to that given +func (o *PutContactsInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the put contacts internal server error response +func (o *PutContactsInternalServerError) Code() int { + return 500 +} + +func (o *PutContactsInternalServerError) Error() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsInternalServerError %+v", 500, o.Payload) +} + +func (o *PutContactsInternalServerError) String() string { + return fmt.Sprintf("[PUT /contacts][%d] putContactsInternalServerError %+v", 500, o.Payload) +} + +func (o *PutContactsInternalServerError) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PutContactsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/sfgate/sfgate_client/contracts/contracts_client.go b/api/sfgate/sfgate_client/contracts/contracts_client.go index 4ca6960..57e41a6 100644 --- a/api/sfgate/sfgate_client/contracts/contracts_client.go +++ b/api/sfgate/sfgate_client/contracts/contracts_client.go @@ -36,8 +36,6 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetContracts(params *GetContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetContractsOK, error) - PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) - SetTransport(transport runtime.ClientTransport) } @@ -82,47 +80,6 @@ func (a *Client) GetContracts(params *GetContractsParams, authInfo runtime.Clien panic(msg) } -/* -PostContracts adds a new contract to taxnexus - -Contract record to be added -*/ -func (a *Client) PostContracts(params *PostContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostContractsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostContractsParams() - } - op := &runtime.ClientOperation{ - ID: "postContracts", - Method: "POST", - PathPattern: "/contracts", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PostContractsReader{formats: a.formats}, - AuthInfo: authInfo, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*PostContractsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for postContracts: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - // SetTransport changes the transport on the client func (a *Client) SetTransport(transport runtime.ClientTransport) { a.transport = transport diff --git a/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go b/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go index b3aaa02..91d50b7 100644 --- a/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go +++ b/api/sfgate/sfgate_client/contracts/get_contracts_parameters.go @@ -74,7 +74,7 @@ type GetContractsParams struct { /* ContractID. - Taxnexus Contact record ID + Contact record ID */ ContractID *string diff --git a/api/sfgate/sfgate_client/contracts/get_contracts_responses.go b/api/sfgate/sfgate_client/contracts/get_contracts_responses.go index 036e3f7..1f8e4fa 100644 --- a/api/sfgate/sfgate_client/contracts/get_contracts_responses.go +++ b/api/sfgate/sfgate_client/contracts/get_contracts_responses.go @@ -76,7 +76,7 @@ func NewGetContractsOK() *GetContractsOK { /* GetContractsOK describes a response with status code 200, with default header values. -Taxnexus Response with an array of Contract objects +Response with an array of Contract objects */ type GetContractsOK struct { AccessControlAllowOrigin string diff --git a/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go b/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go deleted file mode 100644 index 58cbee7..0000000 --- a/api/sfgate/sfgate_client/contracts/post_contracts_parameters.go +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package contracts - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" -) - -// NewPostContractsParams creates a new PostContractsParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewPostContractsParams() *PostContractsParams { - return &PostContractsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewPostContractsParamsWithTimeout creates a new PostContractsParams object -// with the ability to set a timeout on a request. -func NewPostContractsParamsWithTimeout(timeout time.Duration) *PostContractsParams { - return &PostContractsParams{ - timeout: timeout, - } -} - -// NewPostContractsParamsWithContext creates a new PostContractsParams object -// with the ability to set a context for a request. -func NewPostContractsParamsWithContext(ctx context.Context) *PostContractsParams { - return &PostContractsParams{ - Context: ctx, - } -} - -// NewPostContractsParamsWithHTTPClient creates a new PostContractsParams object -// with the ability to set a custom HTTPClient for a request. -func NewPostContractsParamsWithHTTPClient(client *http.Client) *PostContractsParams { - return &PostContractsParams{ - HTTPClient: client, - } -} - -/* -PostContractsParams contains all the parameters to send to the API endpoint - - for the post contracts operation. - - Typically these are written to a http.Request. -*/ -type PostContractsParams struct { - - /* ContractsRequest. - - An array of new Contract records - */ - ContractsRequest *sfgate_models.ContractRequest - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the post contracts params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostContractsParams) WithDefaults() *PostContractsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the post contracts params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *PostContractsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the post contracts params -func (o *PostContractsParams) WithTimeout(timeout time.Duration) *PostContractsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the post contracts params -func (o *PostContractsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the post contracts params -func (o *PostContractsParams) WithContext(ctx context.Context) *PostContractsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the post contracts params -func (o *PostContractsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the post contracts params -func (o *PostContractsParams) WithHTTPClient(client *http.Client) *PostContractsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the post contracts params -func (o *PostContractsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithContractsRequest adds the contractsRequest to the post contracts params -func (o *PostContractsParams) WithContractsRequest(contractsRequest *sfgate_models.ContractRequest) *PostContractsParams { - o.SetContractsRequest(contractsRequest) - return o -} - -// SetContractsRequest adds the contractsRequest to the post contracts params -func (o *PostContractsParams) SetContractsRequest(contractsRequest *sfgate_models.ContractRequest) { - o.ContractsRequest = contractsRequest -} - -// WriteToRequest writes these params to a swagger request -func (o *PostContractsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - if o.ContractsRequest != nil { - if err := r.SetBodyParam(o.ContractsRequest); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/sfgate/sfgate_client/contracts/post_contracts_responses.go b/api/sfgate/sfgate_client/contracts/post_contracts_responses.go deleted file mode 100644 index ee1f400..0000000 --- a/api/sfgate/sfgate_client/contracts/post_contracts_responses.go +++ /dev/null @@ -1,539 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// (c) 2012-2020 by Taxnexus, Inc. -// All rights reserved worldwide. -// Proprietary product; unlicensed use is not allowed - -package contracts - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" -) - -// PostContractsReader is a Reader for the PostContracts structure. -type PostContractsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PostContractsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPostContractsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 401: - result := NewPostContractsUnauthorized() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 403: - result := NewPostContractsForbidden() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 404: - result := NewPostContractsNotFound() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 422: - result := NewPostContractsUnprocessableEntity() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - case 500: - result := NewPostContractsInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) - } -} - -// NewPostContractsOK creates a PostContractsOK with default headers values -func NewPostContractsOK() *PostContractsOK { - return &PostContractsOK{} -} - -/* -PostContractsOK describes a response with status code 200, with default header values. - -Taxnexus Response with an array of Contract objects -*/ -type PostContractsOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.ContractResponse -} - -// IsSuccess returns true when this post contracts o k response has a 2xx status code -func (o *PostContractsOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this post contracts o k response has a 3xx status code -func (o *PostContractsOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post contracts o k response has a 4xx status code -func (o *PostContractsOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this post contracts o k response has a 5xx status code -func (o *PostContractsOK) IsServerError() bool { - return false -} - -// IsCode returns true when this post contracts o k response a status code equal to that given -func (o *PostContractsOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the post contracts o k response -func (o *PostContractsOK) Code() int { - return 200 -} - -func (o *PostContractsOK) Error() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload) -} - -func (o *PostContractsOK) String() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsOK %+v", 200, o.Payload) -} - -func (o *PostContractsOK) GetPayload() *sfgate_models.ContractResponse { - return o.Payload -} - -func (o *PostContractsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.ContractResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostContractsUnauthorized creates a PostContractsUnauthorized with default headers values -func NewPostContractsUnauthorized() *PostContractsUnauthorized { - return &PostContractsUnauthorized{} -} - -/* -PostContractsUnauthorized describes a response with status code 401, with default header values. - -Access unauthorized, invalid API-KEY was used -*/ -type PostContractsUnauthorized struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this post contracts unauthorized response has a 2xx status code -func (o *PostContractsUnauthorized) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post contracts unauthorized response has a 3xx status code -func (o *PostContractsUnauthorized) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post contracts unauthorized response has a 4xx status code -func (o *PostContractsUnauthorized) IsClientError() bool { - return true -} - -// IsServerError returns true when this post contracts unauthorized response has a 5xx status code -func (o *PostContractsUnauthorized) IsServerError() bool { - return false -} - -// IsCode returns true when this post contracts unauthorized response a status code equal to that given -func (o *PostContractsUnauthorized) IsCode(code int) bool { - return code == 401 -} - -// Code gets the status code for the post contracts unauthorized response -func (o *PostContractsUnauthorized) Code() int { - return 401 -} - -func (o *PostContractsUnauthorized) Error() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload) -} - -func (o *PostContractsUnauthorized) String() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsUnauthorized %+v", 401, o.Payload) -} - -func (o *PostContractsUnauthorized) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PostContractsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostContractsForbidden creates a PostContractsForbidden with default headers values -func NewPostContractsForbidden() *PostContractsForbidden { - return &PostContractsForbidden{} -} - -/* -PostContractsForbidden describes a response with status code 403, with default header values. - -Access forbidden, account lacks access -*/ -type PostContractsForbidden struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this post contracts forbidden response has a 2xx status code -func (o *PostContractsForbidden) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post contracts forbidden response has a 3xx status code -func (o *PostContractsForbidden) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post contracts forbidden response has a 4xx status code -func (o *PostContractsForbidden) IsClientError() bool { - return true -} - -// IsServerError returns true when this post contracts forbidden response has a 5xx status code -func (o *PostContractsForbidden) IsServerError() bool { - return false -} - -// IsCode returns true when this post contracts forbidden response a status code equal to that given -func (o *PostContractsForbidden) IsCode(code int) bool { - return code == 403 -} - -// Code gets the status code for the post contracts forbidden response -func (o *PostContractsForbidden) Code() int { - return 403 -} - -func (o *PostContractsForbidden) Error() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload) -} - -func (o *PostContractsForbidden) String() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsForbidden %+v", 403, o.Payload) -} - -func (o *PostContractsForbidden) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PostContractsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostContractsNotFound creates a PostContractsNotFound with default headers values -func NewPostContractsNotFound() *PostContractsNotFound { - return &PostContractsNotFound{} -} - -/* -PostContractsNotFound describes a response with status code 404, with default header values. - -Resource was not found -*/ -type PostContractsNotFound struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this post contracts not found response has a 2xx status code -func (o *PostContractsNotFound) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post contracts not found response has a 3xx status code -func (o *PostContractsNotFound) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post contracts not found response has a 4xx status code -func (o *PostContractsNotFound) IsClientError() bool { - return true -} - -// IsServerError returns true when this post contracts not found response has a 5xx status code -func (o *PostContractsNotFound) IsServerError() bool { - return false -} - -// IsCode returns true when this post contracts not found response a status code equal to that given -func (o *PostContractsNotFound) IsCode(code int) bool { - return code == 404 -} - -// Code gets the status code for the post contracts not found response -func (o *PostContractsNotFound) Code() int { - return 404 -} - -func (o *PostContractsNotFound) Error() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload) -} - -func (o *PostContractsNotFound) String() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsNotFound %+v", 404, o.Payload) -} - -func (o *PostContractsNotFound) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PostContractsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostContractsUnprocessableEntity creates a PostContractsUnprocessableEntity with default headers values -func NewPostContractsUnprocessableEntity() *PostContractsUnprocessableEntity { - return &PostContractsUnprocessableEntity{} -} - -/* -PostContractsUnprocessableEntity describes a response with status code 422, with default header values. - -Unprocessable Entity, likely a bad parameter -*/ -type PostContractsUnprocessableEntity struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this post contracts unprocessable entity response has a 2xx status code -func (o *PostContractsUnprocessableEntity) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post contracts unprocessable entity response has a 3xx status code -func (o *PostContractsUnprocessableEntity) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post contracts unprocessable entity response has a 4xx status code -func (o *PostContractsUnprocessableEntity) IsClientError() bool { - return true -} - -// IsServerError returns true when this post contracts unprocessable entity response has a 5xx status code -func (o *PostContractsUnprocessableEntity) IsServerError() bool { - return false -} - -// IsCode returns true when this post contracts unprocessable entity response a status code equal to that given -func (o *PostContractsUnprocessableEntity) IsCode(code int) bool { - return code == 422 -} - -// Code gets the status code for the post contracts unprocessable entity response -func (o *PostContractsUnprocessableEntity) Code() int { - return 422 -} - -func (o *PostContractsUnprocessableEntity) Error() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *PostContractsUnprocessableEntity) String() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsUnprocessableEntity %+v", 422, o.Payload) -} - -func (o *PostContractsUnprocessableEntity) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PostContractsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPostContractsInternalServerError creates a PostContractsInternalServerError with default headers values -func NewPostContractsInternalServerError() *PostContractsInternalServerError { - return &PostContractsInternalServerError{} -} - -/* -PostContractsInternalServerError describes a response with status code 500, with default header values. - -Server Internal Error -*/ -type PostContractsInternalServerError struct { - AccessControlAllowOrigin string - - Payload *sfgate_models.Error -} - -// IsSuccess returns true when this post contracts internal server error response has a 2xx status code -func (o *PostContractsInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this post contracts internal server error response has a 3xx status code -func (o *PostContractsInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this post contracts internal server error response has a 4xx status code -func (o *PostContractsInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this post contracts internal server error response has a 5xx status code -func (o *PostContractsInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this post contracts internal server error response a status code equal to that given -func (o *PostContractsInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the post contracts internal server error response -func (o *PostContractsInternalServerError) Code() int { - return 500 -} - -func (o *PostContractsInternalServerError) Error() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload) -} - -func (o *PostContractsInternalServerError) String() string { - return fmt.Sprintf("[POST /contracts][%d] postContractsInternalServerError %+v", 500, o.Payload) -} - -func (o *PostContractsInternalServerError) GetPayload() *sfgate_models.Error { - return o.Payload -} - -func (o *PostContractsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - o.Payload = new(sfgate_models.Error) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/api/sfgate/sfgate_client/databases/databases_client.go b/api/sfgate/sfgate_client/databases/databases_client.go index 50a88a2..434757b 100644 --- a/api/sfgate/sfgate_client/databases/databases_client.go +++ b/api/sfgate/sfgate_client/databases/databases_client.go @@ -36,7 +36,7 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetDatabases(params *GetDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDatabasesOK, error) - PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesOK, error) + PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesCreated, error) PutDatabases(params *PutDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutDatabasesOK, error) @@ -87,9 +87,9 @@ func (a *Client) GetDatabases(params *GetDatabasesParams, authInfo runtime.Clien /* PostDatabases creates new databases -Create Databases in Taxnexus +Create Databases in Salesforce */ -func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesOK, error) { +func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostDatabasesCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostDatabasesParams() @@ -115,7 +115,7 @@ func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.Cli if err != nil { return nil, err } - success, ok := result.(*PostDatabasesOK) + success, ok := result.(*PostDatabasesCreated) if ok { return success, nil } @@ -128,7 +128,7 @@ func (a *Client) PostDatabases(params *PostDatabasesParams, authInfo runtime.Cli /* PutDatabases updates databases -Update Database in Taxnexus +Update Database in Salesforce */ func (a *Client) PutDatabases(params *PutDatabasesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutDatabasesOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/databases/get_databases_parameters.go b/api/sfgate/sfgate_client/databases/get_databases_parameters.go index 8031c55..cb5880f 100644 --- a/api/sfgate/sfgate_client/databases/get_databases_parameters.go +++ b/api/sfgate/sfgate_client/databases/get_databases_parameters.go @@ -68,7 +68,7 @@ type GetDatabasesParams struct { /* DatabaseID. - Taxnexus Record Id of a Database + Record Id of a Database */ DatabaseID *string diff --git a/api/sfgate/sfgate_client/databases/get_databases_responses.go b/api/sfgate/sfgate_client/databases/get_databases_responses.go index 70c8dcb..78c90f2 100644 --- a/api/sfgate/sfgate_client/databases/get_databases_responses.go +++ b/api/sfgate/sfgate_client/databases/get_databases_responses.go @@ -76,7 +76,7 @@ func NewGetDatabasesOK() *GetDatabasesOK { /* GetDatabasesOK describes a response with status code 200, with default header values. -Taxnexus Response with Database objects +Response with Database objects */ type GetDatabasesOK struct { Payload *sfgate_models.DatabaseResponse diff --git a/api/sfgate/sfgate_client/databases/post_databases_responses.go b/api/sfgate/sfgate_client/databases/post_databases_responses.go index 93ddc8b..0ed464d 100644 --- a/api/sfgate/sfgate_client/databases/post_databases_responses.go +++ b/api/sfgate/sfgate_client/databases/post_databases_responses.go @@ -27,8 +27,8 @@ type PostDatabasesReader struct { // ReadResponse reads a server response into the received o. func (o *PostDatabasesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostDatabasesOK() + case 201: + result := NewPostDatabasesCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,65 +68,65 @@ func (o *PostDatabasesReader) ReadResponse(response runtime.ClientResponse, cons } } -// NewPostDatabasesOK creates a PostDatabasesOK with default headers values -func NewPostDatabasesOK() *PostDatabasesOK { - return &PostDatabasesOK{} +// NewPostDatabasesCreated creates a PostDatabasesCreated with default headers values +func NewPostDatabasesCreated() *PostDatabasesCreated { + return &PostDatabasesCreated{} } /* -PostDatabasesOK describes a response with status code 200, with default header values. +PostDatabasesCreated describes a response with status code 201, with default header values. -Taxnexus Response with Database objects +Response from Salesforce */ -type PostDatabasesOK struct { - Payload *sfgate_models.DatabaseResponse +type PostDatabasesCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post databases o k response has a 2xx status code -func (o *PostDatabasesOK) IsSuccess() bool { +// IsSuccess returns true when this post databases created response has a 2xx status code +func (o *PostDatabasesCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post databases o k response has a 3xx status code -func (o *PostDatabasesOK) IsRedirect() bool { +// IsRedirect returns true when this post databases created response has a 3xx status code +func (o *PostDatabasesCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post databases o k response has a 4xx status code -func (o *PostDatabasesOK) IsClientError() bool { +// IsClientError returns true when this post databases created response has a 4xx status code +func (o *PostDatabasesCreated) IsClientError() bool { return false } -// IsServerError returns true when this post databases o k response has a 5xx status code -func (o *PostDatabasesOK) IsServerError() bool { +// IsServerError returns true when this post databases created response has a 5xx status code +func (o *PostDatabasesCreated) IsServerError() bool { return false } -// IsCode returns true when this post databases o k response a status code equal to that given -func (o *PostDatabasesOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post databases created response a status code equal to that given +func (o *PostDatabasesCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post databases o k response -func (o *PostDatabasesOK) Code() int { - return 200 +// Code gets the status code for the post databases created response +func (o *PostDatabasesCreated) Code() int { + return 201 } -func (o *PostDatabasesOK) Error() string { - return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) +func (o *PostDatabasesCreated) Error() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesCreated %+v", 201, o.Payload) } -func (o *PostDatabasesOK) String() string { - return fmt.Sprintf("[POST /databases][%d] postDatabasesOK %+v", 200, o.Payload) +func (o *PostDatabasesCreated) String() string { + return fmt.Sprintf("[POST /databases][%d] postDatabasesCreated %+v", 201, o.Payload) } -func (o *PostDatabasesOK) GetPayload() *sfgate_models.DatabaseResponse { +func (o *PostDatabasesCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostDatabasesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostDatabasesCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(sfgate_models.DatabaseResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/databases/put_databases_responses.go b/api/sfgate/sfgate_client/databases/put_databases_responses.go index e9c2561..bec5bfd 100644 --- a/api/sfgate/sfgate_client/databases/put_databases_responses.go +++ b/api/sfgate/sfgate_client/databases/put_databases_responses.go @@ -76,7 +76,7 @@ func NewPutDatabasesOK() *PutDatabasesOK { /* PutDatabasesOK describes a response with status code 200, with default header values. -Taxnexus Response with Database objects +Response with Database objects */ type PutDatabasesOK struct { Payload *sfgate_models.DatabaseResponse diff --git a/api/sfgate/sfgate_client/industries/get_industries_parameters.go b/api/sfgate/sfgate_client/industries/get_industries_parameters.go index aaf220f..ad303ee 100644 --- a/api/sfgate/sfgate_client/industries/get_industries_parameters.go +++ b/api/sfgate/sfgate_client/industries/get_industries_parameters.go @@ -74,7 +74,7 @@ type GetIndustriesParams struct { /* IndustryID. - Taxnexus Industry record ID + Industry record ID */ IndustryID *string diff --git a/api/sfgate/sfgate_client/industries/get_industries_responses.go b/api/sfgate/sfgate_client/industries/get_industries_responses.go index d0dbb30..3dbe647 100644 --- a/api/sfgate/sfgate_client/industries/get_industries_responses.go +++ b/api/sfgate/sfgate_client/industries/get_industries_responses.go @@ -76,7 +76,7 @@ func NewGetIndustriesOK() *GetIndustriesOK { /* GetIndustriesOK describes a response with status code 200, with default header values. -Taxnexus Response with Industry objects +Response with Industry objects */ type GetIndustriesOK struct { AccessControlAllowOrigin string diff --git a/api/sfgate/sfgate_client/industries/industries_client.go b/api/sfgate/sfgate_client/industries/industries_client.go index d249cee..0372053 100644 --- a/api/sfgate/sfgate_client/industries/industries_client.go +++ b/api/sfgate/sfgate_client/industries/industries_client.go @@ -36,7 +36,7 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetIndustries(params *GetIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustriesOK, error) - PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error) + PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesCreated, error) SetTransport(transport runtime.ClientTransport) } @@ -87,7 +87,7 @@ PostIndustries adds a new industry to taxnexus Industry record to be added */ -func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesOK, error) { +func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustriesCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostIndustriesParams() @@ -113,7 +113,7 @@ func (a *Client) PostIndustries(params *PostIndustriesParams, authInfo runtime.C if err != nil { return nil, err } - success, ok := result.(*PostIndustriesOK) + success, ok := result.(*PostIndustriesCreated) if ok { return success, nil } diff --git a/api/sfgate/sfgate_client/industries/post_industries_responses.go b/api/sfgate/sfgate_client/industries/post_industries_responses.go index 83ad66b..aa16ebe 100644 --- a/api/sfgate/sfgate_client/industries/post_industries_responses.go +++ b/api/sfgate/sfgate_client/industries/post_industries_responses.go @@ -27,8 +27,8 @@ type PostIndustriesReader struct { // ReadResponse reads a server response into the received o. func (o *PostIndustriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostIndustriesOK() + case 201: + result := NewPostIndustriesCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,82 +68,65 @@ func (o *PostIndustriesReader) ReadResponse(response runtime.ClientResponse, con } } -// NewPostIndustriesOK creates a PostIndustriesOK with default headers values -func NewPostIndustriesOK() *PostIndustriesOK { - return &PostIndustriesOK{} +// NewPostIndustriesCreated creates a PostIndustriesCreated with default headers values +func NewPostIndustriesCreated() *PostIndustriesCreated { + return &PostIndustriesCreated{} } /* -PostIndustriesOK describes a response with status code 200, with default header values. +PostIndustriesCreated describes a response with status code 201, with default header values. -Taxnexus Response with Industry objects +Response from Salesforce */ -type PostIndustriesOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.IndustryResponse +type PostIndustriesCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post industries o k response has a 2xx status code -func (o *PostIndustriesOK) IsSuccess() bool { +// IsSuccess returns true when this post industries created response has a 2xx status code +func (o *PostIndustriesCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post industries o k response has a 3xx status code -func (o *PostIndustriesOK) IsRedirect() bool { +// IsRedirect returns true when this post industries created response has a 3xx status code +func (o *PostIndustriesCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post industries o k response has a 4xx status code -func (o *PostIndustriesOK) IsClientError() bool { +// IsClientError returns true when this post industries created response has a 4xx status code +func (o *PostIndustriesCreated) IsClientError() bool { return false } -// IsServerError returns true when this post industries o k response has a 5xx status code -func (o *PostIndustriesOK) IsServerError() bool { +// IsServerError returns true when this post industries created response has a 5xx status code +func (o *PostIndustriesCreated) IsServerError() bool { return false } -// IsCode returns true when this post industries o k response a status code equal to that given -func (o *PostIndustriesOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post industries created response a status code equal to that given +func (o *PostIndustriesCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post industries o k response -func (o *PostIndustriesOK) Code() int { - return 200 +// Code gets the status code for the post industries created response +func (o *PostIndustriesCreated) Code() int { + return 201 } -func (o *PostIndustriesOK) Error() string { - return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload) +func (o *PostIndustriesCreated) Error() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesCreated %+v", 201, o.Payload) } -func (o *PostIndustriesOK) String() string { - return fmt.Sprintf("[POST /industries][%d] postIndustriesOK %+v", 200, o.Payload) +func (o *PostIndustriesCreated) String() string { + return fmt.Sprintf("[POST /industries][%d] postIndustriesCreated %+v", 201, o.Payload) } -func (o *PostIndustriesOK) GetPayload() *sfgate_models.IndustryResponse { +func (o *PostIndustriesCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostIndustriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostIndustriesCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.IndustryResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/industry_products/industry_products_client.go b/api/sfgate/sfgate_client/industry_products/industry_products_client.go index f97b0db..a6c9356 100644 --- a/api/sfgate/sfgate_client/industry_products/industry_products_client.go +++ b/api/sfgate/sfgate_client/industry_products/industry_products_client.go @@ -34,7 +34,7 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error) + PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsCreated, error) SetTransport(transport runtime.ClientTransport) } @@ -44,7 +44,7 @@ PostIndustryproducts adds a new industryproduct to taxnexus Industry record to be added */ -func (a *Client) PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsOK, error) { +func (a *Client) PostIndustryproducts(params *PostIndustryproductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostIndustryproductsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewPostIndustryproductsParams() @@ -70,7 +70,7 @@ func (a *Client) PostIndustryproducts(params *PostIndustryproductsParams, authIn if err != nil { return nil, err } - success, ok := result.(*PostIndustryproductsOK) + success, ok := result.(*PostIndustryproductsCreated) if ok { return success, nil } diff --git a/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go b/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go index ca11d0b..135ec05 100644 --- a/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go +++ b/api/sfgate/sfgate_client/industry_products/post_industryproducts_responses.go @@ -27,8 +27,8 @@ type PostIndustryproductsReader struct { // ReadResponse reads a server response into the received o. func (o *PostIndustryproductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewPostIndustryproductsOK() + case 201: + result := NewPostIndustryproductsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,82 +68,65 @@ func (o *PostIndustryproductsReader) ReadResponse(response runtime.ClientRespons } } -// NewPostIndustryproductsOK creates a PostIndustryproductsOK with default headers values -func NewPostIndustryproductsOK() *PostIndustryproductsOK { - return &PostIndustryproductsOK{} +// NewPostIndustryproductsCreated creates a PostIndustryproductsCreated with default headers values +func NewPostIndustryproductsCreated() *PostIndustryproductsCreated { + return &PostIndustryproductsCreated{} } /* -PostIndustryproductsOK describes a response with status code 200, with default header values. +PostIndustryproductsCreated describes a response with status code 201, with default header values. -Taxnexus Response with Industry objects +Response from Salesforce */ -type PostIndustryproductsOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.IndustryProductResponse +type PostIndustryproductsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this post industryproducts o k response has a 2xx status code -func (o *PostIndustryproductsOK) IsSuccess() bool { +// IsSuccess returns true when this post industryproducts created response has a 2xx status code +func (o *PostIndustryproductsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this post industryproducts o k response has a 3xx status code -func (o *PostIndustryproductsOK) IsRedirect() bool { +// IsRedirect returns true when this post industryproducts created response has a 3xx status code +func (o *PostIndustryproductsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this post industryproducts o k response has a 4xx status code -func (o *PostIndustryproductsOK) IsClientError() bool { +// IsClientError returns true when this post industryproducts created response has a 4xx status code +func (o *PostIndustryproductsCreated) IsClientError() bool { return false } -// IsServerError returns true when this post industryproducts o k response has a 5xx status code -func (o *PostIndustryproductsOK) IsServerError() bool { +// IsServerError returns true when this post industryproducts created response has a 5xx status code +func (o *PostIndustryproductsCreated) IsServerError() bool { return false } -// IsCode returns true when this post industryproducts o k response a status code equal to that given -func (o *PostIndustryproductsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this post industryproducts created response a status code equal to that given +func (o *PostIndustryproductsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the post industryproducts o k response -func (o *PostIndustryproductsOK) Code() int { - return 200 +// Code gets the status code for the post industryproducts created response +func (o *PostIndustryproductsCreated) Code() int { + return 201 } -func (o *PostIndustryproductsOK) Error() string { - return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsOK %+v", 200, o.Payload) +func (o *PostIndustryproductsCreated) Error() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsCreated %+v", 201, o.Payload) } -func (o *PostIndustryproductsOK) String() string { - return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsOK %+v", 200, o.Payload) +func (o *PostIndustryproductsCreated) String() string { + return fmt.Sprintf("[POST /industryproducts][%d] postIndustryproductsCreated %+v", 201, o.Payload) } -func (o *PostIndustryproductsOK) GetPayload() *sfgate_models.IndustryProductResponse { +func (o *PostIndustryproductsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *PostIndustryproductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *PostIndustryproductsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.IndustryProductResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go b/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go index 57bec66..47798a5 100644 --- a/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go +++ b/api/sfgate/sfgate_client/industryproducts/get_industry_products_parameters.go @@ -74,7 +74,7 @@ type GetIndustryProductsParams struct { /* IndustryProductID. - Taxnexus IndustryProduct record ID + IndustryProduct record ID */ IndustryProductID *string diff --git a/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go b/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go index 988c03e..def1e28 100644 --- a/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go +++ b/api/sfgate/sfgate_client/industryproducts/get_industry_products_responses.go @@ -27,8 +27,8 @@ type GetIndustryProductsReader struct { // ReadResponse reads a server response into the received o. func (o *GetIndustryProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewGetIndustryProductsOK() + case 201: + result := NewGetIndustryProductsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,82 +68,65 @@ func (o *GetIndustryProductsReader) ReadResponse(response runtime.ClientResponse } } -// NewGetIndustryProductsOK creates a GetIndustryProductsOK with default headers values -func NewGetIndustryProductsOK() *GetIndustryProductsOK { - return &GetIndustryProductsOK{} +// NewGetIndustryProductsCreated creates a GetIndustryProductsCreated with default headers values +func NewGetIndustryProductsCreated() *GetIndustryProductsCreated { + return &GetIndustryProductsCreated{} } /* -GetIndustryProductsOK describes a response with status code 200, with default header values. +GetIndustryProductsCreated describes a response with status code 201, with default header values. -Taxnexus Response with Industry objects +Response from Salesforce */ -type GetIndustryProductsOK struct { - AccessControlAllowOrigin string - CacheControl string - - Payload *sfgate_models.IndustryProductResponse +type GetIndustryProductsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this get industry products o k response has a 2xx status code -func (o *GetIndustryProductsOK) IsSuccess() bool { +// IsSuccess returns true when this get industry products created response has a 2xx status code +func (o *GetIndustryProductsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this get industry products o k response has a 3xx status code -func (o *GetIndustryProductsOK) IsRedirect() bool { +// IsRedirect returns true when this get industry products created response has a 3xx status code +func (o *GetIndustryProductsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this get industry products o k response has a 4xx status code -func (o *GetIndustryProductsOK) IsClientError() bool { +// IsClientError returns true when this get industry products created response has a 4xx status code +func (o *GetIndustryProductsCreated) IsClientError() bool { return false } -// IsServerError returns true when this get industry products o k response has a 5xx status code -func (o *GetIndustryProductsOK) IsServerError() bool { +// IsServerError returns true when this get industry products created response has a 5xx status code +func (o *GetIndustryProductsCreated) IsServerError() bool { return false } -// IsCode returns true when this get industry products o k response a status code equal to that given -func (o *GetIndustryProductsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this get industry products created response a status code equal to that given +func (o *GetIndustryProductsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the get industry products o k response -func (o *GetIndustryProductsOK) Code() int { - return 200 +// Code gets the status code for the get industry products created response +func (o *GetIndustryProductsCreated) Code() int { + return 201 } -func (o *GetIndustryProductsOK) Error() string { - return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsOK %+v", 200, o.Payload) +func (o *GetIndustryProductsCreated) Error() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsCreated %+v", 201, o.Payload) } -func (o *GetIndustryProductsOK) String() string { - return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsOK %+v", 200, o.Payload) +func (o *GetIndustryProductsCreated) String() string { + return fmt.Sprintf("[GET /industryproducts][%d] getIndustryProductsCreated %+v", 201, o.Payload) } -func (o *GetIndustryProductsOK) GetPayload() *sfgate_models.IndustryProductResponse { +func (o *GetIndustryProductsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *GetIndustryProductsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *GetIndustryProductsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - // hydrates response header Access-Control-Allow-Origin - hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") - - if hdrAccessControlAllowOrigin != "" { - o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin - } - - // hydrates response header Cache-Control - hdrCacheControl := response.GetHeader("Cache-Control") - - if hdrCacheControl != "" { - o.CacheControl = hdrCacheControl - } - - o.Payload = new(sfgate_models.IndustryProductResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go b/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go index aaedf0b..c48efd5 100644 --- a/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go +++ b/api/sfgate/sfgate_client/industryproducts/industryproducts_client.go @@ -34,7 +34,7 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error) + GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsCreated, error) SetTransport(transport runtime.ClientTransport) } @@ -44,7 +44,7 @@ GetIndustryProducts gets a list of industryproducts Return a list of all available IndustryProducts */ -func (a *Client) GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsOK, error) { +func (a *Client) GetIndustryProducts(params *GetIndustryProductsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetIndustryProductsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewGetIndustryProductsParams() @@ -70,7 +70,7 @@ func (a *Client) GetIndustryProducts(params *GetIndustryProductsParams, authInfo if err != nil { return nil, err } - success, ok := result.(*GetIndustryProductsOK) + success, ok := result.(*GetIndustryProductsCreated) if ok { return success, nil } diff --git a/api/sfgate/sfgate_client/roles/get_roles_parameters.go b/api/sfgate/sfgate_client/roles/get_roles_parameters.go index c4f5873..28589a8 100644 --- a/api/sfgate/sfgate_client/roles/get_roles_parameters.go +++ b/api/sfgate/sfgate_client/roles/get_roles_parameters.go @@ -84,7 +84,7 @@ type GetRolesParams struct { /* RoleID. - Taxnexus Id of the Role to be retrieved + Id of the Role to be retrieved */ RoleID *string diff --git a/api/sfgate/sfgate_client/roles/get_roles_responses.go b/api/sfgate/sfgate_client/roles/get_roles_responses.go index 13e4ec5..d784d33 100644 --- a/api/sfgate/sfgate_client/roles/get_roles_responses.go +++ b/api/sfgate/sfgate_client/roles/get_roles_responses.go @@ -76,7 +76,7 @@ func NewGetRolesOK() *GetRolesOK { /* GetRolesOK describes a response with status code 200, with default header values. -Taxnexus Response with Role objects +Response with Role objects */ type GetRolesOK struct { Payload *sfgate_models.RoleResponse diff --git a/api/sfgate/sfgate_client/templates/get_templates_parameters.go b/api/sfgate/sfgate_client/templates/get_templates_parameters.go index c0c0608..b8fc74a 100644 --- a/api/sfgate/sfgate_client/templates/get_templates_parameters.go +++ b/api/sfgate/sfgate_client/templates/get_templates_parameters.go @@ -84,7 +84,7 @@ type GetTemplatesParams struct { /* TemplateID. - Taxnexus Record Id of a Template + Record Id of a Template */ TemplateID *string diff --git a/api/sfgate/sfgate_client/templates/get_templates_responses.go b/api/sfgate/sfgate_client/templates/get_templates_responses.go index 7b7db2a..281f37b 100644 --- a/api/sfgate/sfgate_client/templates/get_templates_responses.go +++ b/api/sfgate/sfgate_client/templates/get_templates_responses.go @@ -76,7 +76,7 @@ func NewGetTemplatesOK() *GetTemplatesOK { /* GetTemplatesOK describes a response with status code 200, with default header values. -Taxnexus Response with Template objects +Response with Template objects */ type GetTemplatesOK struct { Payload *sfgate_models.TemplateResponse diff --git a/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go b/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go index d347efa..c91a888 100644 --- a/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go +++ b/api/sfgate/sfgate_client/tenants/get_tenants_parameters.go @@ -84,7 +84,7 @@ type GetTenantsParams struct { /* TenantID. - Taxnexus Record Id of a Tenant + Record Id of a Tenant */ TenantID *string diff --git a/api/sfgate/sfgate_client/tenants/get_tenants_responses.go b/api/sfgate/sfgate_client/tenants/get_tenants_responses.go index 95922ac..97ec509 100644 --- a/api/sfgate/sfgate_client/tenants/get_tenants_responses.go +++ b/api/sfgate/sfgate_client/tenants/get_tenants_responses.go @@ -76,7 +76,7 @@ func NewGetTenantsOK() *GetTenantsOK { /* GetTenantsOK describes a response with status code 200, with default header values. -Taxnexus Response with Tenant objects +Response with Tenant objects */ type GetTenantsOK struct { Payload *sfgate_models.TenantResponse diff --git a/api/sfgate/sfgate_client/tenants/put_tenants_responses.go b/api/sfgate/sfgate_client/tenants/put_tenants_responses.go index d7ee540..8b4c2d2 100644 --- a/api/sfgate/sfgate_client/tenants/put_tenants_responses.go +++ b/api/sfgate/sfgate_client/tenants/put_tenants_responses.go @@ -76,7 +76,7 @@ func NewPutTenantsOK() *PutTenantsOK { /* PutTenantsOK describes a response with status code 200, with default header values. -Taxnexus Response with Tenant objects +Response with Tenant objects */ type PutTenantsOK struct { Payload *sfgate_models.TenantResponse diff --git a/api/sfgate/sfgate_client/tenants/tenants_client.go b/api/sfgate/sfgate_client/tenants/tenants_client.go index 7d3e8c7..6a9cef9 100644 --- a/api/sfgate/sfgate_client/tenants/tenants_client.go +++ b/api/sfgate/sfgate_client/tenants/tenants_client.go @@ -34,7 +34,7 @@ type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods type ClientService interface { - Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsOK, error) + Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsCreated, error) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantsOK, error) @@ -46,9 +46,9 @@ type ClientService interface { /* Tenants creates new tenants -Create Tenants in Taxnexus +Create Tenants in Salesforce */ -func (a *Client) Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsOK, error) { +func (a *Client) Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsCreated, error) { // TODO: Validate the params before sending if params == nil { params = NewTenantsParams() @@ -73,7 +73,7 @@ func (a *Client) Tenants(params *TenantsParams, opts ...ClientOption) (*TenantsO if err != nil { return nil, err } - success, ok := result.(*TenantsOK) + success, ok := result.(*TenantsCreated) if ok { return success, nil } @@ -127,7 +127,7 @@ func (a *Client) GetTenants(params *GetTenantsParams, authInfo runtime.ClientAut /* PutTenants updates tenants -Update Tenant in Taxnexus +Update Tenant in Salesforce */ func (a *Client) PutTenants(params *PutTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutTenantsOK, error) { // TODO: Validate the params before sending diff --git a/api/sfgate/sfgate_client/tenants/tenants_responses.go b/api/sfgate/sfgate_client/tenants/tenants_responses.go index 5b16cd7..ba92453 100644 --- a/api/sfgate/sfgate_client/tenants/tenants_responses.go +++ b/api/sfgate/sfgate_client/tenants/tenants_responses.go @@ -27,8 +27,8 @@ type TenantsReader struct { // ReadResponse reads a server response into the received o. func (o *TenantsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewTenantsOK() + case 201: + result := NewTenantsCreated() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } @@ -68,65 +68,65 @@ func (o *TenantsReader) ReadResponse(response runtime.ClientResponse, consumer r } } -// NewTenantsOK creates a TenantsOK with default headers values -func NewTenantsOK() *TenantsOK { - return &TenantsOK{} +// NewTenantsCreated creates a TenantsCreated with default headers values +func NewTenantsCreated() *TenantsCreated { + return &TenantsCreated{} } /* -TenantsOK describes a response with status code 200, with default header values. +TenantsCreated describes a response with status code 201, with default header values. -Taxnexus Response with Tenant objects +Response from Salesforce */ -type TenantsOK struct { - Payload *sfgate_models.TenantResponse +type TenantsCreated struct { + Payload *sfgate_models.SalesforcePostResponse } -// IsSuccess returns true when this tenants o k response has a 2xx status code -func (o *TenantsOK) IsSuccess() bool { +// IsSuccess returns true when this tenants created response has a 2xx status code +func (o *TenantsCreated) IsSuccess() bool { return true } -// IsRedirect returns true when this tenants o k response has a 3xx status code -func (o *TenantsOK) IsRedirect() bool { +// IsRedirect returns true when this tenants created response has a 3xx status code +func (o *TenantsCreated) IsRedirect() bool { return false } -// IsClientError returns true when this tenants o k response has a 4xx status code -func (o *TenantsOK) IsClientError() bool { +// IsClientError returns true when this tenants created response has a 4xx status code +func (o *TenantsCreated) IsClientError() bool { return false } -// IsServerError returns true when this tenants o k response has a 5xx status code -func (o *TenantsOK) IsServerError() bool { +// IsServerError returns true when this tenants created response has a 5xx status code +func (o *TenantsCreated) IsServerError() bool { return false } -// IsCode returns true when this tenants o k response a status code equal to that given -func (o *TenantsOK) IsCode(code int) bool { - return code == 200 +// IsCode returns true when this tenants created response a status code equal to that given +func (o *TenantsCreated) IsCode(code int) bool { + return code == 201 } -// Code gets the status code for the tenants o k response -func (o *TenantsOK) Code() int { - return 200 +// Code gets the status code for the tenants created response +func (o *TenantsCreated) Code() int { + return 201 } -func (o *TenantsOK) Error() string { - return fmt.Sprintf("[POST /tenants][%d] tenantsOK %+v", 200, o.Payload) +func (o *TenantsCreated) Error() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsCreated %+v", 201, o.Payload) } -func (o *TenantsOK) String() string { - return fmt.Sprintf("[POST /tenants][%d] tenantsOK %+v", 200, o.Payload) +func (o *TenantsCreated) String() string { + return fmt.Sprintf("[POST /tenants][%d] tenantsCreated %+v", 201, o.Payload) } -func (o *TenantsOK) GetPayload() *sfgate_models.TenantResponse { +func (o *TenantsCreated) GetPayload() *sfgate_models.SalesforcePostResponse { return o.Payload } -func (o *TenantsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { +func (o *TenantsCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - o.Payload = new(sfgate_models.TenantResponse) + o.Payload = new(sfgate_models.SalesforcePostResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { diff --git a/api/sfgate/sfgate_client/users/get_users_parameters.go b/api/sfgate/sfgate_client/users/get_users_parameters.go index a3dce39..91465bd 100644 --- a/api/sfgate/sfgate_client/users/get_users_parameters.go +++ b/api/sfgate/sfgate_client/users/get_users_parameters.go @@ -74,7 +74,7 @@ type GetUsersParams struct { /* Apikey. - Taxnexus Id of the User to be retrieved + Id of the User to be retrieved */ Apikey *string @@ -96,7 +96,7 @@ type GetUsersParams struct { /* UserID. - Taxnexus Id of the User to be retrieved + Id of the User to be retrieved */ UserID *string diff --git a/api/sfgate/sfgate_client/users/get_users_responses.go b/api/sfgate/sfgate_client/users/get_users_responses.go index 6f1add8..c59fc0d 100644 --- a/api/sfgate/sfgate_client/users/get_users_responses.go +++ b/api/sfgate/sfgate_client/users/get_users_responses.go @@ -76,7 +76,7 @@ func NewGetUsersOK() *GetUsersOK { /* GetUsersOK describes a response with status code 200, with default header values. -Taxnexus Response with User objects +Response with User objects */ type GetUsersOK struct { Payload *sfgate_models.UserResponse diff --git a/api/sfgate/sfgate_client/users/post_user_parameters.go b/api/sfgate/sfgate_client/users/post_user_parameters.go new file mode 100644 index 0000000..562e309 --- /dev/null +++ b/api/sfgate/sfgate_client/users/post_user_parameters.go @@ -0,0 +1,157 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package users + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// NewPostUserParams creates a new PostUserParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPostUserParams() *PostUserParams { + return &PostUserParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPostUserParamsWithTimeout creates a new PostUserParams object +// with the ability to set a timeout on a request. +func NewPostUserParamsWithTimeout(timeout time.Duration) *PostUserParams { + return &PostUserParams{ + timeout: timeout, + } +} + +// NewPostUserParamsWithContext creates a new PostUserParams object +// with the ability to set a context for a request. +func NewPostUserParamsWithContext(ctx context.Context) *PostUserParams { + return &PostUserParams{ + Context: ctx, + } +} + +// NewPostUserParamsWithHTTPClient creates a new PostUserParams object +// with the ability to set a custom HTTPClient for a request. +func NewPostUserParamsWithHTTPClient(client *http.Client) *PostUserParams { + return &PostUserParams{ + HTTPClient: client, + } +} + +/* +PostUserParams contains all the parameters to send to the API endpoint + + for the post user operation. + + Typically these are written to a http.Request. +*/ +type PostUserParams struct { + + /* UserRequest. + + A single new user record + */ + UserRequest *sfgate_models.UserRequest + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the post user params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostUserParams) WithDefaults() *PostUserParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the post user params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PostUserParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the post user params +func (o *PostUserParams) WithTimeout(timeout time.Duration) *PostUserParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the post user params +func (o *PostUserParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the post user params +func (o *PostUserParams) WithContext(ctx context.Context) *PostUserParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the post user params +func (o *PostUserParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the post user params +func (o *PostUserParams) WithHTTPClient(client *http.Client) *PostUserParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the post user params +func (o *PostUserParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithUserRequest adds the userRequest to the post user params +func (o *PostUserParams) WithUserRequest(userRequest *sfgate_models.UserRequest) *PostUserParams { + o.SetUserRequest(userRequest) + return o +} + +// SetUserRequest adds the userRequest to the post user params +func (o *PostUserParams) SetUserRequest(userRequest *sfgate_models.UserRequest) { + o.UserRequest = userRequest +} + +// WriteToRequest writes these params to a swagger request +func (o *PostUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.UserRequest != nil { + if err := r.SetBodyParam(o.UserRequest); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/api/sfgate/sfgate_client/users/post_user_responses.go b/api/sfgate/sfgate_client/users/post_user_responses.go new file mode 100644 index 0000000..a612aef --- /dev/null +++ b/api/sfgate/sfgate_client/users/post_user_responses.go @@ -0,0 +1,522 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package users + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "code.tnxs.net/vernonkeenan/lib/api/sfgate/sfgate_models" +) + +// PostUserReader is a Reader for the PostUser structure. +type PostUserReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PostUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPostUserOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 401: + result := NewPostUserUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 403: + result := NewPostUserForbidden() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPostUserNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 422: + result := NewPostUserUnprocessableEntity() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPostUserInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPostUserOK creates a PostUserOK with default headers values +func NewPostUserOK() *PostUserOK { + return &PostUserOK{} +} + +/* +PostUserOK describes a response with status code 200, with default header values. + +Response from Salesforce +*/ +type PostUserOK struct { + Payload *sfgate_models.SalesforcePostResponse +} + +// IsSuccess returns true when this post user o k response has a 2xx status code +func (o *PostUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this post user o k response has a 3xx status code +func (o *PostUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post user o k response has a 4xx status code +func (o *PostUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this post user o k response has a 5xx status code +func (o *PostUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this post user o k response a status code equal to that given +func (o *PostUserOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the post user o k response +func (o *PostUserOK) Code() int { + return 200 +} + +func (o *PostUserOK) Error() string { + return fmt.Sprintf("[POST /users][%d] postUserOK %+v", 200, o.Payload) +} + +func (o *PostUserOK) String() string { + return fmt.Sprintf("[POST /users][%d] postUserOK %+v", 200, o.Payload) +} + +func (o *PostUserOK) GetPayload() *sfgate_models.SalesforcePostResponse { + return o.Payload +} + +func (o *PostUserOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(sfgate_models.SalesforcePostResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostUserUnauthorized creates a PostUserUnauthorized with default headers values +func NewPostUserUnauthorized() *PostUserUnauthorized { + return &PostUserUnauthorized{} +} + +/* +PostUserUnauthorized describes a response with status code 401, with default header values. + +Access unauthorized, invalid API-KEY was used +*/ +type PostUserUnauthorized struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this post user unauthorized response has a 2xx status code +func (o *PostUserUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post user unauthorized response has a 3xx status code +func (o *PostUserUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post user unauthorized response has a 4xx status code +func (o *PostUserUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this post user unauthorized response has a 5xx status code +func (o *PostUserUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this post user unauthorized response a status code equal to that given +func (o *PostUserUnauthorized) IsCode(code int) bool { + return code == 401 +} + +// Code gets the status code for the post user unauthorized response +func (o *PostUserUnauthorized) Code() int { + return 401 +} + +func (o *PostUserUnauthorized) Error() string { + return fmt.Sprintf("[POST /users][%d] postUserUnauthorized %+v", 401, o.Payload) +} + +func (o *PostUserUnauthorized) String() string { + return fmt.Sprintf("[POST /users][%d] postUserUnauthorized %+v", 401, o.Payload) +} + +func (o *PostUserUnauthorized) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostUserUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostUserForbidden creates a PostUserForbidden with default headers values +func NewPostUserForbidden() *PostUserForbidden { + return &PostUserForbidden{} +} + +/* +PostUserForbidden describes a response with status code 403, with default header values. + +Access forbidden, account lacks access +*/ +type PostUserForbidden struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this post user forbidden response has a 2xx status code +func (o *PostUserForbidden) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post user forbidden response has a 3xx status code +func (o *PostUserForbidden) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post user forbidden response has a 4xx status code +func (o *PostUserForbidden) IsClientError() bool { + return true +} + +// IsServerError returns true when this post user forbidden response has a 5xx status code +func (o *PostUserForbidden) IsServerError() bool { + return false +} + +// IsCode returns true when this post user forbidden response a status code equal to that given +func (o *PostUserForbidden) IsCode(code int) bool { + return code == 403 +} + +// Code gets the status code for the post user forbidden response +func (o *PostUserForbidden) Code() int { + return 403 +} + +func (o *PostUserForbidden) Error() string { + return fmt.Sprintf("[POST /users][%d] postUserForbidden %+v", 403, o.Payload) +} + +func (o *PostUserForbidden) String() string { + return fmt.Sprintf("[POST /users][%d] postUserForbidden %+v", 403, o.Payload) +} + +func (o *PostUserForbidden) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostUserForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostUserNotFound creates a PostUserNotFound with default headers values +func NewPostUserNotFound() *PostUserNotFound { + return &PostUserNotFound{} +} + +/* +PostUserNotFound describes a response with status code 404, with default header values. + +Resource was not found +*/ +type PostUserNotFound struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this post user not found response has a 2xx status code +func (o *PostUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post user not found response has a 3xx status code +func (o *PostUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post user not found response has a 4xx status code +func (o *PostUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this post user not found response has a 5xx status code +func (o *PostUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this post user not found response a status code equal to that given +func (o *PostUserNotFound) IsCode(code int) bool { + return code == 404 +} + +// Code gets the status code for the post user not found response +func (o *PostUserNotFound) Code() int { + return 404 +} + +func (o *PostUserNotFound) Error() string { + return fmt.Sprintf("[POST /users][%d] postUserNotFound %+v", 404, o.Payload) +} + +func (o *PostUserNotFound) String() string { + return fmt.Sprintf("[POST /users][%d] postUserNotFound %+v", 404, o.Payload) +} + +func (o *PostUserNotFound) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostUserNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostUserUnprocessableEntity creates a PostUserUnprocessableEntity with default headers values +func NewPostUserUnprocessableEntity() *PostUserUnprocessableEntity { + return &PostUserUnprocessableEntity{} +} + +/* +PostUserUnprocessableEntity describes a response with status code 422, with default header values. + +Unprocessable Entity, likely a bad parameter +*/ +type PostUserUnprocessableEntity struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this post user unprocessable entity response has a 2xx status code +func (o *PostUserUnprocessableEntity) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post user unprocessable entity response has a 3xx status code +func (o *PostUserUnprocessableEntity) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post user unprocessable entity response has a 4xx status code +func (o *PostUserUnprocessableEntity) IsClientError() bool { + return true +} + +// IsServerError returns true when this post user unprocessable entity response has a 5xx status code +func (o *PostUserUnprocessableEntity) IsServerError() bool { + return false +} + +// IsCode returns true when this post user unprocessable entity response a status code equal to that given +func (o *PostUserUnprocessableEntity) IsCode(code int) bool { + return code == 422 +} + +// Code gets the status code for the post user unprocessable entity response +func (o *PostUserUnprocessableEntity) Code() int { + return 422 +} + +func (o *PostUserUnprocessableEntity) Error() string { + return fmt.Sprintf("[POST /users][%d] postUserUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *PostUserUnprocessableEntity) String() string { + return fmt.Sprintf("[POST /users][%d] postUserUnprocessableEntity %+v", 422, o.Payload) +} + +func (o *PostUserUnprocessableEntity) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostUserUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPostUserInternalServerError creates a PostUserInternalServerError with default headers values +func NewPostUserInternalServerError() *PostUserInternalServerError { + return &PostUserInternalServerError{} +} + +/* +PostUserInternalServerError describes a response with status code 500, with default header values. + +Server Internal Error +*/ +type PostUserInternalServerError struct { + AccessControlAllowOrigin string + + Payload *sfgate_models.Error +} + +// IsSuccess returns true when this post user internal server error response has a 2xx status code +func (o *PostUserInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this post user internal server error response has a 3xx status code +func (o *PostUserInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this post user internal server error response has a 4xx status code +func (o *PostUserInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this post user internal server error response has a 5xx status code +func (o *PostUserInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this post user internal server error response a status code equal to that given +func (o *PostUserInternalServerError) IsCode(code int) bool { + return code == 500 +} + +// Code gets the status code for the post user internal server error response +func (o *PostUserInternalServerError) Code() int { + return 500 +} + +func (o *PostUserInternalServerError) Error() string { + return fmt.Sprintf("[POST /users][%d] postUserInternalServerError %+v", 500, o.Payload) +} + +func (o *PostUserInternalServerError) String() string { + return fmt.Sprintf("[POST /users][%d] postUserInternalServerError %+v", 500, o.Payload) +} + +func (o *PostUserInternalServerError) GetPayload() *sfgate_models.Error { + return o.Payload +} + +func (o *PostUserInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // hydrates response header Access-Control-Allow-Origin + hdrAccessControlAllowOrigin := response.GetHeader("Access-Control-Allow-Origin") + + if hdrAccessControlAllowOrigin != "" { + o.AccessControlAllowOrigin = hdrAccessControlAllowOrigin + } + + o.Payload = new(sfgate_models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/api/sfgate/sfgate_client/users/users_client.go b/api/sfgate/sfgate_client/users/users_client.go index 2bf285a..1f2e709 100644 --- a/api/sfgate/sfgate_client/users/users_client.go +++ b/api/sfgate/sfgate_client/users/users_client.go @@ -36,6 +36,8 @@ type ClientOption func(*runtime.ClientOperation) type ClientService interface { GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) + PostUser(params *PostUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUserOK, error) + SetTransport(transport runtime.ClientTransport) } @@ -80,6 +82,47 @@ func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInf panic(msg) } +/* +PostUser creates new salesforce user + +Create a user record in Salesforce +*/ +func (a *Client) PostUser(params *PostUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUserOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPostUserParams() + } + op := &runtime.ClientOperation{ + ID: "postUser", + Method: "POST", + PathPattern: "/users", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &PostUserReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PostUserOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for postUser: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + // SetTransport changes the transport on the client func (a *Client) SetTransport(transport runtime.ClientTransport) { a.transport = transport diff --git a/api/sfgate/sfgate_models/account.go b/api/sfgate/sfgate_models/account.go index fe966c2..b4b9a9b 100644 --- a/api/sfgate/sfgate_models/account.go +++ b/api/sfgate/sfgate_models/account.go @@ -25,9 +25,12 @@ type Account struct { // Account Number AccountNumber string `json:"AccountNumber,omitempty"` - // The marketing orgin of this account + // The marketing origin of this account AccountSource string `json:"AccountSource,omitempty"` + // active + Active bool `json:"Active,omitempty"` + // Annual Revenue Estimate AnnualRevenue float64 `json:"AnnualRevenue,omitempty"` @@ -37,16 +40,16 @@ type Account struct { // Contact ID BillingContactID string `json:"BillingContactID,omitempty"` - // Date company closed + // Close Date CloseDate string `json:"CloseDate,omitempty"` // cloud revenue total CloudRevenueTotal float64 `json:"CloudRevenueTotal,omitempty"` - // cloud type + // The type of cloud company CloudType string `json:"CloudType,omitempty"` - // cloud year + // The year company started cloud revenue CloudYear string `json:"CloudYear,omitempty"` // Created By User ID @@ -55,37 +58,46 @@ type Account struct { // Created Date CreatedDate string `json:"CreatedDate,omitempty"` - // crunchbase URL + // Crunchbase URL CrunchbaseURL string `json:"CrunchbaseURL,omitempty"` - // Description + // Description of the account Description string `json:"Description,omitempty"` - // earnings call + // e i n + EIN string `json:"EIN,omitempty"` + + // Earnings Call Date EarningsCall string `json:"EarningsCall,omitempty"` // Main Account Email Email string `json:"Email,omitempty"` - // equity funding + // The amount of equity EquityFunding EquityFunding float64 `json:"EquityFunding,omitempty"` - // facebook + // Company Facebook URL Facebook string `json:"Facebook,omitempty"` - // Fax + // Fax number Fax string `json:"Fax,omitempty"` - // founded date + // Date company founded FoundedDate string `json:"FoundedDate,omitempty"` // Taxnexus Account Id ID string `json:"ID,omitempty"` - // IP o date + // IPO Date IPODate string `json:"IPODate,omitempty"` - // industries + // image alt text + ImageAltText string `json:"ImageAltText,omitempty"` + + // image URL + ImageURL string `json:"ImageURL,omitempty"` + + // Industries Industries string `json:"Industries,omitempty"` // Industry @@ -97,23 +109,23 @@ type Account struct { // Last Modified Date LastModifiedDate string `json:"LastModifiedDate,omitempty"` - // linked in + // Company LinkedIn URL LinkedIn string `json:"LinkedIn,omitempty"` - // location + // Headquarters Location Description Location string `json:"Location,omitempty"` - // logo + // Company Logo URL Logo string `json:"Logo,omitempty"` - // market capitalization + // Market Capitalization MarketCapitalization float64 `json:"MarketCapitalization,omitempty"` // Account Name Name string `json:"Name,omitempty"` - // Number of Locations Estimate - NumberInvestments int64 `json:"NumberInvestments,omitempty"` + // Number of Investments + NumberInvestments float64 `json:"NumberInvestments,omitempty"` // Employee Count Estimate NumberOfEmployees int64 `json:"NumberOfEmployees,omitempty"` @@ -130,7 +142,7 @@ type Account struct { // Phone Phone string `json:"Phone,omitempty"` - // publish + // Publish this record? Publish bool `json:"Publish,omitempty"` // SIC Code @@ -139,28 +151,31 @@ type Account struct { // SIC Description SICDesc string `json:"SICDesc,omitempty"` - // salesforce first + // A Salesforce-First company? SalesforceFirst bool `json:"SalesforceFirst,omitempty"` // shipping address ShippingAddress *Address `json:"ShippingAddress,omitempty"` - // shipping contact ID + // Shipping Contact ID ShippingContactID string `json:"ShippingContactID,omitempty"` // Account Site Site string `json:"Site,omitempty"` - // tag line + // Slug + Slug string `json:"Slug,omitempty"` + + // Company tagline TagLine string `json:"TagLine,omitempty"` - // tenant identifier + // Tenant Identifier TenantID string `json:"TenantID,omitempty"` - // ticker symbol + // Ticker Symbol TickerSymbol string `json:"TickerSymbol,omitempty"` - // twitter + // Twitter URL Twitter string `json:"Twitter,omitempty"` // Type diff --git a/api/sfgate/sfgate_models/address.go b/api/sfgate/sfgate_models/address.go index 7771cd8..6eddd39 100644 --- a/api/sfgate/sfgate_models/address.go +++ b/api/sfgate/sfgate_models/address.go @@ -12,10 +12,8 @@ package sfgate_models import ( "context" - "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" - "github.com/go-openapi/validate" ) // Address address @@ -24,62 +22,29 @@ import ( type Address struct { // City - // Required: true - City *string `json:"city"` + City string `json:"City,omitempty"` // Country full name - Country string `json:"country,omitempty"` + Country string `json:"Country,omitempty"` // Country Code - Countrycode string `json:"countrycode,omitempty"` + CountryCode string `json:"CountryCode,omitempty"` // Postal Code - Postalcode string `json:"postalcode,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` // State full name - State string `json:"state,omitempty"` + State string `json:"State,omitempty"` // State Code - // Required: true - Statecode *string `json:"statecode"` + StateCode string `json:"StateCode,omitempty"` // Street number and name - Street string `json:"street,omitempty"` + Street string `json:"Street,omitempty"` } // Validate validates this address func (m *Address) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCity(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStatecode(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Address) validateCity(formats strfmt.Registry) error { - - if err := validate.Required("city", "body", m.City); err != nil { - return err - } - - return nil -} - -func (m *Address) validateStatecode(formats strfmt.Registry) error { - - if err := validate.Required("statecode", "body", m.Statecode); err != nil { - return err - } - return nil } diff --git a/api/sfgate/sfgate_models/asset.go b/api/sfgate/sfgate_models/asset.go index 25f6f69..151a656 100644 --- a/api/sfgate/sfgate_models/asset.go +++ b/api/sfgate/sfgate_models/asset.go @@ -76,7 +76,7 @@ type Asset struct { // Has Lifecycle Management HasLifecycleManagement bool `json:"HasLifecycleManagement,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Install Date @@ -157,9 +157,6 @@ type Asset struct { // URL URL string `json:"URL,omitempty"` - // Unique Identifier - UUID string `json:"UUID,omitempty"` - // Usage End Date UsageEndDate string `json:"UsageEndDate,omitempty"` } diff --git a/api/sfgate/sfgate_models/cluster.go b/api/sfgate/sfgate_models/cluster.go index 4f77028..9db0568 100644 --- a/api/sfgate/sfgate_models/cluster.go +++ b/api/sfgate/sfgate_models/cluster.go @@ -22,55 +22,55 @@ import ( type Cluster struct { // Created By - Createdbyid string `json:"createdbyid,omitempty"` + CreatedByID string `json:"CreatedByID,omitempty"` // Created Date - Createddate string `json:"createddate,omitempty"` + CreatedDate string `json:"CreatedDate,omitempty"` // Description - Description string `json:"description,omitempty"` + Description string `json:"Description,omitempty"` // Environment - Environment string `json:"environment,omitempty"` + Environment string `json:"Environment,omitempty"` // Gateway - Gateway string `json:"gateway,omitempty"` + Gateway string `json:"Gateway,omitempty"` - // Taxnexus Record Id - ID string `json:"id,omitempty"` + // Record Id + ID string `json:"ID,omitempty"` // IP Address - IPAddress string `json:"ip_address,omitempty"` + IPAddress string `json:"IpAddress,omitempty"` // Last Modified By - Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"` + LastModifiedByID string `json:"LastModifiedByID,omitempty"` // Last Modified Date - Lastmodifieddate string `json:"lastmodifieddate,omitempty"` + LastModifiedDate string `json:"LastModifiedDate,omitempty"` // Cluster Name - Name string `json:"name,omitempty"` + Name string `json:"Name,omitempty"` // Owner - Ownerid string `json:"ownerid,omitempty"` + OwnerID string `json:"OwnerID,omitempty"` // External Reference - Ref string `json:"ref,omitempty"` + Ref string `json:"Ref,omitempty"` // Status - Status string `json:"status,omitempty"` + Status string `json:"Status,omitempty"` // Subnet - Subnet string `json:"subnet,omitempty"` + Subnet string `json:"Subnet,omitempty"` // tenantid - Tenantid string `json:"tenantid,omitempty"` + TenantID string `json:"TenantID,omitempty"` // Type - Type string `json:"type,omitempty"` + Type string `json:"Type,omitempty"` // Zone - Zone string `json:"zone,omitempty"` + Zone string `json:"Zone,omitempty"` } // Validate validates this cluster diff --git a/api/sfgate/sfgate_models/cluster_request.go b/api/sfgate/sfgate_models/cluster_request.go index 4435129..cd387bf 100644 --- a/api/sfgate/sfgate_models/cluster_request.go +++ b/api/sfgate/sfgate_models/cluster_request.go @@ -29,8 +29,7 @@ type ClusterRequest struct { Data []*Cluster `json:"data"` // meta - // Required: true - Meta *RequestMeta `json:"meta"` + Meta *RequestMeta `json:"meta,omitempty"` } // Validate validates this cluster request @@ -79,9 +78,8 @@ func (m *ClusterRequest) validateData(formats strfmt.Registry) error { } func (m *ClusterRequest) validateMeta(formats strfmt.Registry) error { - - if err := validate.Required("meta", "body", m.Meta); err != nil { - return err + if swag.IsZero(m.Meta) { // not required + return nil } if m.Meta != nil { diff --git a/api/sfgate/sfgate_models/company_product.go b/api/sfgate/sfgate_models/company_product.go index 9e0b5f0..cbfe9b3 100644 --- a/api/sfgate/sfgate_models/company_product.go +++ b/api/sfgate/sfgate_models/company_product.go @@ -33,18 +33,39 @@ type CompanyProduct struct { // Description of product Description string `json:"Description,omitempty"` - // Taxnexus Record Id + // Full Description of product + FullDescription string `json:"FullDescription,omitempty"` + + // Record Id ID string `json:"ID,omitempty"` + // Image URL + ImageURL string `json:"ImageURL,omitempty"` + + // Image Alt Text + Imagealttext string `json:"Imagealttext,omitempty"` + // Last Modified By User ID LastModifiedByID string `json:"LastModifiedByID,omitempty"` // Last Modified Date LastModifiedDate string `json:"LastModifiedDate,omitempty"` + // Logo + Logo string `json:"Logo,omitempty"` + // Product Name Name string `json:"Name,omitempty"` + // Published + Published bool `json:"Published,omitempty"` + + // Salesforce Specific + SalesforceSpecific bool `json:"SalesforceSpecific,omitempty"` + + // Site URL + SiteURL string `json:"SiteURL,omitempty"` + // TagLine TagLine string `json:"TagLine,omitempty"` diff --git a/api/sfgate/sfgate_models/company_product_request.go b/api/sfgate/sfgate_models/company_product_request.go index aea18b0..a651f38 100644 --- a/api/sfgate/sfgate_models/company_product_request.go +++ b/api/sfgate/sfgate_models/company_product_request.go @@ -29,8 +29,7 @@ type CompanyProductRequest struct { Data []*CompanyProduct `json:"data"` // meta - // Required: true - Meta *RequestMeta `json:"meta"` + Meta *RequestMeta `json:"meta,omitempty"` } // Validate validates this company product request @@ -79,9 +78,8 @@ func (m *CompanyProductRequest) validateData(formats strfmt.Registry) error { } func (m *CompanyProductRequest) validateMeta(formats strfmt.Registry) error { - - if err := validate.Required("meta", "body", m.Meta); err != nil { - return err + if swag.IsZero(m.Meta) { // not required + return nil } if m.Meta != nil { diff --git a/api/sfgate/sfgate_models/contact.go b/api/sfgate/sfgate_models/contact.go index 8ac6ebb..ff2a7ec 100644 --- a/api/sfgate/sfgate_models/contact.go +++ b/api/sfgate/sfgate_models/contact.go @@ -40,6 +40,9 @@ type Contact struct { // Created Date CreatedDate string `json:"CreatedDate,omitempty"` + // Crunchbase URL + CrunchbaseURL string `json:"CrunchbaseURL,omitempty"` + // Department Department string `json:"Department,omitempty"` @@ -76,7 +79,7 @@ type Contact struct { // Home Phone HomePhone string `json:"HomePhone,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Does this contact have bounced emails? @@ -124,6 +127,15 @@ type Contact struct { // URL of a photograph of this User PhotoURL string `json:"PhotoURL,omitempty"` + // Reports To User ID + ReportsToID string `json:"ReportsToID,omitempty"` + + // Salutation + Salutation string `json:"Salutation,omitempty"` + + // Slug + Slug string `json:"Slug,omitempty"` + // tenant identifier TenantID string `json:"TenantID,omitempty"` diff --git a/api/sfgate/sfgate_models/contact_request.go b/api/sfgate/sfgate_models/contact_request.go index 3ed807c..ac0abd3 100644 --- a/api/sfgate/sfgate_models/contact_request.go +++ b/api/sfgate/sfgate_models/contact_request.go @@ -29,8 +29,7 @@ type ContactRequest struct { Data []*Contact `json:"data"` // meta - // Required: true - Meta *RequestMeta `json:"meta"` + Meta *RequestMeta `json:"meta,omitempty"` } // Validate validates this contact request @@ -79,9 +78,8 @@ func (m *ContactRequest) validateData(formats strfmt.Registry) error { } func (m *ContactRequest) validateMeta(formats strfmt.Registry) error { - - if err := validate.Required("meta", "body", m.Meta); err != nil { - return err + if swag.IsZero(m.Meta) { // not required + return nil } if m.Meta != nil { diff --git a/api/sfgate/sfgate_models/contract.go b/api/sfgate/sfgate_models/contract.go index c5fa4a0..f14c38b 100644 --- a/api/sfgate/sfgate_models/contract.go +++ b/api/sfgate/sfgate_models/contract.go @@ -73,6 +73,9 @@ type Contract struct { // Contract End Date EndDate string `json:"EndDate,omitempty"` + // End User + EndUserID string `json:"EndUserID,omitempty"` + // Hourly Rate HourlyRate float64 `json:"HourlyRate,omitempty"` diff --git a/api/sfgate/sfgate_models/database.go b/api/sfgate/sfgate_models/database.go index fe9e6fa..4883a10 100644 --- a/api/sfgate/sfgate_models/database.go +++ b/api/sfgate/sfgate_models/database.go @@ -22,43 +22,43 @@ import ( type Database struct { // Is this database active? - Active bool `json:"active,omitempty"` + Active bool `json:"Active,omitempty"` // The ID of the Cluster in which this database is deployed - Clusterid string `json:"clusterid,omitempty"` + ClusterID string `json:"ClusterID,omitempty"` // Created By - Createdbyid string `json:"createdbyid,omitempty"` + CreatedByID string `json:"CreatedByID,omitempty"` // Created Date - Createddate string `json:"createddate,omitempty"` - - // The name of the physical database in the cluster - Databasename string `json:"databasename,omitempty"` + CreatedDate string `json:"CreatedDate,omitempty"` // Database connection string - Dsn string `json:"dsn,omitempty"` + DSN string `json:"DSN,omitempty"` + + // The name of the physical database in the cluster + DatabaseName string `json:"DatabaseName,omitempty"` // Record Id - ID string `json:"id,omitempty"` + ID string `json:"ID,omitempty"` // Last Modified By - Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"` + LastModifiedByID string `json:"LastModifiedByID,omitempty"` // Last Modifed Date - Lastmodifieddate string `json:"lastmodifieddate,omitempty"` + LastModifiedDate string `json:"LastModifiedDate,omitempty"` - // List of Taxnexus microservices implemented by this Database - Microservices string `json:"microservices,omitempty"` + // List of microservices implemented by this Database + Microservices string `json:"Microservices,omitempty"` // The current status of this Tenant - Status string `json:"status,omitempty"` + Status string `json:"Status,omitempty"` // The ID of the tenant who owns this Database - Tenantid string `json:"tenantid,omitempty"` + TenantID string `json:"TenantID,omitempty"` // The type of Database (mysql, etc) - Type string `json:"type,omitempty"` + Type string `json:"Type,omitempty"` } // Validate validates this database diff --git a/api/sfgate/sfgate_models/industry.go b/api/sfgate/sfgate_models/industry.go index 75036b0..523cf81 100644 --- a/api/sfgate/sfgate_models/industry.go +++ b/api/sfgate/sfgate_models/industry.go @@ -11,7 +11,9 @@ package sfgate_models import ( "context" + "strconv" + "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) @@ -21,6 +23,12 @@ import ( // swagger:model Industry type Industry struct { + // The AccountIDs of the Companies in this Industry + Companies []string `json:"Companies"` + + // The list of Products in this industry + CompanyProducts []*CompanyProduct `json:"CompanyProducts"` + // Created By User ID CreatedByID string `json:"CreatedByID,omitempty"` @@ -30,9 +38,15 @@ type Industry struct { // Industry Description Description string `json:"Description,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` + // Image URL + ImageURL string `json:"ImageURL,omitempty"` + + // Image Alt Text + Imagealttext string `json:"Imagealttext,omitempty"` + // Last Modified By User ID LastModifiedByID string `json:"LastModifiedByID,omitempty"` @@ -42,6 +56,9 @@ type Industry struct { // The hierarchical level of this Industry Level string `json:"Level,omitempty"` + // Logo + Logo string `json:"Logo,omitempty"` + // Industry Name Name string `json:"Name,omitempty"` @@ -56,15 +73,82 @@ type Industry struct { // The CMS Slug for this Industry Slug string `json:"Slug,omitempty"` + + // TagLine + TagLine string `json:"TagLine,omitempty"` } // Validate validates this industry func (m *Industry) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCompanyProducts(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } return nil } -// ContextValidate validates this industry based on context it is used +func (m *Industry) validateCompanyProducts(formats strfmt.Registry) error { + if swag.IsZero(m.CompanyProducts) { // not required + return nil + } + + for i := 0; i < len(m.CompanyProducts); i++ { + if swag.IsZero(m.CompanyProducts[i]) { // not required + continue + } + + if m.CompanyProducts[i] != nil { + if err := m.CompanyProducts[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("CompanyProducts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("CompanyProducts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this industry based on the context it is used func (m *Industry) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCompanyProducts(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Industry) contextValidateCompanyProducts(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.CompanyProducts); i++ { + + if m.CompanyProducts[i] != nil { + if err := m.CompanyProducts[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("CompanyProducts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("CompanyProducts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + return nil } diff --git a/api/sfgate/sfgate_models/industry_product.go b/api/sfgate/sfgate_models/industry_product.go index 451b54a..6b7deef 100644 --- a/api/sfgate/sfgate_models/industry_product.go +++ b/api/sfgate/sfgate_models/industry_product.go @@ -33,7 +33,7 @@ type IndustryProduct struct { // HTML HTML string `json:"HTML,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // industry ID diff --git a/api/sfgate/sfgate_models/request_meta.go b/api/sfgate/sfgate_models/request_meta.go index d7671ab..d488f8d 100644 --- a/api/sfgate/sfgate_models/request_meta.go +++ b/api/sfgate/sfgate_models/request_meta.go @@ -23,7 +23,7 @@ import ( // swagger:model RequestMeta type RequestMeta struct { - // Taxnexus Account Number of the Reseller or OEM + // Account Number of the Reseller or OEM // Required: true TaxnexusAccount *string `json:"TaxnexusAccount"` } diff --git a/api/sfgate/sfgate_models/response_meta.go b/api/sfgate/sfgate_models/response_meta.go index f8b36e2..a7ac456 100644 --- a/api/sfgate/sfgate_models/response_meta.go +++ b/api/sfgate/sfgate_models/response_meta.go @@ -55,7 +55,7 @@ type ResponseMeta struct { // Backend Server Timestamp ServerTimestamp string `json:"ServerTimestamp,omitempty"` - // Taxnexus Account Number used for recording transactions + // Account Number used for recording transactions TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` } diff --git a/api/sfgate/sfgate_models/role.go b/api/sfgate/sfgate_models/role.go index de8b908..e3532a5 100644 --- a/api/sfgate/sfgate_models/role.go +++ b/api/sfgate/sfgate_models/role.go @@ -22,31 +22,31 @@ import ( type Role struct { // the corresponding auth0 role - Auth0roleid string `json:"auth0roleid,omitempty"` + Auth0RoleID string `json:"Auth0RoleID,omitempty"` // created by - Createdbyid string `json:"createdbyid,omitempty"` + CreatedByID string `json:"CreatedByID:,omitempty"` // created date - Createddate string `json:"createddate,omitempty"` + CreatedDate string `json:"CreatedDate,omitempty"` // role description - Description string `json:"description,omitempty"` + Description string `json:"Description,omitempty"` // record id - ID string `json:"id,omitempty"` + ID string `json:"ID,omitempty"` // last modified by - Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"` + LastModifiedByID string `json:"LastModifiedByID,omitempty"` // last modifed date - Lastmodifieddate string `json:"lastmodifieddate,omitempty"` + LastModifiedDate string `json:"LastModifiedDate,omitempty"` // the name of this role - Rolename string `json:"rolename,omitempty"` + RoleName string `json:"RoleName,omitempty"` // the id of the tenant that owns this role - Tenantid string `json:"tenantid,omitempty"` + TenantID string `json:"TenantID,omitempty"` } // Validate validates this role diff --git a/api/auth0/auth0_models/user_roles_request.go b/api/sfgate/sfgate_models/salesforce_post.go similarity index 52% rename from api/auth0/auth0_models/user_roles_request.go rename to api/sfgate/sfgate_models/salesforce_post.go index a4523f8..63e863b 100644 --- a/api/auth0/auth0_models/user_roles_request.go +++ b/api/sfgate/sfgate_models/salesforce_post.go @@ -4,7 +4,7 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package auth0_models +package sfgate_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command @@ -16,27 +16,27 @@ import ( "github.com/go-openapi/swag" ) -// UserRolesRequest user roles request +// SalesforcePost Relationship object that connects user to a role // -// swagger:model UserRolesRequest -type UserRolesRequest struct { +// swagger:model SalesforcePost +type SalesforcePost struct { - // roles - Roles []string `json:"roles"` + // ID + ID string `json:"ID,omitempty"` } -// Validate validates this user roles request -func (m *UserRolesRequest) Validate(formats strfmt.Registry) error { +// Validate validates this salesforce post +func (m *SalesforcePost) Validate(formats strfmt.Registry) error { return nil } -// ContextValidate validates this user roles request based on context it is used -func (m *UserRolesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { +// ContextValidate validates this salesforce post based on context it is used +func (m *SalesforcePost) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation -func (m *UserRolesRequest) MarshalBinary() ([]byte, error) { +func (m *SalesforcePost) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } @@ -44,8 +44,8 @@ func (m *UserRolesRequest) MarshalBinary() ([]byte, error) { } // UnmarshalBinary interface implementation -func (m *UserRolesRequest) UnmarshalBinary(b []byte) error { - var res UserRolesRequest +func (m *SalesforcePost) UnmarshalBinary(b []byte) error { + var res SalesforcePost if err := swag.ReadJSON(b, &res); err != nil { return err } diff --git a/api/sfgate/sfgate_models/salesforce_post_response.go b/api/sfgate/sfgate_models/salesforce_post_response.go new file mode 100644 index 0000000..c818ee5 --- /dev/null +++ b/api/sfgate/sfgate_models/salesforce_post_response.go @@ -0,0 +1,166 @@ +// Code generated by go-swagger; DO NOT EDIT. + +// (c) 2012-2020 by Taxnexus, Inc. +// All rights reserved worldwide. +// Proprietary product; unlicensed use is not allowed + +package sfgate_models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SalesforcePostResponse An array of Print-Ready ingest Objects +// +// swagger:model SalesforcePostResponse +type SalesforcePostResponse struct { + + // data + Data []*SalesforcePost `json:"data"` + + // meta + Meta *ResponseMeta `json:"meta,omitempty"` +} + +// Validate validates this salesforce post response +func (m *SalesforcePostResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if err := m.validateMeta(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SalesforcePostResponse) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *SalesforcePostResponse) validateMeta(formats strfmt.Registry) error { + if swag.IsZero(m.Meta) { // not required + return nil + } + + if m.Meta != nil { + if err := m.Meta.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") + } + return err + } + } + + return nil +} + +// ContextValidate validate this salesforce post response based on the context it is used +func (m *SalesforcePostResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateMeta(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SalesforcePostResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *SalesforcePostResponse) contextValidateMeta(ctx context.Context, formats strfmt.Registry) error { + + if m.Meta != nil { + if err := m.Meta.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("meta") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("meta") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SalesforcePostResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SalesforcePostResponse) UnmarshalBinary(b []byte) error { + var res SalesforcePostResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/api/sfgate/sfgate_models/template.go b/api/sfgate/sfgate_models/template.go index 79f3f38..e600b66 100644 --- a/api/sfgate/sfgate_models/template.go +++ b/api/sfgate/sfgate_models/template.go @@ -21,9 +21,6 @@ import ( // swagger:model Template type Template struct { - // Company - CompanyID string `json:"CompanyID,omitempty"` - // created by ID CreatedByID string `json:"CreatedByID,omitempty"` @@ -37,7 +34,7 @@ type Template struct { // Format: byte HTML strfmt.Base64 `json:"HTML,omitempty"` - // Taxnexus Record Id + // Record Id ID string `json:"ID,omitempty"` // Active? @@ -61,14 +58,14 @@ type Template struct { // Record Type Name RecordTypeName string `json:"RecordTypeName,omitempty"` + // tenant identifier + TenantID string `json:"TenantID,omitempty"` + // Type Type string `json:"Type,omitempty"` // URL URL string `json:"URL,omitempty"` - - // tenant identifier - Tenantid string `json:"tenantid,omitempty"` } // Validate validates this template diff --git a/api/sfgate/sfgate_models/tenant.go b/api/sfgate/sfgate_models/tenant.go index 9ae3881..b8dd69f 100644 --- a/api/sfgate/sfgate_models/tenant.go +++ b/api/sfgate/sfgate_models/tenant.go @@ -18,52 +18,52 @@ import ( "github.com/go-openapi/swag" ) -// Tenant Taxnexus Account Tenant +// Tenant Account Tenant // // swagger:model Tenant type Tenant struct { // The Account that owns this Tenant - Accountid string `json:"accountid,omitempty"` + AccountID string `json:"AccountID,omitempty"` // Is this Tenant currently active? - Active bool `json:"active,omitempty"` + Active bool `json:"Active,omitempty"` // Created By - Createdbyid string `json:"createdbyid,omitempty"` + CreatedByID string `json:"CreatedByID,omitempty"` // Created Date - Createddate string `json:"createddate,omitempty"` + CreatedDate string `json:"CreatedDate,omitempty"` // databases - Databases []*Database `json:"databases"` + Databases []*Database `json:"Databases"` // Record Id - ID string `json:"id,omitempty"` + ID string `json:"ID,omitempty"` // Last Modified By - Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"` + LastModifiedByID string `json:"LastModifiedByID,omitempty"` // Last Modifed Date - Lastmodifieddate string `json:"lastmodifieddate,omitempty"` + LastModifiedDate string `json:"LastModifiedDate,omitempty"` // roles - Roles []*Role `json:"roles"` + Roles []*Role `json:"Roles"` // The current status of this Tenant - Status string `json:"status,omitempty"` + Status string `json:"Status,omitempty"` // Name of the Tenant Resource - Tenantname string `json:"tenantname,omitempty"` + TenantName string `json:"TenantName,omitempty"` - // tenantusers - Tenantusers []*TenantUser `json:"tenantusers"` + // tenant users + TenantUsers []*TenantUser `json:"TenantUsers"` // Type of tenant - Type string `json:"type,omitempty"` + Type string `json:"Type,omitempty"` // The version number of the Tenant Onboarding system used to create this tenant - Version string `json:"version,omitempty"` + Version string `json:"Version,omitempty"` } // Validate validates this tenant @@ -78,7 +78,7 @@ func (m *Tenant) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateTenantusers(formats); err != nil { + if err := m.validateTenantUsers(formats); err != nil { res = append(res, err) } @@ -101,9 +101,9 @@ func (m *Tenant) validateDatabases(formats strfmt.Registry) error { if m.Databases[i] != nil { if err := m.Databases[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("databases" + "." + strconv.Itoa(i)) + return ve.ValidateName("Databases" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("databases" + "." + strconv.Itoa(i)) + return ce.ValidateName("Databases" + "." + strconv.Itoa(i)) } return err } @@ -127,9 +127,9 @@ func (m *Tenant) validateRoles(formats strfmt.Registry) error { if m.Roles[i] != nil { if err := m.Roles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + return ve.ValidateName("Roles" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("roles" + "." + strconv.Itoa(i)) + return ce.ValidateName("Roles" + "." + strconv.Itoa(i)) } return err } @@ -140,22 +140,22 @@ func (m *Tenant) validateRoles(formats strfmt.Registry) error { return nil } -func (m *Tenant) validateTenantusers(formats strfmt.Registry) error { - if swag.IsZero(m.Tenantusers) { // not required +func (m *Tenant) validateTenantUsers(formats strfmt.Registry) error { + if swag.IsZero(m.TenantUsers) { // not required return nil } - for i := 0; i < len(m.Tenantusers); i++ { - if swag.IsZero(m.Tenantusers[i]) { // not required + for i := 0; i < len(m.TenantUsers); i++ { + if swag.IsZero(m.TenantUsers[i]) { // not required continue } - if m.Tenantusers[i] != nil { - if err := m.Tenantusers[i].Validate(formats); err != nil { + if m.TenantUsers[i] != nil { + if err := m.TenantUsers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -178,7 +178,7 @@ func (m *Tenant) ContextValidate(ctx context.Context, formats strfmt.Registry) e res = append(res, err) } - if err := m.contextValidateTenantusers(ctx, formats); err != nil { + if err := m.contextValidateTenantUsers(ctx, formats); err != nil { res = append(res, err) } @@ -195,9 +195,9 @@ func (m *Tenant) contextValidateDatabases(ctx context.Context, formats strfmt.Re if m.Databases[i] != nil { if err := m.Databases[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("databases" + "." + strconv.Itoa(i)) + return ve.ValidateName("Databases" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("databases" + "." + strconv.Itoa(i)) + return ce.ValidateName("Databases" + "." + strconv.Itoa(i)) } return err } @@ -215,9 +215,9 @@ func (m *Tenant) contextValidateRoles(ctx context.Context, formats strfmt.Regist if m.Roles[i] != nil { if err := m.Roles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("roles" + "." + strconv.Itoa(i)) + return ve.ValidateName("Roles" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("roles" + "." + strconv.Itoa(i)) + return ce.ValidateName("Roles" + "." + strconv.Itoa(i)) } return err } @@ -228,16 +228,16 @@ func (m *Tenant) contextValidateRoles(ctx context.Context, formats strfmt.Regist return nil } -func (m *Tenant) contextValidateTenantusers(ctx context.Context, formats strfmt.Registry) error { +func (m *Tenant) contextValidateTenantUsers(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(m.Tenantusers); i++ { + for i := 0; i < len(m.TenantUsers); i++ { - if m.Tenantusers[i] != nil { - if err := m.Tenantusers[i].ContextValidate(ctx, formats); err != nil { + if m.TenantUsers[i] != nil { + if err := m.TenantUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } diff --git a/api/sfgate/sfgate_models/user.go b/api/sfgate/sfgate_models/user.go index b6f1abc..7484e66 100644 --- a/api/sfgate/sfgate_models/user.go +++ b/api/sfgate/sfgate_models/user.go @@ -23,179 +23,179 @@ import ( // swagger:model User type User struct { + // API Key + APIKey string `json:"APIKey,omitempty"` + // About Me - Aboutme string `json:"aboutme,omitempty"` + AboutMe string `json:"AboutMe,omitempty"` // Account ID - Accountid string `json:"accountid,omitempty"` + AccountID string `json:"AccountID,omitempty"` // address - Address *Address `json:"address,omitempty"` + Address *Address `json:"Address,omitempty"` // Alias - Alias string `json:"alias,omitempty"` + Alias string `json:"Alias,omitempty"` - // API Key - Apikey string `json:"apikey,omitempty"` - - // Auth0 User ID - Auth0userid string `json:"auth0userid,omitempty"` + // Auth0 User Id + Auth0UserID string `json:"Auth0UserID,omitempty"` // Nickname - Communitynickname string `json:"communitynickname,omitempty"` + CommunityNickname string `json:"CommunityNickname,omitempty"` // Company Name - Companyname string `json:"companyname,omitempty"` + CompanyName string `json:"CompanyName,omitempty"` // Contact - Contactid string `json:"contactid,omitempty"` + ContactID string `json:"ContactID,omitempty"` // Created User ID - Createdbyid string `json:"createdbyid,omitempty"` + CreatedByID string `json:"CreatedByID,omitempty"` // Date Created - Createddate string `json:"createddate,omitempty"` + CreatedDate string `json:"CreatedDate,omitempty"` // Delegated Approver - Delegatedapproverid string `json:"delegatedapproverid,omitempty"` + DelegatedApproverID string `json:"DelegatedApproverID,omitempty"` // Department - Department string `json:"department,omitempty"` + Department string `json:"Department,omitempty"` // Division - Division string `json:"division,omitempty"` + Division string `json:"Division,omitempty"` // Email address - Email string `json:"email,omitempty"` + Email string `json:"Email,omitempty"` // Employee Number - Employeenumber string `json:"employeenumber,omitempty"` + EmployeeNumber string `json:"EmployeeNumber,omitempty"` // Time day ends - Endday string `json:"endday,omitempty"` + EndOfDay string `json:"EndOfDay,omitempty"` // Environment - Environment string `json:"environment,omitempty"` + Environment string `json:"Environment,omitempty"` // Extension - Extension string `json:"extension,omitempty"` + Extension string `json:"Extension,omitempty"` // Fabric API Key - Fabricapikey string `json:"fabricapikey,omitempty"` + FabricAPIKey string `json:"FabricAPIKey,omitempty"` // Fax - Fax string `json:"fax,omitempty"` + Fax string `json:"Fax,omitempty"` // The first name - Firstname string `json:"firstname,omitempty"` + FirstName string `json:"FirstName,omitempty"` // Allow Forecasting - Forecastenabled bool `json:"forecastenabled,omitempty"` + ForecastEnabled bool `json:"ForecastEnabled,omitempty"` // Full Photo URL - Fullphotourl string `json:"fullphotourl,omitempty"` + FullPhotoURL string `json:"FullPhotoURL,omitempty"` - // Taxnexus ID - ID string `json:"id,omitempty"` + // Record ID + ID string `json:"ID,omitempty"` // Active - Isactive bool `json:"isactive,omitempty"` + IsActive bool `json:"IsActive,omitempty"` // Is the user enabled for Communities? - Isportalenabled bool `json:"isportalenabled,omitempty"` + IsPortalEnabled bool `json:"IsPortalEnabled,omitempty"` // Has Profile Photo - Isprofilephotoactive bool `json:"isprofilephotoactive,omitempty"` + IsProphilePhotoActive bool `json:"IsProphilePhotoActive,omitempty"` - // issystemcontrolled - Issystemcontrolled bool `json:"issystemcontrolled,omitempty"` + // is system controlled + IsSystemControlled bool `json:"IsSystemControlled,omitempty"` - // ip address of last login - Lastip string `json:"lastip,omitempty"` + // IP address of last login + LastIP string `json:"LastIP,omitempty"` - // last login time - Lastlogin string `json:"lastlogin,omitempty"` + // Last login time + LastLogin string `json:"LastLogin,omitempty"` // Last Modified User ID - Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"` + LastModifiedByID string `json:"LastModifiedByID,omitempty"` // Last Modified Date - Lastmodifieddate string `json:"lastmodifieddate,omitempty"` + LastModifiedDate string `json:"LastModifiedDate,omitempty"` // The Last Name - Lastname string `json:"lastname,omitempty"` + LastName string `json:"LastName,omitempty"` - // number of times user has logged in - Logincount int64 `json:"logincount,omitempty"` + // Number of times user has logged in + LoginCount int64 `json:"LoginCount,omitempty"` // Manager - Managerid string `json:"managerid,omitempty"` + ManagerID string `json:"ManagerID,omitempty"` // Mobile - Mobilephone string `json:"mobilephone,omitempty"` + MobilePhone string `json:"MobilePhone,omitempty"` // Name - Name string `json:"name,omitempty"` + Name string `json:"Name,omitempty"` // Out of office message - Outofofficemessage string `json:"outofofficemessage,omitempty"` + OutOfOfficeMessage string `json:"OutOfOfficeMessage,omitempty"` // Phone - Phone string `json:"phone,omitempty"` + Phone string `json:"Phone,omitempty"` // Portal Role Level - Portalrole string `json:"portalrole,omitempty"` + PortalRole string `json:"PortalRole,omitempty"` // Profile - Profileid string `json:"profileid,omitempty"` - - // Admin Info Emails - Receivesadmininfoemails bool `json:"receivesadmininfoemails,omitempty"` + ProfileID string `json:"ProfileID,omitempty"` // Info Emails - Receivesinfoemails bool `json:"receivesinfoemails,omitempty"` + ReceivesAdminEmails bool `json:"ReceivesAdminEmails,omitempty"` + + // Admin Info Emails + ReceivesAdminInfoEmails bool `json:"ReceivesAdminInfoEmails,omitempty"` // Email Sender Address - Senderemail string `json:"senderemail,omitempty"` + SenderEmail string `json:"SenderEmail,omitempty"` // Email Sender Name - Sendername string `json:"sendername,omitempty"` + SenderName string `json:"SenderName,omitempty"` // Email Signature - Signature string `json:"signature,omitempty"` + Signature string `json:"Signature,omitempty"` // Small Photo URL - Smallphotourl string `json:"smallphotourl,omitempty"` + SmallPhotoURL string `json:"SmallPhotoURL,omitempty"` // The time day starts - Startday string `json:"startday,omitempty"` + StartOfDay string `json:"StartOfDay,omitempty"` // Taxnexus Account - Taxnexusaccount string `json:"taxnexusaccount,omitempty"` + TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` - // tenantid - Tenantid string `json:"tenantid,omitempty"` + // Tenant ID associated with this user + TenantID string `json:"TenantID,omitempty"` - // tenantusers - Tenantusers []*TenantUser `json:"tenantusers"` + // tenant users + TenantUsers []*TenantUser `json:"TenantUsers"` // Time Zone - Timezonesidkey string `json:"timezonesidkey,omitempty"` + TimeZone string `json:"TimeZone,omitempty"` // Title - Title string `json:"title,omitempty"` - - // Username - Username string `json:"username,omitempty"` + Title string `json:"Title,omitempty"` // Role - Userroleid string `json:"userroleid,omitempty"` + UserRoleID string `json:"UserRoleID,omitempty"` - // userroles - Userroles []*UserRole `json:"userroles"` + // user roles + UserRoles []*UserRole `json:"UserRoles"` // User Type - Usertype string `json:"usertype,omitempty"` + UserType string `json:"UserType,omitempty"` + + // Username + Username string `json:"Username,omitempty"` } // Validate validates this user @@ -206,11 +206,11 @@ func (m *User) Validate(formats strfmt.Registry) error { res = append(res, err) } - if err := m.validateTenantusers(formats); err != nil { + if err := m.validateTenantUsers(formats); err != nil { res = append(res, err) } - if err := m.validateUserroles(formats); err != nil { + if err := m.validateUserRoles(formats); err != nil { res = append(res, err) } @@ -228,9 +228,9 @@ func (m *User) validateAddress(formats strfmt.Registry) error { if m.Address != nil { if err := m.Address.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("address") + return ve.ValidateName("Address") } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("address") + return ce.ValidateName("Address") } return err } @@ -239,22 +239,22 @@ func (m *User) validateAddress(formats strfmt.Registry) error { return nil } -func (m *User) validateTenantusers(formats strfmt.Registry) error { - if swag.IsZero(m.Tenantusers) { // not required +func (m *User) validateTenantUsers(formats strfmt.Registry) error { + if swag.IsZero(m.TenantUsers) { // not required return nil } - for i := 0; i < len(m.Tenantusers); i++ { - if swag.IsZero(m.Tenantusers[i]) { // not required + for i := 0; i < len(m.TenantUsers); i++ { + if swag.IsZero(m.TenantUsers[i]) { // not required continue } - if m.Tenantusers[i] != nil { - if err := m.Tenantusers[i].Validate(formats); err != nil { + if m.TenantUsers[i] != nil { + if err := m.TenantUsers[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -265,22 +265,22 @@ func (m *User) validateTenantusers(formats strfmt.Registry) error { return nil } -func (m *User) validateUserroles(formats strfmt.Registry) error { - if swag.IsZero(m.Userroles) { // not required +func (m *User) validateUserRoles(formats strfmt.Registry) error { + if swag.IsZero(m.UserRoles) { // not required return nil } - for i := 0; i < len(m.Userroles); i++ { - if swag.IsZero(m.Userroles[i]) { // not required + for i := 0; i < len(m.UserRoles); i++ { + if swag.IsZero(m.UserRoles[i]) { // not required continue } - if m.Userroles[i] != nil { - if err := m.Userroles[i].Validate(formats); err != nil { + if m.UserRoles[i] != nil { + if err := m.UserRoles[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("userroles" + "." + strconv.Itoa(i)) + return ve.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("userroles" + "." + strconv.Itoa(i)) + return ce.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } return err } @@ -299,11 +299,11 @@ func (m *User) ContextValidate(ctx context.Context, formats strfmt.Registry) err res = append(res, err) } - if err := m.contextValidateTenantusers(ctx, formats); err != nil { + if err := m.contextValidateTenantUsers(ctx, formats); err != nil { res = append(res, err) } - if err := m.contextValidateUserroles(ctx, formats); err != nil { + if err := m.contextValidateUserRoles(ctx, formats); err != nil { res = append(res, err) } @@ -318,9 +318,9 @@ func (m *User) contextValidateAddress(ctx context.Context, formats strfmt.Regist if m.Address != nil { if err := m.Address.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("address") + return ve.ValidateName("Address") } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("address") + return ce.ValidateName("Address") } return err } @@ -329,16 +329,16 @@ func (m *User) contextValidateAddress(ctx context.Context, formats strfmt.Regist return nil } -func (m *User) contextValidateTenantusers(ctx context.Context, formats strfmt.Registry) error { +func (m *User) contextValidateTenantUsers(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(m.Tenantusers); i++ { + for i := 0; i < len(m.TenantUsers); i++ { - if m.Tenantusers[i] != nil { - if err := m.Tenantusers[i].ContextValidate(ctx, formats); err != nil { + if m.TenantUsers[i] != nil { + if err := m.TenantUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ve.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("tenantusers" + "." + strconv.Itoa(i)) + return ce.ValidateName("TenantUsers" + "." + strconv.Itoa(i)) } return err } @@ -349,16 +349,16 @@ func (m *User) contextValidateTenantusers(ctx context.Context, formats strfmt.Re return nil } -func (m *User) contextValidateUserroles(ctx context.Context, formats strfmt.Registry) error { +func (m *User) contextValidateUserRoles(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(m.Userroles); i++ { + for i := 0; i < len(m.UserRoles); i++ { - if m.Userroles[i] != nil { - if err := m.Userroles[i].ContextValidate(ctx, formats); err != nil { + if m.UserRoles[i] != nil { + if err := m.UserRoles[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("userroles" + "." + strconv.Itoa(i)) + return ve.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("userroles" + "." + strconv.Itoa(i)) + return ce.ValidateName("UserRoles" + "." + strconv.Itoa(i)) } return err } diff --git a/api/auth0/auth0_models/user_request.go b/api/sfgate/sfgate_models/user_request.go similarity index 50% rename from api/auth0/auth0_models/user_request.go rename to api/sfgate/sfgate_models/user_request.go index 9f11a31..da06ef3 100644 --- a/api/auth0/auth0_models/user_request.go +++ b/api/sfgate/sfgate_models/user_request.go @@ -4,34 +4,57 @@ // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed -package auth0_models +package sfgate_models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" - "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) -// UserRequest An array Auth0 new user objects +// UserRequest user request // // swagger:model UserRequest type UserRequest struct { - // users - Users []*NewUser `json:"users"` + // API key + APIKey string `json:"APIKey,omitempty"` + + // address + Address *Address `json:"Address,omitempty"` + + // email + Email string `json:"Email,omitempty"` + + // environment + Environment string `json:"Environment,omitempty"` + + // first name + FirstName string `json:"FirstName,omitempty"` + + // ID + ID string `json:"ID,omitempty"` + + // last name + LastName string `json:"LastName,omitempty"` + + // taxnexus account + TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` + + // title + Title string `json:"Title,omitempty"` } // Validate validates this user request func (m *UserRequest) Validate(formats strfmt.Registry) error { var res []error - if err := m.validateUsers(formats); err != nil { + if err := m.validateAddress(formats); err != nil { res = append(res, err) } @@ -41,27 +64,20 @@ func (m *UserRequest) Validate(formats strfmt.Registry) error { return nil } -func (m *UserRequest) validateUsers(formats strfmt.Registry) error { - if swag.IsZero(m.Users) { // not required +func (m *UserRequest) validateAddress(formats strfmt.Registry) error { + if swag.IsZero(m.Address) { // not required return nil } - for i := 0; i < len(m.Users); i++ { - if swag.IsZero(m.Users[i]) { // not required - continue - } - - if m.Users[i] != nil { - if err := m.Users[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("users" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("users" + "." + strconv.Itoa(i)) - } - return err + if m.Address != nil { + if err := m.Address.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } + return err } - } return nil @@ -71,7 +87,7 @@ func (m *UserRequest) validateUsers(formats strfmt.Registry) error { func (m *UserRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error - if err := m.contextValidateUsers(ctx, formats); err != nil { + if err := m.contextValidateAddress(ctx, formats); err != nil { res = append(res, err) } @@ -81,21 +97,17 @@ func (m *UserRequest) ContextValidate(ctx context.Context, formats strfmt.Regist return nil } -func (m *UserRequest) contextValidateUsers(ctx context.Context, formats strfmt.Registry) error { +func (m *UserRequest) contextValidateAddress(ctx context.Context, formats strfmt.Registry) error { - for i := 0; i < len(m.Users); i++ { - - if m.Users[i] != nil { - if err := m.Users[i].ContextValidate(ctx, formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("users" + "." + strconv.Itoa(i)) - } else if ce, ok := err.(*errors.CompositeError); ok { - return ce.ValidateName("users" + "." + strconv.Itoa(i)) - } - return err + if m.Address != nil { + if err := m.Address.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("Address") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("Address") } + return err } - } return nil diff --git a/api/sfgate/sfgate_models/user_role.go b/api/sfgate/sfgate_models/user_role.go index 79540dc..06ed523 100644 --- a/api/sfgate/sfgate_models/user_role.go +++ b/api/sfgate/sfgate_models/user_role.go @@ -21,20 +21,35 @@ import ( // swagger:model UserRole type UserRole struct { - // Linked role ID - Auth0roleid string `json:"auth0roleid,omitempty"` + // auth0role ID + Auth0roleID string `json:"Auth0roleID,omitempty"` - // Role description - Description string `json:"description,omitempty"` + // created by ID + CreatedByID string `json:"CreatedByID,omitempty"` - // Role Name - Name string `json:"name,omitempty"` + // created date + CreatedDate *string `json:"CreatedDate,omitempty"` - // The Role ID - Roleid string `json:"roleid,omitempty"` + // description + Description string `json:"Description,omitempty"` - // The User ID - Userid string `json:"userid,omitempty"` + // ID + ID string `json:"ID,omitempty"` + + // last modified by ID + LastModifiedByID string `json:"LastModifiedByID,omitempty"` + + // last modified date + LastModifiedDate *string `json:"LastModifiedDate,omitempty"` + + // name + Name string `json:"Name,omitempty"` + + // role ID + RoleID string `json:"RoleID,omitempty"` + + // user ID + UserID string `json:"UserID,omitempty"` } // Validate validates this user role diff --git a/api/stash/stash_models/request_meta.go b/api/stash/stash_models/request_meta.go index b8724a4..667c6d0 100644 --- a/api/stash/stash_models/request_meta.go +++ b/api/stash/stash_models/request_meta.go @@ -23,7 +23,7 @@ import ( // swagger:model RequestMeta type RequestMeta struct { - // Taxnexus Account Number of the Reseller or OEM + // Account Number of the Reseller or OEM // Required: true TaxnexusAccount *string `json:"TaxnexusAccount"` } diff --git a/api/stash/stash_models/response_meta.go b/api/stash/stash_models/response_meta.go index ce89868..e556bfa 100644 --- a/api/stash/stash_models/response_meta.go +++ b/api/stash/stash_models/response_meta.go @@ -51,7 +51,7 @@ type ResponseMeta struct { // Backend Server Timestamp ServerTimestamp string `json:"ServerTimestamp,omitempty"` - // Taxnexus Account Number used for recording transactions + // Account Number used for recording transactions TaxnexusAccount string `json:"TaxnexusAccount,omitempty"` } diff --git a/go.mod b/go.mod index ae3b0bd..a236c23 100644 --- a/go.mod +++ b/go.mod @@ -3,20 +3,17 @@ module code.tnxs.net/vernonkeenan/lib go 1.15 require ( - github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect - github.com/go-openapi/analysis v0.21.4 // indirect github.com/go-openapi/errors v0.20.3 github.com/go-openapi/jsonreference v0.20.2 // indirect github.com/go-openapi/loads v0.21.2 // indirect github.com/go-openapi/runtime v0.25.0 github.com/go-openapi/spec v0.20.8 // indirect - github.com/go-openapi/strfmt v0.21.5 + github.com/go-openapi/strfmt v0.21.7 github.com/go-openapi/swag v0.22.3 github.com/go-openapi/validate v0.22.1 github.com/go-sql-driver/mysql v1.7.0 github.com/golang/protobuf v1.5.3 // indirect - github.com/mitchellh/go-testing-interface v1.0.0 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.7 // indirect github.com/prometheus/client_golang v1.14.0 @@ -26,7 +23,6 @@ require ( github.com/spf13/afero v1.9.5 // indirect github.com/spf13/viper v1.15.0 github.com/taxnexus/go-force v1.0.7 - go.mongodb.org/mongo-driver v1.11.3 // indirect go.opentelemetry.io/otel v1.14.0 // indirect go.uber.org/atomic v1.10.0 // indirect go.uber.org/multierr v1.10.0 // indirect diff --git a/go.sum b/go.sum index 37b9b2d..c27ec0b 100644 --- a/go.sum +++ b/go.sum @@ -176,7 +176,6 @@ cloud.google.com/go/eventarc v1.7.0/go.mod h1:6ctpF3zTnaQCxUjHUdcfgcA1A2T309+omH cloud.google.com/go/eventarc v1.8.0/go.mod h1:imbzxkyAU4ubfsaKYdQg04WS1NvncblHEup4kvF+4gw= cloud.google.com/go/filestore v1.3.0/go.mod h1:+qbvHGvXU1HaKX2nD0WEPo92TP/8AQuCVEBXNY9z0+w= cloud.google.com/go/filestore v1.4.0/go.mod h1:PaG5oDfo9r224f8OYXURtAsY+Fbyq/bLYoINEK8XQAI= -cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= cloud.google.com/go/firestore v1.9.0/go.mod h1:HMkjKHNTtRyZNiMzu7YAsLr9K3X2udY2AMwDaMEQiiE= cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= @@ -400,12 +399,10 @@ github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8V github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-metrics v0.3.10/go.mod h1:4O98XIr/9W0sxpJ8UaYkvjk10Iff7SnFrb4QAOwNTFc= github.com/armon/go-metrics v0.4.0/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= -github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= @@ -421,7 +418,6 @@ github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -463,8 +459,6 @@ github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= -github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= -github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= @@ -494,48 +488,36 @@ github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpX github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc= github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE= github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= -github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= -github.com/go-openapi/loads v0.21.1 h1:Wb3nVZpdEzDTcly8S4HMkey6fjARRzb7iEaySimlDW0= github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro= github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw= -github.com/go-openapi/runtime v0.24.1 h1:Sml5cgQKGYQHF+M7yYSHaH1eOjvTykrddTE/KtQVjqo= -github.com/go-openapi/runtime v0.24.1/go.mod h1:AKurw9fNre+h3ELZfk6ILsfvPN+bvvlaU/M9q/r9hpk= github.com/go-openapi/runtime v0.25.0 h1:7yQTCdRbWhX8vnIjdzU8S00tBYf7Sg71EBeorlPHvhc= github.com/go-openapi/runtime v0.25.0/go.mod h1:Ux6fikcHXyyob6LNWxtE96hWwjBPYF0DXgVFuMTneOs= github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= -github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI= -github.com/go-openapi/spec v0.20.7/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/spec v0.20.8 h1:ubHmXNY3FCIOinT8RNrrPfGc9t7I1qhPtdOGoG2AxRU= github.com/go-openapi/spec v0.20.8/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= github.com/go-openapi/strfmt v0.21.2/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= -github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o= github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= -github.com/go-openapi/strfmt v0.21.5 h1:Z/algjpXIZpbvdN+6KbVTkpO75RuedMrqpn1GN529h4= -github.com/go-openapi/strfmt v0.21.5/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= +github.com/go-openapi/strfmt v0.21.7 h1:rspiXgNWgeUzhjo1YU01do6qsahtJNByjLVbPLNHb8k= +github.com/go-openapi/strfmt v0.21.7/go.mod h1:adeGTkxE44sPyLk0JV235VQAO/ZXUr8KAzYjclFs3ew= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-openapi/validate v0.21.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= -github.com/go-openapi/validate v0.22.0 h1:b0QecH6VslW/TxtpKgzpO1SNG7GU2FsaqKdP1E2T50Y= -github.com/go-openapi/validate v0.22.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-openapi/validate v0.22.1 h1:G+c2ub6q47kfX1sOBLwIQwzBVt8qmOAARyo/9Fqs9NU= github.com/go-openapi/validate v0.22.1/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= -github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= -github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc= github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= @@ -597,7 +579,6 @@ github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -618,8 +599,8 @@ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= @@ -643,8 +624,8 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= @@ -664,9 +645,7 @@ github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+ github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/api v1.18.0/go.mod h1:owRRGJ9M5xReDC5nfT8FTJrNAPbT4NM6p/k+d03q2v4= -github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/consul/sdk v0.13.0/go.mod h1:0hs/l5fOVhJy/VdcoaNqUSi2AUs95eF5WKtv+EYIQqE= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= @@ -695,10 +674,7 @@ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.5.0/go.mod h1:yvyXLpo0QaGE59Y7hDTsTzDD25JYBZ4mHgHUZ8lrOI0= -github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= -github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.10.1/go.mod h1:yL2t6BqATOLGc5HF7qbFkTfXoPIY0WZdWHfEvMqbG+4= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= @@ -735,8 +711,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= -github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= @@ -757,7 +731,6 @@ github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcME github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= @@ -766,10 +739,8 @@ github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJys github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= github.com/mitchellh/cli v1.1.0/go.mod h1:xcISNoH86gajksDmfB23e/pu+B+GeFRMYmoHXxx3xhI= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -793,8 +764,6 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg= -github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaFVNZzmWyNfXas= github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= github.com/pelletier/go-toml/v2 v2.0.7 h1:muncTPStnKRos5dpVKULv2FVd4bMOhNePj9CjgDb8Us= github.com/pelletier/go-toml/v2 v2.0.7/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek= @@ -814,14 +783,11 @@ github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= -github.com/prometheus/client_golang v1.13.0 h1:b71QUfeo5M8gq2+evJdTPfZhYMAU0uKPkyPJ7TPsloU= -github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= @@ -830,7 +796,6 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.37.0 h1:ccBbHCgIiT9uSoFY0vX8H3zsNR5eLt17/RQLUvn8pXE= github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= @@ -840,7 +805,6 @@ github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+Gx github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.8.0 h1:ODq8ZFEaYeCaZOJlZZdJA2AbQR98dSHSM1KW/You5mo= github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= @@ -850,13 +814,10 @@ github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U= -github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sagikazarmark/crypt v0.6.0/go.mod h1:U8+INwJo3nBv1m6A/8OBXAq7Jnpspk5AxSgDyEQcea8= github.com/sagikazarmark/crypt v0.9.0/go.mod h1:RnH7sEhxfdnPm1z+XMgSLjWTEIjyK4z2dw6+4vHTMuo= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= @@ -865,8 +826,6 @@ github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMB github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo= -github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/afero v1.9.5 h1:stMpOSZFs//0Lv29HduCmli3GUfpFoF3Y1Q/aXj/wVM= github.com/spf13/afero v1.9.5/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= @@ -878,8 +837,6 @@ github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0 github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.13.0 h1:BWSJ/M+f+3nmdz9bxB+bWX28kkALN2ok11D0rSo8EJU= -github.com/spf13/viper v1.13.0/go.mod h1:Icm2xNL3/8uyh/wFuB1jI7TiTNKp8632Nwegu+zgdYw= github.com/spf13/viper v1.15.0 h1:js3yy885G8xwJa6iOISGFwd+qlUo5AvyXb7CiihdtiU= github.com/spf13/viper v1.15.0/go.mod h1:fFcTBJxvhhzSJiZy8n+PeW6t8l+KeT/uTARa0jHOQLA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -894,13 +851,10 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs= -github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/subosito/gotenv v1.4.2 h1:X1TuBLAMDFbaTAChgCBLu3DU3UPyELpnF2jjJ2cz/S8= github.com/subosito/gotenv v1.4.2/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0= github.com/taxnexus/go-force v1.0.7 h1:AhfmLToq3XIq5SkaC621uPu9kGjyTxwDi2k5XxuWws0= @@ -921,20 +875,14 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.etcd.io/etcd/api/v3 v3.5.4/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= go.etcd.io/etcd/api/v3 v3.5.6/go.mod h1:KFtNaxGDw4Yx/BA4iPPwevUTAuqcsPxzyX8PHydchN8= -go.etcd.io/etcd/client/pkg/v3 v3.5.4/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/pkg/v3 v3.5.6/go.mod h1:ggrwbk069qxpKPq8/FKkQ3Xq9y39kbFR4LnKszpRXeQ= -go.etcd.io/etcd/client/v2 v2.305.4/go.mod h1:Ud+VUwIi9/uQHOMA+4ekToJ12lTxlv0zB/+DHwTGEbU= go.etcd.io/etcd/client/v2 v2.305.6/go.mod h1:BHha8XJGe8vCIBfWBpbBLVZ4QjOIlfoouvOwydu63E0= -go.etcd.io/etcd/client/v3 v3.5.4/go.mod h1:ZaRkVgBZC+L+dLCjTcF1hRXpgZXQPOvnA/Ak/gq3kiY= go.etcd.io/etcd/client/v3 v3.5.6/go.mod h1:f6GRinRMCsFVv9Ht42EyY7nfsVGwrNO0WEoS2pRKzQk= go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= go.mongodb.org/mongo-driver v1.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= -go.mongodb.org/mongo-driver v1.10.1 h1:NujsPveKwHaWuKUer/ceo9DzEe7HIj1SlJ6uvXZG0S4= -go.mongodb.org/mongo-driver v1.10.1/go.mod h1:z4XpeoU6w+9Vht+jAFyLgVrD+jGSQQe0+CBWFHNiHt8= go.mongodb.org/mongo-driver v1.11.3 h1:Ql6K6qYHEzB6xvu4+AU0BoRoqf9vFPcc4o7MUIdPW8Y= go.mongodb.org/mongo-driver v1.11.3/go.mod h1:PTSz5yu21bkT/wXpkS7WR5f0ddqw5quethTUn9WM+2g= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -948,6 +896,7 @@ go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= go.opentelemetry.io/otel v1.11.1/go.mod h1:1nNhXBbWSD0nsL38H6btgnFN2k4i0sNLHNNMZMSbUGE= go.opentelemetry.io/otel v1.14.0 h1:/79Huy8wbf5DnIPhemGB+zEPVwnN6fuQybr/SRXa6hM= go.opentelemetry.io/otel v1.14.0/go.mod h1:o4buv+dJzx8rohcUeRmWUZhqupFvzWis188WlggnNeU= +go.opentelemetry.io/otel/sdk v1.11.1 h1:F7KmQgoHljhUuJyA+9BiU+EkJfyX5nVVF4wyzWZpKxs= go.opentelemetry.io/otel/sdk v1.11.1/go.mod h1:/l3FE4SupHJ12TduVjUkZtlfFqDCQJlOlithYrdktys= go.opentelemetry.io/otel/trace v1.11.1/go.mod h1:f/Q9G7vzk5u91PhbmKbg1Qn0rzH1LJ4vbPHFGkTPtOk= go.opentelemetry.io/otel/trace v1.14.0 h1:wp2Mmvj41tDsyAJXiWDWpfNsOiIyd38fy85pyKcFq/M= @@ -960,14 +909,11 @@ go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0 go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8= go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ= go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= -go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -983,7 +929,6 @@ golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f/go.mod h1:jdWPYTVW3xRLrWP golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= @@ -1022,9 +967,9 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2 h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1075,13 +1020,10 @@ golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.0.0-20220906165146-f3363e06e74c h1:yKufUcDwucU5urd+50/Opbt4AYpqthk7wHpHok8f1lo= -golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221012135044-0b7e1fb9d458/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= @@ -1105,7 +1047,6 @@ golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= @@ -1129,10 +1070,10 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220513210516-0976fa681c29/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1162,7 +1103,6 @@ golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1205,7 +1145,6 @@ golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1222,7 +1161,6 @@ golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 h1:WIoqL4EROvwiPdUtaip4VcDdpZ4kha7wBWZrbVKCIZg= golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1244,7 +1182,6 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= @@ -1315,16 +1252,15 @@ golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5 h1:ouewzE6p+/VEB31YYnTbEJdi8pFqKp4P4n85vwo3DHA= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df h1:5Pf6pFKu98ODmgnpvkJ3kFUOQGGLIzLIkbzUHp47618= golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= @@ -1357,7 +1293,6 @@ google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6 google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= -google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= @@ -1368,7 +1303,6 @@ google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69 google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= -google.golang.org/api v0.81.0/go.mod h1:FA6Mb/bZxj706H2j+j2d6mHEEaHBmbbWnkfvmorOCko= google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= @@ -1448,8 +1382,6 @@ google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEc google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -1469,7 +1401,6 @@ google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= -google.golang.org/genproto v0.0.0-20220519153652-3a47de7e79bd/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= @@ -1556,7 +1487,6 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/openapitools.json b/openapitools.json deleted file mode 100644 index 061a772..0000000 --- a/openapitools.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", - "spaces": 2, - "generator-cli": { - "version": "6.0.1" - } -} diff --git a/swagger/auth-vernonkeenan.yaml b/swagger/auth-vernonkeenan.yaml index 2f44d2c..437dc75 100644 --- a/swagger/auth-vernonkeenan.yaml +++ b/swagger/auth-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "auth" description: "Authentication Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -51,7 +51,7 @@ responses: schema: $ref: "#/definitions/Error" UserResponse: - description: Taxnexus Response with User objects + description: Response with User objects schema: $ref: "#/definitions/UserResponse" paths: @@ -145,7 +145,7 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object User: @@ -222,7 +222,7 @@ definitions: description: Full Photo URL type: string ID: - description: Taxnexus ID + description: ID type: string IsActive: description: Active @@ -297,7 +297,7 @@ definitions: description: The time day starts type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantID: description: Tenant ID associated with this user @@ -365,7 +365,7 @@ definitions: description: Role Name type: string TaxnexusAccount: - description: Taxnexus Account Number + description: Account Number type: string UserEmail: description: User Email Address @@ -399,7 +399,7 @@ definitions: description: Account Name type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantActive: description: Tenant active? diff --git a/swagger/auth0.yaml b/swagger/auth0.yaml deleted file mode 100644 index 5d65688..0000000 --- a/swagger/auth0.yaml +++ /dev/null @@ -1,494 +0,0 @@ -swagger: "2.0" -info: - version: 0.0.2 - title: "auth0" - description: "Auth0 Swagger Definition" - termsOfService: "http://taxnexus.net/terms/" - contact: - email: "noc@taxnexus.net" - license: - name: "Proprietary - Copyright (c) 2018-2020 by Taxnexus, Inc." -schemes: - - "https" -host: "taxnexus.auth0.com" -consumes: - - "application/json" -produces: - - "application/json" -parameters: - CredentialsRequest: - name: CredentialsRequest - in: body - required: true - description: Get Authentation Token - schema: - $ref: "#/definitions/CredentialsRequest" - email: - name: email - in: query - type: string - required: true - authHeader: - name: Authorization - in: header - type: string - required: true - UserRequest: - description: An array of User records - in: body - name: UserRequest - required: true - schema: - $ref: "#/definitions/UserRequest" - RoleUsersRequest: - description: An array of User IDs to add to a Role - in: body - name: RoleUsersRequest - required: true - schema: - $ref: "#/definitions/RoleUsersRequest" - UserRolesRequest: - description: An array of User IDs to add to a Role - in: body - name: UserRolesRequest - required: true - schema: - $ref: "#/definitions/UserRolesRequest" - roleId: - name: roleId - description: An Auth0 Role ID - type: string - in: path - required: true - userId: - name: userId - description: An Auth0 User ID - type: string - in: path - required: true -responses: - AccessForbidden: - description: "Access forbidden, account lacks access" - schema: - $ref: "#/definitions/Error" - NotFound: - description: Resource was not found - schema: - $ref: "#/definitions/Error" - ServerError: - description: Server Internal Error - schema: - $ref: "#/definitions/Error" - Unauthorized: - description: "Access Unauthorized, invalid API-KEY was used" - schema: - $ref: "#/definitions/Error" - UnprocessableEntity: - description: "Unprocessable Entity, likely a bad parameter" - schema: - $ref: "#/definitions/Error" - UserResponse: - description: Taxnexus Response with User objects - schema: - items: - $ref: "#/definitions/User" - type: array - RoleResponse: - description: Taxnexus Response with User objects - schema: - $ref: "#/definitions/RoleResponse" - CredentialsResponse: - description: Credentials response from Auth0 - schema: - $ref: "#/definitions/CredentialsResponse" -paths: - /oauth/token: - post: - summary: post to /oauth/token - operationId: postCredentials - description: Get credential token - parameters: - - $ref: "#/parameters/CredentialsRequest" - tags: - - Auth - responses: - "200": - $ref: "#/responses/CredentialsResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - /api/v2/roles: - get: - summary: Get Roles from Auth0 - operationId: getRoles - description: Get Roles from Auth0 - tags: - - Role - parameters: - - $ref: "#/parameters/authHeader" - responses: - "200": - $ref: "#/responses/UserResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - /api/v2/roles/{roleId}/users: - post: - summary: Add users to role - operationId: postRoleUsers - description: Add users to role - parameters: - - $ref: "#/parameters/authHeader" - - $ref: "#/parameters/RoleUsersRequest" - - $ref: "#/parameters/roleId" - tags: - - Role - responses: - "200": - description: Role users successfully updated - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "500": - $ref: "#/responses/ServerError" - /api/v2/users/{userId}/roles: - delete: - parameters: - - $ref: "#/parameters/authHeader" - - $ref: "#/parameters/userId" - - $ref: "#/parameters/UserRolesRequest" - tags: - - User - responses: - "204": - description: User roles successfully removed - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "500": - $ref: "#/responses/ServerError" - get: - summary: Get a User's Roles - description: Get a User's Roles - operationId: getUserRoles - parameters: - - $ref: "#/parameters/authHeader" - - $ref: "#/parameters/userId" - tags: - - User - responses: - "200": - $ref: "#/responses/RoleResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "500": - $ref: "#/responses/ServerError" - /api/v2/users: - get: - summary: Get all users from Auth0 - operationId: getUsers - description: Get all users from Auth0 - parameters: - - $ref: "#/parameters/authHeader" - tags: - - User - responses: - "200": - $ref: "#/responses/UserResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "500": - $ref: "#/responses/ServerError" - /api/v2/users-by-email: - get: - summary: Get a single user from Auth0 by Email Address - operationId: getUserByEmail - description: Get a single user from Auth0 by Email Address - parameters: - - $ref: "#/parameters/authHeader" - - $ref: "#/parameters/email" - tags: - - User - responses: - "200": - $ref: "#/responses/UserResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "500": - $ref: "#/responses/ServerError" - post: - summary: Create new Auth0 user - operationId: postUsers - description: create new Auth0 user - parameters: - - $ref: "#/parameters/authHeader" - - $ref: "#/parameters/UserRequest" - tags: - - User - responses: - "201": - description: New user created - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "409": - description: User already exists - "500": - $ref: "#/responses/ServerError" -definitions: - Error: - properties: - code: - format: int32 - type: integer - fields: - type: string - message: - type: string - type: object - Role: - properties: - id: - type: "string" - example: "rol_oWVoMn2Zx2qDSGUL" - name: - type: "string" - example: "Developer" - description: - type: "string" - example: "Taxnexus API Developer" - type: "object" - RoleResponse: - type: object - properties: - roles: - type: array - items: - $ref: "#/definitions/Role" - RoleUsersRequest: - properties: - users: - type: array - items: - type: string - UserRolesRequest: - properties: - roles: - type: array - items: - type: string - CredentialsRequest: - type: object - properties: - client_id: - type: string - client_secret: - type: string - audience: - type: string - grant_type: - type: string - CredentialsResponse: - type: object - properties: - access_token: - type: string - scope: - type: string - expires_in: - type: number - format: int64 - token_type: - format: string - NewUser: - type: object - properties: - email: - type: "string" - example: "john.doe@gmail.com" - phone_number: - type: "string" - example: "+199999999999999" - blocked: - type: "boolean" - example: false - email_verified: - type: "boolean" - example: false - phone_verified: - type: "boolean" - example: false - given_name: - type: "string" - example: "John" - family_name: - type: "string" - example: "Doe" - name: - type: "string" - example: "John Doe" - nickname: - type: "string" - example: "Johnny" - picture: - type: "string" - example: "https://secure.gravatar.com/avatar/15626c5e0c749cb912f9d1ad48dba440?s=480&r=pg&d=https%3A%2F%2Fssl.gstatic.com%2Fs2%2Fprofiles%2Fimages%2Fsilhouette80.png" - user_id: - type: "string" - example: "abc" - connection: - type: "string" - example: "Initial-Connection" - password: - type: "string" - example: "secret" - verify_email: - type: "boolean" - example: false - username: - type: "string" - example: "johndoe" - User: - properties: - email: - type: "string" - example: "vern@taxnexus.net" - email_verified: - type: "boolean" - example: true - user_id: - type: "string" - example: "auth0|5b180537157859716f2c9df5" - picture: - type: "string" - example: "https://s.gravatar.com/avatar/a08710b8d49416c729a0da8a9c34cdb0?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fve.png" - nickname: - type: "string" - example: "vern" - identities: - type: "array" - items: - type: "object" - properties: - connection: - type: "string" - example: "Username-Password-Authentication" - provider: - type: "string" - example: "auth0" - user_id: - type: "string" - example: "5b180537157859716f2c9df5" - isSocial: - type: "boolean" - example: false - updated_at: - type: "string" - example: "2020-09-22T19:19:02.706Z" - created_at: - type: "string" - example: "2018-06-06T16:00:55.930Z" - name: - type: "string" - example: "Vernon Keenan" - last_password_reset: - type: "string" - example: "2020-09-21T00:11:47.397Z" - multifactor_last_modified: - type: "string" - example: "2020-09-21T00:30:34.081Z" - family_name: - type: "string" - example: "Keenan" - given_name: - type: "string" - example: "Vernon" - user_metadata: - properties: - taxnexus_email: - type: "string" - example: "vern@taxnexus.net" - taxnexus_firstname: - type: "string" - example: "Vernon" - taxnexus_fullname: - type: "string" - example: "Vernon Keenan" - taxnexus_lastname: - type: "string" - example: "Keenan" - taxnexus_phone: - type: "string" - example: "+15106791900" - type: "object" - app_metadata: - properties: - taxnexus_account_id: - type: "string" - example: "7f661ca6-ae4a-486f-9c3c-cd292685a46d" - taxnexus_contact_id: - type: "string" - example: "9f79dca8-e875-4e2b-a5ad-001a3d32e83d" - taxnexus_user_id: - type: "string" - example: "f04da03d-70ad-46df-a46c-a676388aadd7" - roles: - type: "array" - items: - type: "string" - example: - - "login" - type: "object" - last_ip: - type: "string" - example: "67.188.106.161" - last_login: - type: "string" - example: "2020-09-22T19:19:02.706Z" - logins_count: - type: "number" - example: 178 - format: int64 - UserRequest: - description: An array Auth0 new user objects - properties: - users: - items: - $ref: "#/definitions/NewUser" - type: array - type: object diff --git a/swagger/crm-vernonkeenan.yaml b/swagger/crm-vernonkeenan.yaml index ecd2a05..7ecedf3 100644 --- a/swagger/crm-vernonkeenan.yaml +++ b/swagger/crm-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "crm" description: "Customer Information Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -23,13 +23,13 @@ produces: - "application/json" parameters: accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false type: string assetIdQuery: - description: Taxnexus Record Id of an Asset + description: Record Id of an Asset in: query name: assetId required: false @@ -55,25 +55,25 @@ parameters: required: false type: boolean companyIdQuery: - description: Taxnexus Company record ID + description: Company record ID in: query name: companyId required: false type: string leadIdQuery: - description: Taxnexus Lead record ID + description: Lead record ID in: query name: leadId required: false type: string contactIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contactId required: false type: string contractIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contractId required: false @@ -140,7 +140,7 @@ responses: schema: $ref: "#/definitions/Error" AccountResponse: - description: Taxnexus Response with Account objects with Contacts + description: Response with Account objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -149,7 +149,7 @@ responses: schema: $ref: "#/definitions/AccountResponse" AssetResponse: - description: Taxnexus Response with Asset objects with Contacts + description: Response with Asset objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -158,7 +158,7 @@ responses: schema: $ref: "#/definitions/AssetResponse" AssetObservableResponse: - description: Taxnexus Response with an array of Asset objects + description: Response with an array of Asset objects headers: Access-Control-Allow-Origin: type: string @@ -169,7 +169,7 @@ responses: $ref: "#/definitions/Asset" type: array AccountObservableResponse: - description: Taxnexus Response with an array of Account objects + description: Response with an array of Account objects headers: Access-Control-Allow-Origin: type: string @@ -187,7 +187,7 @@ responses: schema: $ref: "#/definitions/Error" ContactResponse: - description: Taxnexus Response with an array of Contact objects + description: Response with an array of Contact objects headers: Access-Control-Allow-Origin: type: string @@ -196,7 +196,7 @@ responses: schema: $ref: "#/definitions/ContactResponse" ContactObservableResponse: - description: Taxnexus Response with an array of Contact objects + description: Response with an array of Contact objects headers: Access-Control-Allow-Origin: type: string @@ -207,7 +207,7 @@ responses: $ref: "#/definitions/Contact" type: array ContractResponse: - description: Taxnexus Response with an array of Contract objects + description: Response with an array of Contract objects headers: Access-Control-Allow-Origin: type: string @@ -216,7 +216,7 @@ responses: schema: $ref: "#/definitions/ContractResponse" ContractObservableResponse: - description: Taxnexus Response with an array of Contract objects + description: Response with an array of Contract objects headers: Access-Control-Allow-Origin: type: string @@ -227,7 +227,7 @@ responses: $ref: "#/definitions/Contract" type: array LeadResponse: - description: Taxnexus Response with an array of Lead objects + description: Response with an array of Lead objects headers: Access-Control-Allow-Origin: type: string @@ -236,7 +236,7 @@ responses: schema: $ref: "#/definitions/LeadResponse" LeadObservableResponse: - description: Taxnexus Response with an array of Lead objects + description: Response with an array of Lead objects headers: Access-Control-Allow-Origin: type: string @@ -247,7 +247,7 @@ responses: $ref: "#/definitions/Lead" type: array DeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -1004,11 +1004,8 @@ paths: definitions: Account: properties: - TenantID: - description: Tenant Identifier - type: string ID: - description: Taxnexus Account Id + description: Account Id type: string AccountNumber: description: Account Number @@ -1016,6 +1013,8 @@ definitions: AccountSource: description: The marketing origin of this account type: string + Active: + type: integer AnnualRevenue: description: Annual Revenue Estimate format: double @@ -1028,6 +1027,8 @@ definitions: CloseDate: description: Close Date type: string + CloudRevenueTotal: + type: number CloudType: description: The type of cloud company type: string @@ -1046,6 +1047,8 @@ definitions: Description: description: Description of the account type: string + EIN: + type: string EarningsCall: description: Earnings Call Date type: string @@ -1067,6 +1070,10 @@ definitions: IPODate: description: IPO Date type: string + Imagealttext: + type: string + ImageURL: + type: string Industries: description: Industries type: string @@ -1133,9 +1140,15 @@ definitions: Site: description: Account Site type: string + Slug: + description: Slug + type: string TagLine: description: Company tagline type: string + TenantID: + description: Tenant Identifier + type: string TickerSymbol: description: Ticker Symbol type: string @@ -1196,11 +1209,8 @@ definitions: type: object Asset: properties: - TenantID: - description: Tenant ID - type: string ID: - description: Taxnexus Record Id + description: Record Id type: string AccountID: description: Account @@ -1321,6 +1331,9 @@ definitions: StockKeepingUnit: description: Product SKU type: string + TenantID: + description: Tenant ID + type: string TotalLifecycleAmount: description: Total Lifecycle Amount type: number @@ -1355,10 +1368,7 @@ definitions: Contact: properties: ID: - description: Taxnexus Record Id - type: string - TenantID: - description: Tenant Identifier + description: Record Id type: string AccountID: description: The primary account ID of this contact @@ -1372,6 +1382,8 @@ definitions: BirthDate: description: Birthdate type: string + CrunchbaseURL: + type: string CreatedByID: description: Created By User ID type: string @@ -1456,6 +1468,18 @@ definitions: PhotoURL: description: URL of a photograph of this User type: string + ReportsToID: + description: Reports To + type: string + Salutation: + description: Salutation + type: string + Slug: + description: Slug + type: string + TenantID: + description: Tenant Identifier + type: string Title: description: Contact Title type: string @@ -1481,11 +1505,8 @@ definitions: type: object Contract: properties: - TenantID: - description: Tenant Identifier - type: string ID: - description: Telnexus Record Id + description: Record Id type: string AccountID: description: Account @@ -1571,6 +1592,9 @@ definitions: Status: description: Status type: string + TenantID: + description: Tenant Identifier + type: string type: object ContractRequest: properties: @@ -1639,7 +1663,7 @@ definitions: description: First Name type: string ID: - description: Taxnexus Record Id + description: Record Id type: string LastModifiedByID: description: Last Modified By User ID @@ -1746,7 +1770,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -1786,6 +1810,6 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object diff --git a/swagger/devops-vernonkeenan.yaml b/swagger/devops-vernonkeenan.yaml index d03a070..34593ee 100644 --- a/swagger/devops-vernonkeenan.yaml +++ b/swagger/devops-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "devops" description: "System Operations Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -23,19 +23,19 @@ produces: - "application/json" parameters: databaseIdQuery: - description: Taxnexus Record Id of a Database + description: Record Id of a Database in: query name: databaseId required: false type: string taxnexusAccountQuery: - description: Taxnexus Account of a Tenant + description: Account of a Tenant in: query name: taxnexusAccount required: false type: string tenantIdQuery: - description: Taxnexus Record Id of a Tenant + description: Record Id of a Tenant in: query name: tenantId required: false @@ -81,13 +81,13 @@ parameters: schema: $ref: "#/definitions/UserRequest" accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false type: string contactIdQuery: - description: Taxnexus Record Id of a Contact + description: Record Id of a Contact in: query name: contactId required: false @@ -111,49 +111,49 @@ parameters: name: apikey type: string clusterIdPath: - description: Taxnexus Record Id of a Cluster + description: Record Id of a Cluster in: path name: clusterIdPath type: string required: true databaseIdPath: - description: Taxnexus Record Id of a Database + description: Record Id of a Database in: path name: databaseIdPath type: string required: true clusterIdQuery: - description: Taxnexus Record Id of a Cluster + description: Record Id of a Cluster in: query name: clusterId required: false type: string companyIdQuery: - description: Taxnexus Record Id of a Company + description: Record Id of a Company in: query name: companyId required: false type: string ingestIdPath: - description: Taxnexus Record Id of a Ingest + description: Record Id of a Ingest in: path name: ingestIdPath type: string required: true ingestIdQuery: - description: Taxnexus Record Id of an Ingest + description: Record Id of an Ingest in: query name: ingestId required: false type: string jobIdPath: - description: Taxnexus Record Id of a Job + description: Record Id of a Job in: path name: jobIdPath type: string required: true jobIdQuery: - description: Taxnexus Record Id of a Job + description: Record Id of a Job in: query name: jobId required: false @@ -173,7 +173,7 @@ parameters: required: false type: integer serviceIdPath: - description: Taxnexus Record Id of a Service + description: Record Id of a Service in: path name: serviceIdPath type: string @@ -184,7 +184,7 @@ parameters: name: serviceId type: string templateIdPath: - description: Taxnexus Record Id of a Template + description: Record Id of a Template in: path name: templateIdPath type: string @@ -205,19 +205,19 @@ parameters: name: isMaster type: boolean userIdPath: - description: Taxnexus Record Id of a User + description: Record Id of a User in: path name: userIdPath type: string required: true tenantIdPath: - description: Taxnexus Record Id of a Tenant + description: Record Id of a Tenant in: path name: tenantIdPath type: string required: true userIdQuery: - description: Taxnexus User ID (unique) + description: User ID (unique) in: query name: userId type: string @@ -267,7 +267,7 @@ responses: items: $ref: "#/definitions/Cluster" ClusterResponse: - description: Taxnexus Response with Cluster objects + description: Response with Cluster objects headers: Access-Control-Allow-Origin: type: string @@ -276,7 +276,7 @@ responses: schema: $ref: "#/definitions/ClusterResponse" DeveopsDeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -293,7 +293,7 @@ responses: headers: Access-Control-Allow-Origin: type: string - description: Taxnexus Response with Database objects + description: Response with Database objects schema: $ref: "#/definitions/DatabaseResponse" DatabaseSingletonResponse: @@ -320,7 +320,7 @@ responses: headers: Access-Control-Allow-Origin: type: string - description: Taxnexus Response with Tenant objects + description: Response with Tenant objects schema: $ref: "#/definitions/TenantResponse" TenantSingletonResponse: @@ -351,7 +351,7 @@ responses: schema: $ref: "#/definitions/Error" TemplateResponse: - description: Taxnexus Response with Template objects + description: Response with Template objects headers: Access-Control-Allow-Origin: type: string @@ -398,7 +398,7 @@ responses: schema: $ref: "#/definitions/Error" UserResponse: - description: Taxnexus Response with User objects + description: Response with User objects headers: Access-Control-Allow-Origin: type: string @@ -1146,7 +1146,7 @@ definitions: description: Gateway type: string ID: - description: Taxnexus Record Id + description: Record Id type: string IPAddress: description: IP Address @@ -1303,7 +1303,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -1343,7 +1343,7 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object Role: @@ -1412,7 +1412,7 @@ definitions: format: byte type: string ID: - description: Taxnexus Record Id + description: Record Id type: string IsActive: description: Active? @@ -1462,7 +1462,7 @@ definitions: $ref: "#/definitions/ResponseMeta" type: object Tenant: - description: Taxnexus Account Tenant + description: Account Tenant properties: AccountID: description: The Account that owns this Tenant @@ -1547,7 +1547,7 @@ definitions: description: Contact ID type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantActive: description: Tenant active? @@ -1654,7 +1654,7 @@ definitions: description: Full Photo URL type: string ID: - description: Taxnexus ID + description: Record ID type: string IsActive: description: Active @@ -1729,7 +1729,7 @@ definitions: description: The time day starts type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantID: description: Tenant ID associated with this user @@ -1803,7 +1803,7 @@ definitions: description: Role Name type: string TaxnexusAccount: - description: Taxnexus Account Number + description: Account Number type: string UserEmail: description: User Email Address diff --git a/swagger/external/auth-vernonkeenan.yaml b/swagger/external/auth-vernonkeenan.yaml index 373f9c2..10d8d15 100644 --- a/swagger/external/auth-vernonkeenan.yaml +++ b/swagger/external/auth-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "auth" description: "Authentication Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -51,7 +51,7 @@ responses: schema: $ref: "#/definitions/Error" UserResponse: - description: Taxnexus Response with User objects + description: Response with User objects schema: $ref: "#/definitions/UserResponse" paths: @@ -145,7 +145,7 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object User: @@ -222,7 +222,7 @@ definitions: description: Full Photo URL type: string ID: - description: Taxnexus ID + description: ID type: string IsActive: description: Active @@ -297,7 +297,7 @@ definitions: description: The time day starts type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantID: description: Tenant ID associated with this user @@ -365,7 +365,7 @@ definitions: description: Role Name type: string TaxnexusAccount: - description: Taxnexus Account Number + description: Account Number type: string UserEmail: description: User Email Address @@ -399,7 +399,7 @@ definitions: description: Account Name type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantActive: description: Tenant active? diff --git a/swagger/external/crm-vernonkeenan.yaml b/swagger/external/crm-vernonkeenan.yaml index 02002bc..3c58cc5 100644 --- a/swagger/external/crm-vernonkeenan.yaml +++ b/swagger/external/crm-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "crm" description: "Customer Information Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -23,13 +23,13 @@ produces: - "application/json" parameters: accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false type: string assetIdQuery: - description: Taxnexus Record Id of an Asset + description: Record Id of an Asset in: query name: assetId required: false @@ -55,25 +55,25 @@ parameters: required: false type: boolean companyIdQuery: - description: Taxnexus Company record ID + description: Company record ID in: query name: companyId required: false type: string leadIdQuery: - description: Taxnexus Lead record ID + description: Lead record ID in: query name: leadId required: false type: string contactIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contactId required: false type: string contractIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contractId required: false @@ -140,7 +140,7 @@ responses: schema: $ref: "#/definitions/Error" AccountResponse: - description: Taxnexus Response with Account objects with Contacts + description: Response with Account objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -149,7 +149,7 @@ responses: schema: $ref: "#/definitions/AccountResponse" AssetResponse: - description: Taxnexus Response with Asset objects with Contacts + description: Response with Asset objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -158,7 +158,7 @@ responses: schema: $ref: "#/definitions/AssetResponse" AssetObservableResponse: - description: Taxnexus Response with an array of Asset objects + description: Response with an array of Asset objects headers: Access-Control-Allow-Origin: type: string @@ -169,7 +169,7 @@ responses: $ref: "#/definitions/Asset" type: array AccountObservableResponse: - description: Taxnexus Response with an array of Account objects + description: Response with an array of Account objects headers: Access-Control-Allow-Origin: type: string @@ -187,7 +187,7 @@ responses: schema: $ref: "#/definitions/Error" ContactResponse: - description: Taxnexus Response with an array of Contact objects + description: Response with an array of Contact objects headers: Access-Control-Allow-Origin: type: string @@ -196,7 +196,7 @@ responses: schema: $ref: "#/definitions/ContactResponse" ContactObservableResponse: - description: Taxnexus Response with an array of Contact objects + description: Response with an array of Contact objects headers: Access-Control-Allow-Origin: type: string @@ -207,7 +207,7 @@ responses: $ref: "#/definitions/Contact" type: array ContractResponse: - description: Taxnexus Response with an array of Contract objects + description: Response with an array of Contract objects headers: Access-Control-Allow-Origin: type: string @@ -216,7 +216,7 @@ responses: schema: $ref: "#/definitions/ContractResponse" ContractObservableResponse: - description: Taxnexus Response with an array of Contract objects + description: Response with an array of Contract objects headers: Access-Control-Allow-Origin: type: string @@ -227,7 +227,7 @@ responses: $ref: "#/definitions/Contract" type: array LeadResponse: - description: Taxnexus Response with an array of Lead objects + description: Response with an array of Lead objects headers: Access-Control-Allow-Origin: type: string @@ -236,7 +236,7 @@ responses: schema: $ref: "#/definitions/LeadResponse" LeadObservableResponse: - description: Taxnexus Response with an array of Lead objects + description: Response with an array of Lead objects headers: Access-Control-Allow-Origin: type: string @@ -247,7 +247,7 @@ responses: $ref: "#/definitions/Lead" type: array DeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -1004,11 +1004,8 @@ paths: definitions: Account: properties: - TenantID: - description: Tenant Identifier - type: string ID: - description: Taxnexus Account Id + description: Account Id type: string AccountNumber: description: Account Number @@ -1016,6 +1013,8 @@ definitions: AccountSource: description: The marketing origin of this account type: string + Active: + type: integer AnnualRevenue: description: Annual Revenue Estimate format: double @@ -1028,6 +1027,8 @@ definitions: CloseDate: description: Close Date type: string + CloudRevenueTotal: + type: number CloudType: description: The type of cloud company type: string @@ -1046,6 +1047,8 @@ definitions: Description: description: Description of the account type: string + EIN: + type: string EarningsCall: description: Earnings Call Date type: string @@ -1067,6 +1070,10 @@ definitions: IPODate: description: IPO Date type: string + Imagealttext: + type: string + ImageURL: + type: string Industries: description: Industries type: string @@ -1133,9 +1140,15 @@ definitions: Site: description: Account Site type: string + Slug: + description: Slug + type: string TagLine: description: Company tagline type: string + TenantID: + description: Tenant Identifier + type: string TickerSymbol: description: Ticker Symbol type: string @@ -1196,11 +1209,8 @@ definitions: type: object Asset: properties: - TenantID: - description: Tenant ID - type: string ID: - description: Taxnexus Record Id + description: Record Id type: string AccountID: description: Account @@ -1321,6 +1331,9 @@ definitions: StockKeepingUnit: description: Product SKU type: string + TenantID: + description: Tenant ID + type: string TotalLifecycleAmount: description: Total Lifecycle Amount type: number @@ -1355,10 +1368,7 @@ definitions: Contact: properties: ID: - description: Taxnexus Record Id - type: string - TenantID: - description: Tenant Identifier + description: Record Id type: string AccountID: description: The primary account ID of this contact @@ -1372,6 +1382,8 @@ definitions: BirthDate: description: Birthdate type: string + CrunchbaseURL: + type: string CreatedByID: description: Created By User ID type: string @@ -1456,6 +1468,18 @@ definitions: PhotoURL: description: URL of a photograph of this User type: string + ReportsToID: + description: Reports To + type: string + Salutation: + description: Salutation + type: string + Slug: + description: Slug + type: string + TenantID: + description: Tenant Identifier + type: string Title: description: Contact Title type: string @@ -1481,11 +1505,8 @@ definitions: type: object Contract: properties: - TenantID: - description: Tenant Identifier - type: string ID: - description: Telnexus Record Id + description: Record Id type: string AccountID: description: Account @@ -1571,6 +1592,9 @@ definitions: Status: description: Status type: string + TenantID: + description: Tenant Identifier + type: string type: object ContractRequest: properties: @@ -1639,7 +1663,7 @@ definitions: description: First Name type: string ID: - description: Taxnexus Record Id + description: Record Id type: string LastModifiedByID: description: Last Modified By User ID @@ -1746,7 +1770,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -1786,6 +1810,6 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object diff --git a/swagger/external/devops-vernonkeenan.yaml b/swagger/external/devops-vernonkeenan.yaml index 6c6eb32..5cf05b5 100644 --- a/swagger/external/devops-vernonkeenan.yaml +++ b/swagger/external/devops-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "devops" description: "System Operations Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -23,19 +23,19 @@ produces: - "application/json" parameters: databaseIdQuery: - description: Taxnexus Record Id of a Database + description: Record Id of a Database in: query name: databaseId required: false type: string taxnexusAccountQuery: - description: Taxnexus Account of a Tenant + description: Account of a Tenant in: query name: taxnexusAccount required: false type: string tenantIdQuery: - description: Taxnexus Record Id of a Tenant + description: Record Id of a Tenant in: query name: tenantId required: false @@ -81,13 +81,13 @@ parameters: schema: $ref: "#/definitions/UserRequest" accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false type: string contactIdQuery: - description: Taxnexus Record Id of a Contact + description: Record Id of a Contact in: query name: contactId required: false @@ -111,49 +111,49 @@ parameters: name: apikey type: string clusterIdPath: - description: Taxnexus Record Id of a Cluster + description: Record Id of a Cluster in: path name: clusterIdPath type: string required: true databaseIdPath: - description: Taxnexus Record Id of a Database + description: Record Id of a Database in: path name: databaseIdPath type: string required: true clusterIdQuery: - description: Taxnexus Record Id of a Cluster + description: Record Id of a Cluster in: query name: clusterId required: false type: string companyIdQuery: - description: Taxnexus Record Id of a Company + description: Record Id of a Company in: query name: companyId required: false type: string ingestIdPath: - description: Taxnexus Record Id of a Ingest + description: Record Id of a Ingest in: path name: ingestIdPath type: string required: true ingestIdQuery: - description: Taxnexus Record Id of an Ingest + description: Record Id of an Ingest in: query name: ingestId required: false type: string jobIdPath: - description: Taxnexus Record Id of a Job + description: Record Id of a Job in: path name: jobIdPath type: string required: true jobIdQuery: - description: Taxnexus Record Id of a Job + description: Record Id of a Job in: query name: jobId required: false @@ -173,7 +173,7 @@ parameters: required: false type: integer serviceIdPath: - description: Taxnexus Record Id of a Service + description: Record Id of a Service in: path name: serviceIdPath type: string @@ -184,7 +184,7 @@ parameters: name: serviceId type: string templateIdPath: - description: Taxnexus Record Id of a Template + description: Record Id of a Template in: path name: templateIdPath type: string @@ -205,19 +205,19 @@ parameters: name: isMaster type: boolean userIdPath: - description: Taxnexus Record Id of a User + description: Record Id of a User in: path name: userIdPath type: string required: true tenantIdPath: - description: Taxnexus Record Id of a Tenant + description: Record Id of a Tenant in: path name: tenantIdPath type: string required: true userIdQuery: - description: Taxnexus User ID (unique) + description: User ID (unique) in: query name: userId type: string @@ -267,7 +267,7 @@ responses: items: $ref: "#/definitions/Cluster" ClusterResponse: - description: Taxnexus Response with Cluster objects + description: Response with Cluster objects headers: Access-Control-Allow-Origin: type: string @@ -276,7 +276,7 @@ responses: schema: $ref: "#/definitions/ClusterResponse" DeveopsDeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -293,7 +293,7 @@ responses: headers: Access-Control-Allow-Origin: type: string - description: Taxnexus Response with Database objects + description: Response with Database objects schema: $ref: "#/definitions/DatabaseResponse" DatabaseSingletonResponse: @@ -320,7 +320,7 @@ responses: headers: Access-Control-Allow-Origin: type: string - description: Taxnexus Response with Tenant objects + description: Response with Tenant objects schema: $ref: "#/definitions/TenantResponse" TenantSingletonResponse: @@ -351,7 +351,7 @@ responses: schema: $ref: "#/definitions/Error" TemplateResponse: - description: Taxnexus Response with Template objects + description: Response with Template objects headers: Access-Control-Allow-Origin: type: string @@ -398,7 +398,7 @@ responses: schema: $ref: "#/definitions/Error" UserResponse: - description: Taxnexus Response with User objects + description: Response with User objects headers: Access-Control-Allow-Origin: type: string @@ -1146,7 +1146,7 @@ definitions: description: Gateway type: string ID: - description: Taxnexus Record Id + description: Record Id type: string IPAddress: description: IP Address @@ -1303,7 +1303,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -1343,7 +1343,7 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object Role: @@ -1412,7 +1412,7 @@ definitions: format: byte type: string ID: - description: Taxnexus Record Id + description: Record Id type: string IsActive: description: Active? @@ -1462,7 +1462,7 @@ definitions: $ref: "#/definitions/ResponseMeta" type: object Tenant: - description: Taxnexus Account Tenant + description: Account Tenant properties: AccountID: description: The Account that owns this Tenant @@ -1547,7 +1547,7 @@ definitions: description: Contact ID type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantActive: description: Tenant active? @@ -1654,7 +1654,7 @@ definitions: description: Full Photo URL type: string ID: - description: Taxnexus ID + description: Record ID type: string IsActive: description: Active @@ -1729,7 +1729,7 @@ definitions: description: The time day starts type: string TaxnexusAccount: - description: Taxnexus Account + description: Account type: string TenantID: description: Tenant ID associated with this user @@ -1803,7 +1803,7 @@ definitions: description: Role Name type: string TaxnexusAccount: - description: Taxnexus Account Number + description: Account Number type: string UserEmail: description: User Email Address diff --git a/swagger/external/members-vernonkeenan.yaml b/swagger/external/members-vernonkeenan.yaml new file mode 100644 index 0000000..e12bd6b --- /dev/null +++ b/swagger/external/members-vernonkeenan.yaml @@ -0,0 +1,1869 @@ +swagger: "2.0" +info: + version: 0.3.0 + title: "members" + description: "Membership Microservice" + termsOfService: "https://salesforcedevops.net/terms/" + contact: + email: "vern@vernonkeenan.com" + license: + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" +securityDefinitions: + ApiKeyAuth: + type: "apiKey" + in: "header" + name: "X-API-Key" +schemes: + - "https" +basePath: "/vk/members/v1" +host: "gw.tnxs.net" +consumes: + - "application/json" +produces: + - "application/json" +parameters: + limitQuery: + description: "How many objects to return at one time" + format: int64 + in: query + name: limit + required: false + type: integer + offsetQuery: + description: How many objects to skip? + format: int64 + in: query + name: offset + required: false + type: integer + idQuery: + description: Unique Record ID + in: query + name: id + required: false + type: string + AttendeeRequest: + description: An array of new Attendee records + in: body + name: attendeeRequest + required: true + schema: + $ref: "#/definitions/AttendeeRequest" + CertificateRequest: + description: An array of new Certificate records + in: body + name: certificateRequest + required: true + schema: + $ref: "#/definitions/CertificateRequest" + CourseRequest: + description: An array of new Course records + in: body + name: courseRequest + required: true + schema: + $ref: "#/definitions/CourseRequest" + CourseLessonRequest: + description: An array of new CourseLesson records + in: body + name: courselessonRequest + required: true + schema: + $ref: "#/definitions/CourseLessonRequest" + CourseSectionRequest: + description: An array of new CourseSection records + in: body + name: coursesectionRequest + required: true + schema: + $ref: "#/definitions/CourseSectionRequest" + EnrollmentRequest: + description: An array of new Enrollment records + in: body + name: enrollmentRequest + required: true + schema: + $ref: "#/definitions/EnrollmentRequest" + EventRequest: + description: An array of new Event records + in: body + name: eventRequest + required: true + schema: + $ref: "#/definitions/EventRequest" + EventCategoryRequest: + description: An array of new EventCategory records + in: body + name: eventcategoryRequest + required: true + schema: + $ref: "#/definitions/EventCategoryRequest" + EventCategoryAssignmentRequest: + description: An array of new EventCategoryAssignment records + in: body + name: eventcategoryassignmentRequest + required: true + schema: + $ref: "#/definitions/EventCategoryAssignmentRequest" + FavoriteRequest: + description: An array of new Favorite records + in: body + name: favoriteRequest + required: true + schema: + $ref: "#/definitions/FavoriteRequest" + InvoiceRequest: + description: An array of new Invoice records + in: body + name: invoiceRequest + required: true + schema: + $ref: "#/definitions/InvoiceRequest" + IssuedCertificateRequest: + description: An array of new IssuedCertificate records + in: body + name: issuedcertificateRequest + required: true + schema: + $ref: "#/definitions/IssuedCertificateRequest" + LessonProgressRequest: + description: An array of new LessonProgress records + in: body + name: lessonprogressRequest + required: true + schema: + $ref: "#/definitions/LessonProgressRequest" + OrderRequest: + description: An array of new Order records + in: body + name: orderRequest + required: true + schema: + $ref: "#/definitions/OrderRequest" + PaymentMethodRequest: + description: An array of new PaymentMethod records + in: body + name: paymentmethodRequest + required: true + schema: + $ref: "#/definitions/PaymentMethodRequest" + ResearchProjectRequest: + description: An array of new ResearchProject records + in: body + name: researchprojectRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectRequest" + ResearchProjectCompanyRequest: + description: An array of new ResearchProjectCompany records + in: body + name: researchprojectcompanyRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectCompanyRequest" + ResearchProjectTopicRequest: + description: An array of new ResearchProjectTopic records + in: body + name: researchprojecttopicRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectTopicRequest" + TicketRequest: + description: An array of new Ticket records + in: body + name: ticketRequest + required: true + schema: + $ref: "#/definitions/TicketRequest" + TransactionRequest: + description: An array of new Transaction records + in: body + name: transactionRequest + required: true + schema: + $ref: "#/definitions/TransactionRequest" +responses: + AttendeeResponse: + description: Attendee Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/AttendeeResponse" + CertificateResponse: + description: Certificate Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CertificateResponse" + CourseResponse: + description: Course Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseResponse" + CourseLessonResponse: + description: CourseLesson Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseLessonResponse" + CourseSectionResponse: + description: CourseSection Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseSectionResponse" + EnrollmentResponse: + description: Enrollment Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EnrollmentResponse" + EventResponse: + description: Event Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventResponse" + EventCategoryResponse: + description: EventCategory Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventCategoryResponse" + EventCategoryAssignmentResponse: + description: EventCategoryAssignment Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventCategoryAssignmentResponse" + FavoriteResponse: + description: Favorite Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/FavoriteResponse" + InvoiceResponse: + description: Invoice Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/InvoiceResponse" + IssuedCertificateResponse: + description: IssuedCertificate Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/IssuedCertificateResponse" + LessonProgressResponse: + description: LessonProgress Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/LessonProgressResponse" + OrderResponse: + description: Order Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/OrderResponse" + PaymentMethodResponse: + description: PaymentMethod Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/PaymentMethodResponse" + ResearchProjectResponse: + description: ResearchProject Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectResponse" + ResearchProjectCompanyResponse: + description: ResearchProjectCompany Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectCompanyResponse" + ResearchProjectTopicResponse: + description: ResearchProjectTopic Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectTopicResponse" + TicketResponse: + description: Ticket Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/TicketResponse" + TransactionResponse: + description: Transaction Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/TransactionResponse" +paths: + /attendees: + get: + summary: Get a list of Attendees + operationId: getAttendees + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + description: OK + post: + summary: Create a new Attendee + operationId: createAttendee + parameters: + - $ref: "#/parameters/AttendeeRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Attendee + operationId: updateAttendee + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Attendee + operationId: deleteAttendee + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /certificates: + get: + summary: Get a list of Certificates + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getCertificates + responses: + "200": + description: OK + post: + summary: Create a new Certificate + operationId: createCertificate + parameters: + - $ref: "#/parameters/CertificateRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Certificate + operationId: updateCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Certificate + operationId: deleteCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /courses: + get: + summary: Get a list of Courses + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getCourses + responses: + "200": + description: OK + post: + summary: Create a new Course + operationId: createCourse + parameters: + - $ref: "#/parameters/CourseRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Course + operationId: updateCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Course + operationId: deleteCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /courselessons: + get: + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + summary: Get a list of CourseLessons + operationId: getCourseLessons + responses: + "200": + description: OK + post: + summary: Create a new CourseLesson + operationId: createCourseLesson + parameters: + - $ref: "#/parameters/CourseLessonRequest" + responses: + "201": + description: Created + put: + summary: Update an existing CourseLesson + operationId: updateCourseLesson + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a CourseLesson + operationId: deleteCourseLesson + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /coursesections: + get: + summary: Get a list of CourseSections + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getCourseSections + responses: + "200": + description: OK + post: + summary: Create a new CourseSection + operationId: createCourseSection + parameters: + - $ref: "#/parameters/CourseSectionRequest" + responses: + "201": + description: Created + put: + summary: Update an existing CourseSection + operationId: updateCourseSection + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a CourseSection + operationId: deleteCourseSection + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /enrollments: + get: + summary: Get a list of Enrollments + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getEnrollments + responses: + "200": + description: OK + post: + summary: Create a new Enrollment + operationId: createEnrollment + parameters: + - $ref: "#/parameters/EnrollmentRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Enrollment + operationId: updateEnrollment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Enrollment + operationId: deleteEnrollment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /events: + get: + summary: Get a list of Events + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getEvents + responses: + "200": + description: OK + post: + summary: Create a new Event + operationId: createEvent + parameters: + - $ref: "#/parameters/EventRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Event + operationId: updateEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Event + operationId: deleteEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /eventcategorys: + get: + summary: Get a list of EventCategorys + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getEventCategorys + responses: + "200": + description: OK + post: + summary: Create a new EventCategory + operationId: createEventCategory + parameters: + - $ref: "#/parameters/EventCategoryRequest" + responses: + "201": + description: Created + put: + summary: Update an existing EventCategory + operationId: updateEventCategory + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a EventCategory + operationId: deleteEventCategory + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /eventcategoryassignments: + get: + summary: Get a list of EventCategoryassignments + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getEventCategoryassignments + responses: + "200": + description: OK + post: + summary: Create a new EventCategoryAssignment + operationId: createEventCategoryAssignment + parameters: + - $ref: "#/parameters/EventCategoryAssignmentRequest" + responses: + "201": + description: Created + put: + summary: Update an existing EventCategoryAssignment + operationId: updateEventCategoryAssignment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a EventCategoryAssignment + operationId: deleteEventCategoryAssignment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /favorites: + get: + summary: Get a list of Favorites + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getFavorites + responses: + "200": + description: OK + post: + summary: Create a new Favorite + operationId: createFavorite + parameters: + - $ref: "#/parameters/FavoriteRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Favorite + operationId: updateFavorite + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Favorite + operationId: deleteFavorite + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /invoices: + get: + summary: Get a list of Invoices + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getInvoices + responses: + "200": + description: OK + post: + summary: Create a new Invoice + operationId: createInvoice + parameters: + - $ref: "#/parameters/InvoiceRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Invoice + operationId: updateInvoice + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Invoice + operationId: deleteInvoice + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /issuedcertificates: + get: + summary: Get a list of Issuedcertificates + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getIssuedcertificates + responses: + "200": + description: OK + post: + summary: Create a new IssuedCertificate + operationId: createIssuedCertificate + parameters: + - $ref: "#/parameters/IssuedCertificateRequest" + responses: + "201": + description: Created + put: + summary: Update an existing IssuedCertificate + operationId: updateIssuedCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a IssuedCertificate + operationId: deleteIssuedCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /lessonprogress: + get: + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + summary: Get a list of LessonProgress + operationId: getLessonProgress + responses: + "200": + description: OK + post: + summary: Create a new LessonProgress + operationId: createLessonProgress + parameters: + - $ref: "#/parameters/LessonProgressRequest" + responses: + "201": + description: Created + put: + summary: Update an existing LessonProgress + operationId: updateLessonProgress + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a LessonProgress + operationId: deleteLessonProgress + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /orders: + get: + summary: Get a list of Orders + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getOrders + responses: + "200": + description: OK + post: + summary: Create a new Order + operationId: createOrder + parameters: + - $ref: "#/parameters/OrderRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Order + operationId: updateOrder + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Order + operationId: deleteOrder + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /paymentmethods: + get: + summary: Get a list of PaymentMethods + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getPaymentMethods + responses: + "200": + description: OK + post: + summary: Create a new PaymentMethod + operationId: createPaymentMethod + parameters: + - $ref: "#/parameters/PaymentMethodRequest" + responses: + "201": + description: Created + put: + summary: Update an existing PaymentMethod + operationId: updatePaymentMethod + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a PaymentMethod + operationId: deletePaymentMethod + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /researchprojects: + get: + summary: Get a list of ResearchProjects + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getResearchProjects + responses: + "200": + description: OK + post: + summary: Create a new ResearchProject + operationId: createResearchProject + parameters: + - $ref: "#/parameters/ResearchProjectRequest" + responses: + "201": + description: Created + put: + summary: Update an existing ResearchProject + operationId: updateResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a ResearchProject + operationId: deleteResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /researchprojectcompanys: + get: + summary: Get a list of ResearchProjectCompanys + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getResearchProjectCompanys + responses: + "200": + description: OK + post: + summary: Create a new ResearchProjectCompany + operationId: createResearchProjectCompany + parameters: + - $ref: "#/parameters/ResearchProjectCompanyRequest" + responses: + "201": + description: Created + put: + summary: Update an existing ResearchProjectCompany + operationId: updateResearchProjectCompany + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a ResearchProjectCompany + operationId: deleteResearchProjectCompany + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /researchprojecttopics: + get: + summary: Get a list of ResearchProjectTopics + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getResearchProjectTopics + responses: + "200": + description: OK + post: + summary: Create a new ResearchProjectTopic + operationId: createResearchProjectTopic + parameters: + - $ref: "#/parameters/ResearchProjectTopicRequest" + responses: + "201": + description: Created + put: + summary: Update an existing ResearchProjectTopic + operationId: updateResearchProjectTopic + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a ResearchProjectTopic + operationId: deleteResearchProjectTopic + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /tickets: + get: + summary: Get a list of Tickets + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getTickets + responses: + "200": + description: OK + post: + summary: Create a new Ticket + operationId: createTicket + parameters: + - $ref: "#/parameters/TicketRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Ticket + operationId: updateTicket + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Ticket + operationId: deleteTicket + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /transactions: + get: + summary: Get a list of Transactions + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getTransactions + responses: + "200": + description: OK + post: + summary: Create a new Transaction + operationId: createTransaction + parameters: + - $ref: "#/parameters/TransactionRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Transaction + operationId: updateTransaction + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Transaction + operationId: deleteTransaction + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content +definitions: + Attendee: + type: object + properties: + ID: + type: string + CheckinStatus: + type: integer + CreatedDate: + type: string + x-nullable: true + EventID: + type: string + LastModifiedDate: + type: string + x-nullable: true + TicketID: + type: string + UserID: + type: string + AttendeeRequest: + type: object + description: An array of Attendee objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Attendee" + AttendeeResponse: + type: object + description: An array of Attendee objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Attendee" + Certificate: + type: object + properties: + ID: + type: string + CertificateTemplate: + type: string + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Description: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Title: + type: string + CertificateRequest: + type: object + description: An array of Certificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Certificate" + CertificateResponse: + type: object + description: An array of Certificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Certificate" + Course: + type: object + properties: + ID: + type: string + Title: + type: string + Description: + type: string + Fulldescription: + type: string + InstructorID: + type: string + Price: + type: number + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + CourseRequest: + type: object + description: An array of Course objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Course" + CourseResponse: + type: object + description: An array of Course objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Course" + CourseLesson: + type: object + properties: + ID: + type: string + Content: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Order: + type: integer + SectionID: + type: string + Title: + type: string + VideoURL: + type: string + CourseLessonRequest: + type: object + description: An array of CourseLesson objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseLesson" + CourseLessonResponse: + type: object + description: An array of CourseLesson objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseLesson" + CourseSection: + type: object + properties: + ID: + type: string + CourseID: + type: string + Title: + type: string + Description: + type: string + Order: + type: integer + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + CourseSectionRequest: + type: object + description: An array of CourseSection objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseSection" + CourseSectionResponse: + type: object + description: An array of CourseSection objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseSection" + Enrollment: + type: object + properties: + ID: + type: string + Completed: + type: integer + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + EnrollmentDate: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + UserID: + type: string + EnrollmentRequest: + type: object + description: An array of Enrollment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Enrollment" + EnrollmentResponse: + type: object + description: An array of Enrollment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Enrollment" + Event: + type: object + properties: + ID: + type: string + Title: + type: string + Description: + type: string + x-nullable: true + StartDate: + type: string + EndDate: + type: string + Location: + type: string + Capacity: + type: integer + x-nullable: true + OrganizeruserID: + type: string + Createdat: + type: string + x-nullable: true + UpDatedat: + type: string + x-nullable: true + EventRequest: + type: object + description: An array of Event objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Event" + EventResponse: + type: object + description: An array of Event objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Event" + EventCategory: + type: object + properties: + ID: + type: string + Name: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedDate: + type: string + x-nullable: true + EventCategoryRequest: + type: object + description: An array of EventCategory objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategory" + EventCategoryResponse: + type: object + description: An array of EventCategory objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategory" + EventCategoryAssignment: + type: object + properties: + ID: + type: string + EventID: + type: string + EventCategoryID: + type: string + Createdat: + type: string + x-nullable: true + UpDatedat: + type: string + x-nullable: true + EventCategoryAssignmentRequest: + type: object + description: An array of EventCategoryAssignment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategoryAssignment" + EventCategoryAssignmentResponse: + type: object + description: An array of EventCategoryAssignment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategoryAssignment" + Favorite: + type: object + properties: + ID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Description: + type: string + Favoritetype: + type: string + x-nullable: true + FavoriteID: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Name: + type: string + Path: + type: string + TenantID: + type: string + UserID: + type: string + FavoriteRequest: + type: object + description: An array of Favorite objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Favorite" + FavoriteResponse: + type: object + description: An array of Favorite objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Favorite" + Invoice: + type: object + properties: + ID: + type: string + Amount: + type: number + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Currency: + type: string + DueDate: + type: string + Invoicenumber: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Status: + type: string + TransactionID: + type: string + UserID: + type: string + InvoiceRequest: + type: object + description: An array of Invoice objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Invoice" + InvoiceResponse: + type: object + description: An array of Invoice objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Invoice" + IssuedCertificate: + type: object + properties: + ID: + type: string + CertificateID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + EnrollmentID: + type: string + ExpirationDate: + type: string + x-nullable: true + IssueDate: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + UserID: + type: string + VerificationCode: + type: string + IssuedCertificateRequest: + type: object + description: An array of IssuedCertificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/IssuedCertificate" + IssuedCertificateResponse: + type: object + description: An array of IssuedCertificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/IssuedCertificate" + LessonProgress: + type: object + properties: + ID: + type: string + Completed: + type: integer + Completedat: + type: string + x-nullable: true + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + EnrollmentID: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + LessonID: + type: string + UserID: + type: string + LessonProgressRequest: + type: object + description: An array of LessonProgress objects + properties: + Data: + type: array + items: + $ref: "#/definitions/LessonProgress" + LessonProgressResponse: + type: object + description: An array of LessonProgress objects + properties: + Data: + type: array + items: + $ref: "#/definitions/LessonProgress" + Order: + type: object + properties: + ID: + type: string + UserID: + type: string + EventID: + type: string + TicketID: + type: string + OrderStatus: + type: string + PaymentMethod: + type: string + x-nullable: true + AmountpaID: + type: number + x-nullable: true + Createdat: + type: string + x-nullable: true + UpDatedat: + type: string + x-nullable: true + OrderRequest: + type: object + description: An array of Order objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Order" + OrderResponse: + type: object + description: An array of Order objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Order" + PaymentMethod: + type: object + properties: + ID: + type: string + CardHolderName: + type: string + CardNumber: + type: string + CardType: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + ExpirationMonth: + type: integer + ExpirationYear: + type: integer + Isdefault: + type: integer + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + UserID: + type: string + PaymentMethodRequest: + type: object + description: An array of PaymentMethod objects + properties: + Data: + type: array + items: + $ref: "#/definitions/PaymentMethod" + PaymentMethodResponse: + type: object + description: An array of PaymentMethod objects + properties: + Data: + type: array + items: + $ref: "#/definitions/PaymentMethod" + ResearchProject: + type: object + properties: + ID: + type: string + AccountID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Description: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Name: + type: string + TenantID: + type: string + UserID: + type: string + ResearchProjectRequest: + type: object + description: An array of ResearchProject objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProject" + ResearchProjectResponse: + type: object + description: An array of ResearchProject objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProject" + ResearchProjectCompany: + type: object + properties: + ID: + type: string + AccountID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + ResearchProjectID: + type: string + TenantID: + type: string + ResearchProjectCompanyRequest: + type: object + description: An array of ResearchProjectCompany objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectCompany" + ResearchProjectCompanyResponse: + type: object + description: An array of ResearchProjectCompany objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectCompany" + ResearchProjectTopic: + type: object + properties: + ID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + ResearchProjectID: + type: string + TenantID: + type: string + TopicID: + type: string + ResearchProjectTopicRequest: + type: object + description: An array of ResearchProjectTopic objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectTopic" + ResearchProjectTopicResponse: + type: object + description: An array of ResearchProjectTopic objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectTopic" + Ticket: + type: object + properties: + ID: + type: string + CreatedDate: + type: string + x-nullable: true + EventID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Price: + type: number + x-nullable: true + Quantity: + type: integer + Tickettype: + type: string + TicketRequest: + type: object + description: An array of Ticket objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Ticket" + TicketResponse: + type: object + description: An array of Ticket objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Ticket" + Transaction: + type: object + properties: + ID: + type: string + Amount: + type: number + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Currency: + type: string + EnrollmentID: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + PaymentMethodID: + type: string + Status: + type: string + x-nullable: true + TransactionDate: + type: string + UserID: + type: string + TransactionRequest: + type: object + description: An array of Transaction objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Transaction" + TransactionResponse: + type: object + description: An array of Transaction objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Transaction" diff --git a/swagger/external/research-vernonkeenan.yaml b/swagger/external/research-vernonkeenan.yaml index 95a0a62..06964f9 100644 --- a/swagger/external/research-vernonkeenan.yaml +++ b/swagger/external/research-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "research" description: "Customer Information Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -23,7 +23,7 @@ produces: - "application/json" parameters: accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false @@ -35,31 +35,31 @@ parameters: required: false type: boolean companyProductIdQuery: - description: Taxnexus CompanyProduct record ID + description: CompanyProduct record ID in: query name: companyProductId required: false type: string industryIdQuery: - description: Taxnexus Industry record ID + description: Industry record ID in: query name: industryId required: false type: string topicIdQuery: - description: Taxnexus Topic record ID + description: Topic record ID in: query name: topicId required: false type: string leadIdQuery: - description: Taxnexus Lead record ID + description: Lead record ID in: query name: leadId required: false type: string contactIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contactId required: false @@ -124,7 +124,7 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Topic objects + description: Response with Topic objects schema: $ref: "#/definitions/TopicResponse" IndustryResponse: @@ -133,11 +133,11 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Industry objects + description: Response with Industry objects schema: $ref: "#/definitions/IndustryResponse" TopicObservableResponse: - description: Taxnexus Response with an array of Topic objects + description: Response with an array of Topic objects headers: Access-Control-Allow-Origin: type: string @@ -148,7 +148,7 @@ responses: $ref: "#/definitions/Topic" type: array IndustryObservableResponse: - description: Taxnexus Response with an array of Industry objects + description: Response with an array of Industry objects headers: Access-Control-Allow-Origin: type: string @@ -166,7 +166,7 @@ responses: schema: $ref: "#/definitions/Error" DeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -401,7 +401,6 @@ paths: - cors definitions: Address: - type: object properties: City: description: City @@ -424,206 +423,15 @@ definitions: Street: description: Street number and name type: string - Factor: - description: A Factor of analysis within a research topic - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Factor Name - type: string - Description: - description: Topic Description - type: string - SiteURL: - description: The URL of the corresponding page on the CMS - type: string - TopicID: - description: The ID of the Topic that owns this Factor - type: string - Observations: - description: The list of Observations used to analyze this industry - type: array - items: - $ref: "#/definitions/Observation" - Observation: - description: A data point collected while analyzing a Factor - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - FactorID: - description: The ID of the Factor that owns this Observation - type: string - SubjectType: - description: Is the subject a Company or a Product? - AccountID: - description: The ID of the Company being analyzed - type: string - companyProductID: - description: The ID of the Product being analyzed - type: string - Description: - description: Notes concerning data collection - type: string - Value: - description: The data point collected - type: string - Topic: - description: A research topic that collects data - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Topic Name - type: string - Description: - description: Topic Description - type: string - SiteURL: - description: The URL of the corresponding page on the CMS - type: string - ParentTopicID: - description: The ID of the Parent Topic - type: string - Factors: - description: The list of Factors used to analyze this industry - type: array - items: - $ref: "#/definitions/Factor" - Industry: - description: An industry that is being researched - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Industry Name - type: string - Description: - description: Industry Description - type: string - ParentIndustryID: - description: The ID of the Parent Industry - type: string - Level: - description: The hierarchical level of this Industry - type: string - Path: - description: The full path of this industry, including Parent - type: string - Slug: - description: The CMS Slug for this Industry - type: string - SiteURL: - description: The URL of the corresponding page on the CMS - type: string - Companies: - description: The AccountIDs of the Companies in this Industry - type: array - items: - type: string - CompanyProducts: - description: The list of Products in this industry - type: array - items: - $ref: "#/definitions/CompanyProduct" - IndustryRequest: - description: An array of Industry objects submitted for processing - properties: - Data: - items: - $ref: "#/definitions/Industry" - type: array - type: object - IndustryResponse: - description: An array of Industry objects produced in response to a request - properties: - Data: - items: - $ref: "#/definitions/Industry" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - TopicRequest: - description: An array of Topic objects submitted for processing - properties: - Data: - items: - $ref: "#/definitions/Topic" - type: array - type: object - TopicResponse: - description: An array of Topic objects produced in response to a request - properties: - Data: - items: - $ref: "#/definitions/Topic" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" type: object CompanyProduct: description: A software product or service vended by a Company - type: object properties: ID: - description: Taxnexus Record Id + description: Record Id + type: string + AccountID: + description: ID of the Company that owns this Product type: string CreatedByID: description: Created By User ID @@ -631,27 +439,46 @@ definitions: CreatedDate: description: Created Date type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - AccountID: - description: Taxnexus ID of the Company that owns this Product - type: string Description: description: Description of product type: string + FullDescription: + description: Full Description of product + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Logo: + description: Logo + type: string Name: description: Product Name type: string + Published: + description: Published + type: boolean + SalesforceSpecific: + description: Salesforce Specific + type: boolean + SiteURL: + description: Site URL + type: string TagLine: description: TagLine type: string URL: description: Website type: string + type: object DeleteResponse: properties: Data: @@ -671,6 +498,150 @@ definitions: Message: type: string type: object + Factor: + description: A Factor of analysis within a research topic + properties: + ID: + description: Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Topic Description + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Factor Name + type: string + Observations: + description: The list of Observations used to analyze this industry + items: + $ref: "#/definitions/Observation" + type: array + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Slug: + description: The slug of the corresponding page on the CMS + type: string + TopicID: + description: The ID of the Topic that owns this Factor + type: string + type: object + IndustryProduct: + description: Junction object between Industry and CompanyProduct + type: object + properties: + ID: + description: Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + IndustryID: + type: string + HTML: + type: string + CompanyProductID: + type: string + Industry: + description: An industry that is being researched + properties: + ID: + description: Record Id + type: string + Companies: + description: The AccountIDs of the Companies in this Industry + items: + type: string + type: array + CompanyProducts: + description: The list of Products in this industry + items: + $ref: "#/definitions/CompanyProduct" + type: array + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Industry Description + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Level: + description: The hierarchical level of this Industry + type: string + Logo: + description: Logo + type: string + Name: + description: Industry Name + type: string + ParentIndustryID: + description: The ID of the Parent Industry + type: string + Path: + description: The full path of this industry, including Parent + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Slug: + description: The CMS Slug for this Industry + type: string + TagLine: + description: TagLine + type: string + type: object + IndustryRequest: + description: An array of Industry objects submitted for processing + properties: + Data: + items: + $ref: "#/definitions/Industry" + type: array + type: object + IndustryResponse: + description: An array of Industry objects produced in response to a request + properties: + Data: + items: + $ref: "#/definitions/Industry" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object InvalidError: allOf: - $ref: "#/definitions/Error" @@ -690,6 +661,42 @@ definitions: format: int64 type: number type: object + Observation: + description: A data point collected while analyzing a Factor + properties: + ID: + description: Record Id + type: string + AccountID: + description: The ID of the Company being analyzed + type: string + CompanyProductID: + description: The ID of the Product being analyzed + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Notes concerning data collection + type: string + FactorID: + description: The ID of the Factor that owns this Observation + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + SubjectType: + description: Is the subject a Company or a Product? + Value: + description: The data point collected + type: string + type: object Pagination: properties: limit: @@ -708,7 +715,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -748,6 +755,63 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object + Topic: + description: A research topic that collects data + properties: + ID: + description: Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Topic Description + type: string + Factors: + description: The list of Factors used to analyze this industry + items: + $ref: "#/definitions/Factor" + type: array + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Topic Name + type: string + ParentTopicID: + description: The ID of the Parent Topic + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Slug: + description: The CMS Slug for this Topic + type: string + type: object + TopicRequest: + description: An array of Topic objects submitted for processing + properties: + Data: + items: + $ref: "#/definitions/Topic" + type: array + type: object + TopicResponse: + description: An array of Topic objects produced in response to a request + properties: + Data: + items: + $ref: "#/definitions/Topic" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object diff --git a/swagger/external/sf-gate-vernonkeenan.yaml b/swagger/external/sf-gate-vernonkeenan.yaml index fe281a9..2ca099f 100644 --- a/swagger/external/sf-gate-vernonkeenan.yaml +++ b/swagger/external/sf-gate-vernonkeenan.yaml @@ -23,7 +23,7 @@ produces: - "application/json" parameters: accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false @@ -42,13 +42,13 @@ parameters: required: false type: boolean apiKeyQuery: - description: Taxnexus Id of the User to be retrieved + description: Id of the User to be retrieved in: query name: apikey required: false type: string assetIdQuery: - description: Taxnexus Record Id of an Asset + description: Record Id of an Asset in: query name: assetId required: false @@ -61,7 +61,7 @@ parameters: schema: $ref: "#/definitions/AssetRequest" clusterIdQuery: - description: Taxnexus Record Id of a Cluster + description: Record Id of a Cluster in: query name: clusterId required: false @@ -74,13 +74,13 @@ parameters: schema: $ref: "#/definitions/ClusterRequest" companyProductIdQuery: - description: Taxnexus CompanyProduct record ID + description: CompanyProduct record ID in: query name: companyProductId required: false type: string contactIdQuery: - description: Taxnexus Record Id of a Contact + description: Record Id of a Contact in: query name: contactId required: false @@ -100,7 +100,7 @@ parameters: schema: $ref: "#/definitions/CompanyProductRequest" contractIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contractId required: false @@ -119,8 +119,15 @@ parameters: required: true schema: $ref: "#/definitions/DatabaseRequest" + newUserRequest: + description: A single new user record + in: body + name: UserRequest + required: true + schema: + $ref: "#/definitions/UserRequest" databaseIdQuery: - description: Taxnexus Record Id of a Database + description: Record Id of a Database in: query name: databaseId required: false @@ -132,13 +139,13 @@ parameters: required: false type: string industryIdQuery: - description: Taxnexus Industry record ID + description: Industry record ID in: query name: industryId required: false type: string industryProductIdQuery: - description: Taxnexus IndustryProduct record ID + description: IndustryProduct record ID in: query name: industryProductId required: false @@ -178,19 +185,19 @@ parameters: required: false type: integer roleIdQuery: - description: Taxnexus Id of the Role to be retrieved + description: Id of the Role to be retrieved in: query name: roleId required: false type: string templateIdQuery: - description: Taxnexus Record Id of a Template + description: Record Id of a Template in: query name: templateId required: false type: string tenantIdQuery: - description: Taxnexus Record Id of a Tenant + description: Record Id of a Tenant in: query name: tenantId required: false @@ -203,12 +210,16 @@ parameters: schema: $ref: "#/definitions/TenantRequest" userIdQuery: - description: Taxnexus Id of the User to be retrieved + description: Id of the User to be retrieved in: query name: userId required: false type: string responses: + SalesforcePostResponse: + description: Response from Salesforce + schema: + $ref: "#/definitions/SalesforcePostResponse" AccessForbidden: description: "Access forbidden, account lacks access" headers: @@ -217,7 +228,7 @@ responses: schema: $ref: "#/definitions/Error" AccountResponse: - description: Taxnexus Response with Account objects with Contacts + description: Response with Account objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -226,7 +237,7 @@ responses: schema: $ref: "#/definitions/AccountResponse" AssetResponse: - description: Taxnexus Response with Asset objects with Contacts + description: Response with Asset objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -235,11 +246,11 @@ responses: schema: $ref: "#/definitions/AssetResponse" ClusterResponse: - description: Taxnexus Response with Cluster objects + description: Response with Cluster objects schema: $ref: "#/definitions/ClusterResponse" ContactResponse: - description: Taxnexus Response with Contact objects + description: Response with Contact objects schema: $ref: "#/definitions/ContactResponse" IndustryResponse: @@ -248,7 +259,7 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Industry objects + description: Response with Industry objects schema: $ref: "#/definitions/IndustryResponse" IndustryProductResponse: @@ -257,11 +268,11 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Industry objects + description: Response with Industry objects schema: $ref: "#/definitions/IndustryProductResponse" ContractResponse: - description: Taxnexus Response with an array of Contract objects + description: Response with an array of Contract objects headers: Access-Control-Allow-Origin: type: string @@ -270,7 +281,7 @@ responses: schema: $ref: "#/definitions/ContractResponse" CompanyProductResponse: - description: Taxnexus Response with an array of CompanyProduct objects + description: Response with an array of CompanyProduct objects headers: Access-Control-Allow-Origin: type: string @@ -279,11 +290,11 @@ responses: schema: $ref: "#/definitions/CompanyProductResponse" DatabaseResponse: - description: Taxnexus Response with Database objects + description: Response with Database objects schema: $ref: "#/definitions/DatabaseResponse" DeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -304,7 +315,7 @@ responses: schema: $ref: "#/definitions/Error" RoleResponse: - description: Taxnexus Response with Role objects + description: Response with Role objects schema: $ref: "#/definitions/RoleResponse" ServerError: @@ -315,11 +326,11 @@ responses: schema: $ref: "#/definitions/Error" TemplateResponse: - description: Taxnexus Response with Template objects + description: Response with Template objects schema: $ref: "#/definitions/TemplateResponse" TenantResponse: - description: Taxnexus Response with Tenant objects + description: Response with Tenant objects schema: $ref: "#/definitions/TenantResponse" Unauthorized: @@ -337,13 +348,13 @@ responses: schema: $ref: "#/definitions/Error" UserResponse: - description: Taxnexus Response with User objects + description: Response with User objects schema: $ref: "#/definitions/UserResponse" paths: /accounts: delete: - description: Delete Taxnexus Account record + description: Delete Account record operationId: deleteAccount parameters: - $ref: "#/parameters/accountIdQuery" @@ -399,8 +410,8 @@ paths: parameters: - $ref: "#/parameters/accountRequest" responses: - "200": - $ref: "#/responses/AccountResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -417,8 +428,8 @@ paths: tags: - Accounts put: - description: Update a single account specified by accountId - operationId: putAccount + description: Update one or more accounts specified by accountId + operationId: putAccounts parameters: - $ref: "#/parameters/accountRequest" responses: @@ -472,8 +483,8 @@ paths: parameters: - $ref: "#/parameters/assetRequest" responses: - "200": - $ref: "#/responses/AssetResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -516,13 +527,13 @@ paths: tags: - Clusters post: - description: Create Clusters in Taxnexus + description: Create Clusters in Salesforce operationId: postClusters parameters: - $ref: "#/parameters/clusterRequest" responses: - "200": - $ref: "#/responses/ClusterResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -539,7 +550,7 @@ paths: tags: - Clusters put: - description: Update Cluster in Taxnexus + description: Update Cluster in Salesforce operationId: putClusters parameters: - $ref: "#/parameters/clusterRequest" @@ -594,8 +605,8 @@ paths: parameters: - $ref: "#/parameters/companyProductRequest" responses: - "200": - $ref: "#/responses/CompanyProductResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -613,7 +624,7 @@ paths: - CompanyProducts /contacts: get: - description: Retrieve Contact records from the datastore + description: Retrieve Contact records from Salesforce operationId: getContacts parameters: - $ref: "#/parameters/contactIdQuery" @@ -641,9 +652,9 @@ paths: summary: Get a Contact record tags: - Contacts - post: - description: Contacts record to be added - operationId: postContacts + put: + description: Update Contact records in Salesforce + operationId: putContacts parameters: - $ref: "#/parameters/contactRequest" responses: @@ -655,6 +666,29 @@ paths: $ref: "#/responses/AccessForbidden" "404": $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update a Contact record + tags: + - Contacts + post: + description: Contacts record to be added + operationId: postContacts + parameters: + - $ref: "#/parameters/contactRequest" + responses: + "201": + $ref: "#/responses/SalesforcePostResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" "500": $ref: "#/responses/ServerError" security: @@ -662,6 +696,29 @@ paths: summary: Add a new Contacts to Taxnexus tags: - Contacts + delete: + description: Delete Contact record from Salesforce + operationId: deleteContacts + parameters: + - $ref: "#/parameters/contactIdQuery" + responses: + "200": + $ref: "#/responses/ContactResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Delete a Contact record + tags: + - Contacts /contracts: get: description: Return a list of all available Contracts @@ -689,29 +746,6 @@ paths: summary: Get a list of contracts tags: - Contracts - post: - description: Contract record to be added - operationId: postContracts - parameters: - - $ref: "#/parameters/contractRequest" - responses: - "200": - $ref: "#/responses/ContractResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Add a new contract to Taxnexus - tags: - - Contracts /industryproducts: get: description: Return a list of all available IndustryProducts @@ -722,8 +756,8 @@ paths: - $ref: "#/parameters/activeQuery" - $ref: "#/parameters/industryProductIdQuery" responses: - "200": - $ref: "#/responses/IndustryProductResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -745,8 +779,8 @@ paths: parameters: - $ref: "#/parameters/industryProductRequest" responses: - "200": - $ref: "#/responses/IndustryProductResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -795,8 +829,8 @@ paths: parameters: - $ref: "#/parameters/industryRequest" responses: - "200": - $ref: "#/responses/IndustryResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -893,13 +927,13 @@ paths: tags: - Tenants post: - description: Create Tenants in Taxnexus + description: Create Tenants in Salesforce operationId: Tenants parameters: - $ref: "#/parameters/tenantRequest" responses: - "200": - $ref: "#/responses/TenantResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -914,7 +948,7 @@ paths: tags: - Tenants put: - description: Update Tenant in Taxnexus + description: Update Tenant in Salesforce operationId: putTenants parameters: - $ref: "#/parameters/tenantRequest" @@ -963,13 +997,13 @@ paths: tags: - Databases post: - description: Create Databases in Taxnexus + description: Create Databases in Salesforce operationId: postDatabases parameters: - $ref: "#/parameters/databaseRequest" responses: - "200": - $ref: "#/responses/DatabaseResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -986,7 +1020,7 @@ paths: tags: - Databases put: - description: Update Database in Taxnexus + description: Update Database in Salesforce operationId: putDatabases parameters: - $ref: "#/parameters/databaseRequest" @@ -1009,6 +1043,29 @@ paths: tags: - Databases /users: + post: + description: Create a user record in Salesforce + operationId: postUser + parameters: + - $ref: "#/parameters/newUserRequest" + responses: + "200": + $ref: "#/responses/SalesforcePostResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + summary: Create new Salesforce User + security: + - ApiKeyAuth: [] + tags: + - Users get: description: Return a list of User records from the datastore operationId: getUsers @@ -1037,11 +1094,29 @@ paths: tags: - Users definitions: + UserRequest: + type: object + properties: + APIKey: + type: string + Address: + $ref: "#/definitions/Address" + Email: + type: string + Environment: + type: string + FirstName: + type: string + ID: + type: string + LastName: + type: string + TaxnexusAccount: + type: string + Title: + type: string Account: properties: - TenantID: - description: tenant identifier - type: string ID: description: Taxnexus Account Id type: string @@ -1049,8 +1124,10 @@ definitions: description: Account Number type: string AccountSource: - description: The marketing orgin of this account + description: The marketing origin of this account type: string + Active: + type: boolean AnnualRevenue: description: Annual Revenue Estimate format: double @@ -1060,47 +1137,62 @@ definitions: BillingContactID: description: Contact ID type: string + CloseDate: + description: Close Date + type: string + CloudRevenueTotal: + type: number + CloudType: + description: The type of cloud company + type: string + CloudYear: + description: The year company started cloud revenue + type: string CreatedByID: description: Created By User ID type: string CreatedDate: description: Created Date type: string - CloseDate: - description: Date company closed - type: string - CloudRevenueTotal: - type: number - CloudType: - type: string - CloudYear: - type: string CrunchbaseURL: + description: Crunchbase URL type: string Description: - description: Description + description: Description of the account + type: string + EIN: type: string EarningsCall: + description: Earnings Call Date type: string Email: description: Main Account Email type: string EquityFunding: + description: The amount of equity EquityFunding type: number + Facebook: + description: Company Facebook URL + type: string Fax: - description: Fax + description: Fax number type: string FoundedDate: + description: Date company founded + type: string + IPODate: + description: IPO Date + type: string + ImageAltText: + type: string + ImageURL: + type: string + Industries: + description: Industries type: string Industry: description: Industry type: string - Facebook: - type: string - Industries: - type: string - IPODate: - type: string LastModifiedByID: description: Last Modified By User ID type: string @@ -1108,24 +1200,27 @@ definitions: description: Last Modified Date type: string LinkedIn: + description: Company LinkedIn URL type: string Location: + description: Headquarters Location Description type: string Logo: + description: Company Logo URL type: string MarketCapitalization: + description: Market Capitalization type: number Name: description: Account Name type: string + NumberInvestments: + description: Number of Investments + type: number NumberOfEmployees: description: Employee Count Estimate - type: number format: int64 - NumberInvestments: - description: Number of Locations Estimate type: number - format: int64 OwnerID: description: Account Owner User ID type: string @@ -1139,31 +1234,43 @@ definitions: description: Phone type: string Publish: + description: Publish this record? type: boolean - SalesforceFirst: - type: boolean - ShippingAddress: - $ref: "#/definitions/Address" - ShippingContactID: - type: string SIC: description: SIC Code type: string SICDesc: description: SIC Description type: string + SalesforceFirst: + description: A Salesforce-First company? + type: boolean + ShippingAddress: + $ref: "#/definitions/Address" + ShippingContactID: + description: Shipping Contact ID + type: string Site: description: Account Site type: string + Slug: + description: Slug + type: string TagLine: + description: Company tagline + type: string + TenantID: + description: Tenant Identifier type: string TickerSymbol: + description: Ticker Symbol + type: string + Twitter: + description: Twitter URL type: string Type: description: Type type: string - Twitter: - type: string Website: description: Website type: string @@ -1192,37 +1299,36 @@ definitions: type: object Address: properties: - city: + City: description: City type: string - country: + Country: description: Country full name type: string - countrycode: + CountryCode: description: Country Code type: string - postalcode: + PostalCode: description: Postal Code type: string - state: + State: description: State full name type: string - statecode: + StateCode: description: State Code type: string - street: + Street: description: Street number and name type: string - required: - - city - - statecode type: object CompanyProduct: description: A software product or service vended by a Company - type: object properties: ID: - description: Taxnexus Record Id + description: Record Id + type: string + AccountID: + description: Taxnexus ID of the Company that owns this Product type: string CreatedByID: description: Created By User ID @@ -1230,169 +1336,185 @@ definitions: CreatedDate: description: Created Date type: string + Description: + description: Description of product + type: string + FullDescription: + description: Full Description of product + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string LastModifiedByID: description: Last Modified By User ID type: string LastModifiedDate: description: Last Modified Date type: string - AccountID: - description: Taxnexus ID of the Company that owns this Product - type: string - Description: - description: Description of product + Logo: + description: Logo type: string Name: description: Product Name type: string + Published: + description: Published + type: boolean + SalesforceSpecific: + description: Salesforce Specific + type: boolean + SiteURL: + description: Site URL + type: string TagLine: description: TagLine type: string URL: description: Website type: string + type: object Asset: properties: ID: + description: Record Id type: string - description: Taxnexus Record Id AccountID: - type: string description: Account + type: string Address: $ref: "#/definitions/Address" AssetLevel: - type: number description: Asset Level - Name: - type: string - description: Asset Name + type: number AssetProvidedByID: - type: string description: Asset Provided By + type: string AssetServicedByID: - type: string description: Asset Serviced By + type: string CompanyProductID: - type: string description: Company Product - IsCompetitorProduct: - type: boolean - description: Competitor Asset + type: string ConsequenceOfFailure: - type: string description: Consequence Of Failure + type: string ContactID: - type: string description: Contact + type: string CreatedByID: - type: string description: Created By + type: string CreatedDate: - type: string description: Created Date + type: string CurrentAmount: - type: number description: Current Amount + type: number CurrentLifecycleEndDate: - type: string description: Current Lifecycle End Date + type: string CurrentMrr: - type: number description: Current Monthly Recurring Revenue + type: number CurrentQuantity: - type: number description: Current Quantity + type: number Description: - type: string description: Description + type: string DigitalAssetStatus: - type: string description: Digital Asset Status + type: string ExternalIdentifier: - type: string description: External Id + type: string HasLifecycleManagement: - type: boolean description: Has Lifecycle Management - InstallDate: - type: string - description: Install Date - IsInternal: type: boolean + InstallDate: + description: Install Date + type: string + IsCompetitorProduct: + description: Competitor Asset + type: boolean + IsInternal: description: Internal Asset + type: boolean LastModifiedByID: - type: string description: Last Modified By + type: string LastModifiedDate: - type: string description: Last Modified Date + type: string LocationID: - type: string description: Location - ManufactureDate: type: string - description: Manufacture Date MIMEType: - type: string description: MIME Type + type: string + ManufactureDate: + description: Manufacture Date + type: string + Name: + description: Asset Name + type: string ParentID: - type: string description: Parent Asset + type: string Price: - type: number description: Price + type: number Product2ID: - type: string description: Product + type: string ProductCode: - type: string description: Product Code + type: string ProductDescription: - type: string description: Product Description + type: string ProductFamily: - type: string description: Product Family - StockKeepingUnit: type: string - description: Product SKU PurchaseDate: - type: string description: Purchase Date + type: string Quantity: - type: number description: Quantity - RootAssetID: - type: string - description: Root Asset - SerialNumber: - type: string - description: Serial Number - Status: - type: string - description: Status - StatusReason: - type: string - description: Status Reason - TenantID: - type: string - description: Tenant ID - TotalLifecycleAmount: type: number + RootAssetID: + description: Root Asset + type: string + SerialNumber: + description: Serial Number + type: string + Status: + description: Status + type: string + StatusReason: + description: Status Reason + type: string + StockKeepingUnit: + description: Product SKU + type: string + TenantID: + description: Tenant ID + type: string + TotalLifecycleAmount: description: Total Lifecycle Amount + type: number Type: - type: string description: Type - UUID: type: string - description: Unique Identifier URL: - type: string description: URL - UsageEndDate: type: string + UsageEndDate: description: Usage End Date + type: string type: object AssetRequest: description: An array of Asset objects with Contacts @@ -1415,55 +1537,55 @@ definitions: Cluster: type: object properties: - id: + ID: type: string - description: Taxnexus Record Id - name: + description: Record Id + Name: type: string description: Cluster Name - createdbyid: + CreatedByID: type: string description: Created By - createddate: + CreatedDate: type: string description: Created Date - description: + Description: type: string description: Description - environment: + Environment: type: string description: Environment - ref: + Ref: type: string description: External Reference - gateway: + Gateway: type: string description: Gateway - ip_address: + IpAddress: type: string description: IP Address - lastmodifiedbyid: + LastModifiedByID: type: string description: Last Modified By - lastmodifieddate: + LastModifiedDate: type: string description: Last Modified Date - ownerid: + OwnerID: type: string description: Owner - status: + Status: type: string description: Status - subnet: + Subnet: type: string description: Subnet - tenantid: + TenantID: type: string description: tenantid - type: + Type: type: string description: Type - zone: + Zone: type: string description: Zone ClusterRequest: @@ -1475,7 +1597,6 @@ definitions: meta: $ref: "#/definitions/RequestMeta" required: - - meta - data type: object ClusterResponse: @@ -1490,11 +1611,8 @@ definitions: type: object Contact: properties: - TenantID: - description: tenant identifier - type: string ID: - description: Taxnexus Record Id + description: Record Id type: string AccountID: description: The primary account ID of this contact @@ -1514,6 +1632,9 @@ definitions: CreatedDate: description: Created Date type: string + CrunchbaseURL: + description: Crunchbase URL + type: string Department: description: Department type: string @@ -1532,11 +1653,11 @@ definitions: EmailBounceReason: description: Email Bounce Reason type: string - Fax: - type: string Facebook: description: Fax Number type: string + Fax: + type: string FirstName: description: First Name type: string @@ -1592,6 +1713,18 @@ definitions: PhotoURL: description: URL of a photograph of this User type: string + ReportsToID: + description: Reports To User ID + type: string + Salutation: + description: Salutation + type: string + Slug: + description: Slug + type: string + TenantID: + description: tenant identifier + type: string Title: description: Contact Title type: string @@ -1607,7 +1740,6 @@ definitions: meta: $ref: "#/definitions/RequestMeta" required: - - meta - data type: object CompanyProductResponse: @@ -1628,7 +1760,6 @@ definitions: meta: $ref: "#/definitions/RequestMeta" required: - - meta - data type: object ContactResponse: @@ -1694,6 +1825,9 @@ definitions: EndDate: description: Contract End Date type: string + EndUserID: + description: End User + type: string HourlyRate: description: Hourly Rate type: number @@ -1753,43 +1887,43 @@ definitions: type: object description: A Database provisioned and owned by a Tenant properties: - active: - description: Is this database active? - type: boolean - clusterid: - description: The ID of the Cluster in which this database is deployed - type: string - createdbyid: - description: Created By - type: string - createddate: - description: Created Date - type: string - databasename: - description: The name of the physical database in the cluster - type: string - dsn: - description: Database connection string - type: string - id: + ID: description: Record Id type: string - lastmodifiedbyid: + Active: + description: Is this database active? + type: boolean + ClusterID: + description: The ID of the Cluster in which this database is deployed + type: string + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + DatabaseName: + description: The name of the physical database in the cluster + type: string + DSN: + description: Database connection string + type: string + LastModifiedByID: description: Last Modified By type: string - lastmodifieddate: + LastModifiedDate: description: Last Modifed Date type: string - microservices: - description: List of Taxnexus microservices implemented by this Database + Microservices: + description: List of microservices implemented by this Database type: string - status: + Status: description: The current status of this Tenant type: string - tenantid: + TenantID: description: The ID of the tenant who owns this Database type: string - type: + Type: description: "The type of Database (mysql, etc)" type: string DatabaseRequest: @@ -1836,7 +1970,7 @@ definitions: type: object properties: ID: - description: Taxnexus Record Id + description: Record Id type: string CreatedByID: description: Created By User ID @@ -1861,40 +1995,62 @@ definitions: type: object properties: ID: - description: Taxnexus Record Id + description: Record Id type: string + Companies: + description: The AccountIDs of the Companies in this Industry + items: + type: string + type: array + CompanyProducts: + description: The list of Products in this industry + items: + $ref: "#/definitions/CompanyProduct" + type: array CreatedByID: description: Created By User ID type: string CreatedDate: description: Created Date type: string + Description: + description: Industry Description + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string LastModifiedByID: description: Last Modified By User ID type: string LastModifiedDate: description: Last Modified Date type: string + Level: + description: The hierarchical level of this Industry + type: string + Logo: + description: Logo + type: string Name: description: Industry Name type: string - Description: - description: Industry Description - type: string ParentIndustryID: description: The ID of the Parent Industry type: string - Level: - description: The hierarchical level of this Industry - type: string Path: description: The full path of this industry, including Parent type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string Slug: description: The CMS Slug for this Industry type: string - SiteURL: - description: The URL of the corresponding page on the CMS + TagLine: + description: TagLine type: string IndustryRequest: description: An array of Industry objects submitted for processing @@ -1969,7 +2125,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -2009,7 +2165,7 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object TenantRequest: @@ -2049,31 +2205,31 @@ definitions: type: object description: A functional role within a Tenant properties: - id: + ID: type: string description: record id - auth0roleid: + Auth0RoleID: description: the corresponding auth0 role type: string - createdbyid: + CreatedByID:: type: string description: created by - createddate: + CreatedDate: type: string description: created date - description: + Description: type: string description: role description - lastmodifiedbyid: + LastModifiedByID: type: string description: last modified by - lastmodifieddate: + LastModifiedDate: type: string description: last modifed date - rolename: + RoleName: type: string description: the name of this role - tenantid: + TenantID: type: string description: the id of the tenant that owns this role RoleRequest: @@ -2098,12 +2254,9 @@ definitions: type: object Template: properties: - tenantid: + TenantID: description: tenant identifier type: string - CompanyID: - description: Company - type: string CreatedByID: type: string CreatedDate: @@ -2116,7 +2269,7 @@ definitions: type: string format: byte ID: - description: Taxnexus Record Id + description: Record Id type: string IsActive: description: Active? @@ -2155,230 +2308,231 @@ definitions: type: object Tenant: type: object - description: Taxnexus Account Tenant + description: Account Tenant properties: - id: + ID: type: string description: Record Id - accountid: + AccountID: type: string description: The Account that owns this Tenant - active: + Active: type: boolean description: Is this Tenant currently active? - createdbyid: + CreatedByID: type: string description: Created By - createddate: + CreatedDate: type: string description: Created Date - lastmodifiedbyid: + LastModifiedByID: type: string description: Last Modified By - lastmodifieddate: + LastModifiedDate: type: string description: Last Modifed Date - status: + Status: type: string description: The current status of this Tenant - tenantname: + TenantName: type: string description: Name of the Tenant Resource - type: + Type: type: string description: Type of tenant - version: + Version: type: string description: The version number of the Tenant Onboarding system used to create this tenant - databases: + Databases: items: $ref: "#/definitions/Database" type: array - roles: + Roles: items: $ref: "#/definitions/Role" type: array - tenantusers: + TenantUsers: items: $ref: "#/definitions/TenantUser" type: array User: properties: - tenantid: - type: string - aboutme: - description: About Me - type: string - accountid: - description: Account ID - type: string - address: - $ref: "#/definitions/Address" - alias: - description: Alias - type: string - apikey: + APIKey: description: API Key type: string - auth0userid: - description: Auth0 User ID + AboutMe: + description: About Me type: string - communitynickname: + AccountID: + description: Account ID + type: string + Address: + $ref: "#/definitions/Address" + Alias: + description: Alias + type: string + Auth0UserID: + description: Auth0 User Id + type: string + CommunityNickname: description: Nickname type: string - companyname: + CompanyName: description: Company Name type: string - contactid: + ContactID: description: Contact type: string - createdbyid: + CreatedByID: description: Created User ID type: string - createddate: + CreatedDate: description: Date Created type: string - delegatedapproverid: + DelegatedApproverID: description: Delegated Approver type: string - department: + Department: description: Department type: string - division: + Division: description: Division type: string - email: + Email: description: Email address type: string - employeenumber: + EmployeeNumber: description: Employee Number type: string - endday: + EndOfDay: description: Time day ends type: string - environment: + Environment: description: Environment type: string - extension: + Extension: description: Extension type: string - fabricapikey: + FabricAPIKey: description: Fabric API Key type: string - fax: + Fax: description: Fax type: string - firstname: + FirstName: description: The first name type: string - forecastenabled: + ForecastEnabled: description: Allow Forecasting type: boolean - fullphotourl: + FullPhotoURL: description: Full Photo URL type: string - id: - description: Taxnexus ID + ID: + description: Record ID type: string - isactive: + IsActive: description: Active type: boolean - isportalenabled: + IsPortalEnabled: description: Is the user enabled for Communities? type: boolean - isprofilephotoactive: + IsProphilePhotoActive: description: Has Profile Photo type: boolean - issystemcontrolled: + IsSystemControlled: type: boolean - lastip: - description: ip address of last login + LastIP: + description: IP address of last login type: string - lastlogin: - description: last login time + LastLogin: + description: Last login time type: string - lastmodifiedbyid: + LastModifiedByID: description: Last Modified User ID type: string - lastmodifieddate: + LastModifiedDate: description: Last Modified Date type: string - lastname: + LastName: description: The Last Name type: string - logincount: - description: number of times user has logged in + LoginCount: + description: Number of times user has logged in format: int64 type: number - managerid: + ManagerID: description: Manager type: string - mobilephone: + MobilePhone: description: Mobile type: string - name: + Name: description: Name type: string - outofofficemessage: + OutOfOfficeMessage: description: Out of office message type: string - phone: + Phone: description: Phone type: string - portalrole: + PortalRole: description: Portal Role Level type: string - profileid: + ProfileID: description: Profile type: string - receivesadmininfoemails: - description: Admin Info Emails - type: boolean - receivesinfoemails: + ReceivesAdminEmails: description: Info Emails type: boolean - senderemail: + ReceivesAdminInfoEmails: + description: Admin Info Emails + type: boolean + SenderEmail: description: Email Sender Address type: string - sendername: + SenderName: description: Email Sender Name type: string - signature: + Signature: description: Email Signature type: string - smallphotourl: + SmallPhotoURL: description: Small Photo URL type: string - startday: + StartOfDay: description: The time day starts type: string - taxnexusaccount: + TaxnexusAccount: description: Taxnexus Account type: string - timezonesidkey: - description: Time Zone + TenantID: + description: Tenant ID associated with this user type: string - title: - description: Title - type: string - username: - description: Username - type: string - userroleid: - description: Role - type: string - usertype: - description: User Type - type: string - userroles: - items: - $ref: "#/definitions/UserRole" - type: array - tenantusers: + TenantUsers: items: $ref: "#/definitions/TenantUser" type: array + TimeZone: + description: Time Zone + type: string + Title: + description: Title + type: string + UserRoleID: + description: Role + type: string + UserRoles: + items: + $ref: "#/definitions/UserRole" + type: array + UserType: + description: User Type + type: string + Username: + description: Username + type: string type: object UserResponse: description: An array of Print-Ready ingest Objects @@ -2394,18 +2548,41 @@ definitions: description: Relationship object that connects user to a role type: object properties: - description: + ID: type: string - description: Role description - roleid: + Auth0roleID: type: string - description: The Role ID - userid: + CreatedByID: type: string - description: The User ID - name: + CreatedDate: type: string - description: Role Name - auth0roleid: + x-nullable: true + Description: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Name: + type: string + RoleID: + type: string + UserID: + type: string + SalesforcePostResponse: + description: An array of Print-Ready ingest Objects + properties: + data: + items: + $ref: "#/definitions/SalesforcePost" + type: array + meta: + $ref: "#/definitions/ResponseMeta" + type: object + SalesforcePost: + description: Relationship object that connects user to a role + type: object + properties: + ID: type: string - description: Linked role ID diff --git a/swagger/external/stash-vernonkeenan.yaml b/swagger/external/stash-vernonkeenan.yaml index 0fa4f05..4a6b0b3 100644 --- a/swagger/external/stash-vernonkeenan.yaml +++ b/swagger/external/stash-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "stash" description: "PDF Storage Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -52,7 +52,7 @@ responses: schema: $ref: "#/definitions/Error" PdfResponse: - description: Taxnexus Response with an array of pdfs + description: Response with an array of pdfs schema: $ref: "#/definitions/DocumentResponse" ServerError: @@ -172,7 +172,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -210,6 +210,6 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object diff --git a/swagger/members-vernonkeenan.yaml b/swagger/members-vernonkeenan.yaml new file mode 100644 index 0000000..8bae8a6 --- /dev/null +++ b/swagger/members-vernonkeenan.yaml @@ -0,0 +1,1869 @@ +swagger: "2.0" +info: + version: 0.3.0 + title: "members" + description: "Membership Microservice" + termsOfService: "https://salesforcedevops.net/terms/" + contact: + email: "vern@vernonkeenan.com" + license: + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" +securityDefinitions: + ApiKeyAuth: + type: "apiKey" + in: "header" + name: "X-API-Key" +schemes: + - "http" +basePath: "/v1" +host: "members.vernonkeenan.com:8080" +consumes: + - "application/json" +produces: + - "application/json" +parameters: + limitQuery: + description: "How many objects to return at one time" + format: int64 + in: query + name: limit + required: false + type: integer + offsetQuery: + description: How many objects to skip? + format: int64 + in: query + name: offset + required: false + type: integer + idQuery: + description: Unique Record ID + in: query + name: id + required: false + type: string + AttendeeRequest: + description: An array of new Attendee records + in: body + name: attendeeRequest + required: true + schema: + $ref: "#/definitions/AttendeeRequest" + CertificateRequest: + description: An array of new Certificate records + in: body + name: certificateRequest + required: true + schema: + $ref: "#/definitions/CertificateRequest" + CourseRequest: + description: An array of new Course records + in: body + name: courseRequest + required: true + schema: + $ref: "#/definitions/CourseRequest" + CourseLessonRequest: + description: An array of new CourseLesson records + in: body + name: courselessonRequest + required: true + schema: + $ref: "#/definitions/CourseLessonRequest" + CourseSectionRequest: + description: An array of new CourseSection records + in: body + name: coursesectionRequest + required: true + schema: + $ref: "#/definitions/CourseSectionRequest" + EnrollmentRequest: + description: An array of new Enrollment records + in: body + name: enrollmentRequest + required: true + schema: + $ref: "#/definitions/EnrollmentRequest" + EventRequest: + description: An array of new Event records + in: body + name: eventRequest + required: true + schema: + $ref: "#/definitions/EventRequest" + EventCategoryRequest: + description: An array of new EventCategory records + in: body + name: eventcategoryRequest + required: true + schema: + $ref: "#/definitions/EventCategoryRequest" + EventCategoryAssignmentRequest: + description: An array of new EventCategoryAssignment records + in: body + name: eventcategoryassignmentRequest + required: true + schema: + $ref: "#/definitions/EventCategoryAssignmentRequest" + FavoriteRequest: + description: An array of new Favorite records + in: body + name: favoriteRequest + required: true + schema: + $ref: "#/definitions/FavoriteRequest" + InvoiceRequest: + description: An array of new Invoice records + in: body + name: invoiceRequest + required: true + schema: + $ref: "#/definitions/InvoiceRequest" + IssuedCertificateRequest: + description: An array of new IssuedCertificate records + in: body + name: issuedcertificateRequest + required: true + schema: + $ref: "#/definitions/IssuedCertificateRequest" + LessonProgressRequest: + description: An array of new LessonProgress records + in: body + name: lessonprogressRequest + required: true + schema: + $ref: "#/definitions/LessonProgressRequest" + OrderRequest: + description: An array of new Order records + in: body + name: orderRequest + required: true + schema: + $ref: "#/definitions/OrderRequest" + PaymentMethodRequest: + description: An array of new PaymentMethod records + in: body + name: paymentmethodRequest + required: true + schema: + $ref: "#/definitions/PaymentMethodRequest" + ResearchProjectRequest: + description: An array of new ResearchProject records + in: body + name: researchprojectRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectRequest" + ResearchProjectCompanyRequest: + description: An array of new ResearchProjectCompany records + in: body + name: researchprojectcompanyRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectCompanyRequest" + ResearchProjectTopicRequest: + description: An array of new ResearchProjectTopic records + in: body + name: researchprojecttopicRequest + required: true + schema: + $ref: "#/definitions/ResearchProjectTopicRequest" + TicketRequest: + description: An array of new Ticket records + in: body + name: ticketRequest + required: true + schema: + $ref: "#/definitions/TicketRequest" + TransactionRequest: + description: An array of new Transaction records + in: body + name: transactionRequest + required: true + schema: + $ref: "#/definitions/TransactionRequest" +responses: + AttendeeResponse: + description: Attendee Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/AttendeeResponse" + CertificateResponse: + description: Certificate Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CertificateResponse" + CourseResponse: + description: Course Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseResponse" + CourseLessonResponse: + description: CourseLesson Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseLessonResponse" + CourseSectionResponse: + description: CourseSection Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/CourseSectionResponse" + EnrollmentResponse: + description: Enrollment Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EnrollmentResponse" + EventResponse: + description: Event Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventResponse" + EventCategoryResponse: + description: EventCategory Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventCategoryResponse" + EventCategoryAssignmentResponse: + description: EventCategoryAssignment Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/EventCategoryAssignmentResponse" + FavoriteResponse: + description: Favorite Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/FavoriteResponse" + InvoiceResponse: + description: Invoice Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/InvoiceResponse" + IssuedCertificateResponse: + description: IssuedCertificate Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/IssuedCertificateResponse" + LessonProgressResponse: + description: LessonProgress Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/LessonProgressResponse" + OrderResponse: + description: Order Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/OrderResponse" + PaymentMethodResponse: + description: PaymentMethod Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/PaymentMethodResponse" + ResearchProjectResponse: + description: ResearchProject Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectResponse" + ResearchProjectCompanyResponse: + description: ResearchProjectCompany Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectCompanyResponse" + ResearchProjectTopicResponse: + description: ResearchProjectTopic Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/ResearchProjectTopicResponse" + TicketResponse: + description: Ticket Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/TicketResponse" + TransactionResponse: + description: Transaction Response Object + headers: + Access-Control-Allow-Origin: + type: string + Cache-Control: + type: string + schema: + $ref: "#/definitions/TransactionResponse" +paths: + /attendees: + get: + summary: Get a list of Attendees + operationId: getAttendees + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + responses: + "200": + description: OK + post: + summary: Create a new Attendee + operationId: createAttendee + parameters: + - $ref: "#/parameters/AttendeeRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Attendee + operationId: updateAttendee + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Attendee + operationId: deleteAttendee + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /certificates: + get: + summary: Get a list of Certificates + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getCertificates + responses: + "200": + description: OK + post: + summary: Create a new Certificate + operationId: createCertificate + parameters: + - $ref: "#/parameters/CertificateRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Certificate + operationId: updateCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Certificate + operationId: deleteCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /courses: + get: + summary: Get a list of Courses + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getCourses + responses: + "200": + description: OK + post: + summary: Create a new Course + operationId: createCourse + parameters: + - $ref: "#/parameters/CourseRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Course + operationId: updateCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Course + operationId: deleteCourse + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /courselessons: + get: + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + summary: Get a list of CourseLessons + operationId: getCourseLessons + responses: + "200": + description: OK + post: + summary: Create a new CourseLesson + operationId: createCourseLesson + parameters: + - $ref: "#/parameters/CourseLessonRequest" + responses: + "201": + description: Created + put: + summary: Update an existing CourseLesson + operationId: updateCourseLesson + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a CourseLesson + operationId: deleteCourseLesson + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /coursesections: + get: + summary: Get a list of CourseSections + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getCourseSections + responses: + "200": + description: OK + post: + summary: Create a new CourseSection + operationId: createCourseSection + parameters: + - $ref: "#/parameters/CourseSectionRequest" + responses: + "201": + description: Created + put: + summary: Update an existing CourseSection + operationId: updateCourseSection + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a CourseSection + operationId: deleteCourseSection + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /enrollments: + get: + summary: Get a list of Enrollments + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getEnrollments + responses: + "200": + description: OK + post: + summary: Create a new Enrollment + operationId: createEnrollment + parameters: + - $ref: "#/parameters/EnrollmentRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Enrollment + operationId: updateEnrollment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Enrollment + operationId: deleteEnrollment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /events: + get: + summary: Get a list of Events + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getEvents + responses: + "200": + description: OK + post: + summary: Create a new Event + operationId: createEvent + parameters: + - $ref: "#/parameters/EventRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Event + operationId: updateEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Event + operationId: deleteEvent + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /eventcategorys: + get: + summary: Get a list of EventCategorys + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getEventCategorys + responses: + "200": + description: OK + post: + summary: Create a new EventCategory + operationId: createEventCategory + parameters: + - $ref: "#/parameters/EventCategoryRequest" + responses: + "201": + description: Created + put: + summary: Update an existing EventCategory + operationId: updateEventCategory + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a EventCategory + operationId: deleteEventCategory + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /eventcategoryassignments: + get: + summary: Get a list of EventCategoryassignments + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getEventCategoryassignments + responses: + "200": + description: OK + post: + summary: Create a new EventCategoryAssignment + operationId: createEventCategoryAssignment + parameters: + - $ref: "#/parameters/EventCategoryAssignmentRequest" + responses: + "201": + description: Created + put: + summary: Update an existing EventCategoryAssignment + operationId: updateEventCategoryAssignment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a EventCategoryAssignment + operationId: deleteEventCategoryAssignment + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /favorites: + get: + summary: Get a list of Favorites + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getFavorites + responses: + "200": + description: OK + post: + summary: Create a new Favorite + operationId: createFavorite + parameters: + - $ref: "#/parameters/FavoriteRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Favorite + operationId: updateFavorite + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Favorite + operationId: deleteFavorite + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /invoices: + get: + summary: Get a list of Invoices + parameters: + - $ref: "#/parameters/idQuery" + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + operationId: getInvoices + responses: + "200": + description: OK + post: + summary: Create a new Invoice + operationId: createInvoice + parameters: + - $ref: "#/parameters/InvoiceRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Invoice + operationId: updateInvoice + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Invoice + operationId: deleteInvoice + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /issuedcertificates: + get: + summary: Get a list of Issuedcertificates + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getIssuedcertificates + responses: + "200": + description: OK + post: + summary: Create a new IssuedCertificate + operationId: createIssuedCertificate + parameters: + - $ref: "#/parameters/IssuedCertificateRequest" + responses: + "201": + description: Created + put: + summary: Update an existing IssuedCertificate + operationId: updateIssuedCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a IssuedCertificate + operationId: deleteIssuedCertificate + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /lessonprogress: + get: + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + summary: Get a list of LessonProgress + operationId: getLessonProgress + responses: + "200": + description: OK + post: + summary: Create a new LessonProgress + operationId: createLessonProgress + parameters: + - $ref: "#/parameters/LessonProgressRequest" + responses: + "201": + description: Created + put: + summary: Update an existing LessonProgress + operationId: updateLessonProgress + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a LessonProgress + operationId: deleteLessonProgress + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /orders: + get: + summary: Get a list of Orders + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getOrders + responses: + "200": + description: OK + post: + summary: Create a new Order + operationId: createOrder + parameters: + - $ref: "#/parameters/OrderRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Order + operationId: updateOrder + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Order + operationId: deleteOrder + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /paymentmethods: + get: + summary: Get a list of PaymentMethods + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getPaymentMethods + responses: + "200": + description: OK + post: + summary: Create a new PaymentMethod + operationId: createPaymentMethod + parameters: + - $ref: "#/parameters/PaymentMethodRequest" + responses: + "201": + description: Created + put: + summary: Update an existing PaymentMethod + operationId: updatePaymentMethod + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a PaymentMethod + operationId: deletePaymentMethod + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /researchprojects: + get: + summary: Get a list of ResearchProjects + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getResearchProjects + responses: + "200": + description: OK + post: + summary: Create a new ResearchProject + operationId: createResearchProject + parameters: + - $ref: "#/parameters/ResearchProjectRequest" + responses: + "201": + description: Created + put: + summary: Update an existing ResearchProject + operationId: updateResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a ResearchProject + operationId: deleteResearchProject + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /researchprojectcompanys: + get: + summary: Get a list of ResearchProjectCompanys + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getResearchProjectCompanys + responses: + "200": + description: OK + post: + summary: Create a new ResearchProjectCompany + operationId: createResearchProjectCompany + parameters: + - $ref: "#/parameters/ResearchProjectCompanyRequest" + responses: + "201": + description: Created + put: + summary: Update an existing ResearchProjectCompany + operationId: updateResearchProjectCompany + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a ResearchProjectCompany + operationId: deleteResearchProjectCompany + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /researchprojecttopics: + get: + summary: Get a list of ResearchProjectTopics + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getResearchProjectTopics + responses: + "200": + description: OK + post: + summary: Create a new ResearchProjectTopic + operationId: createResearchProjectTopic + parameters: + - $ref: "#/parameters/ResearchProjectTopicRequest" + responses: + "201": + description: Created + put: + summary: Update an existing ResearchProjectTopic + operationId: updateResearchProjectTopic + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a ResearchProjectTopic + operationId: deleteResearchProjectTopic + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /tickets: + get: + summary: Get a list of Tickets + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getTickets + responses: + "200": + description: OK + post: + summary: Create a new Ticket + operationId: createTicket + parameters: + - $ref: "#/parameters/TicketRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Ticket + operationId: updateTicket + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Ticket + operationId: deleteTicket + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content + /transactions: + get: + summary: Get a list of Transactions + parameters: + - $ref: "#/parameters/limitQuery" + - $ref: "#/parameters/offsetQuery" + - $ref: "#/parameters/idQuery" + operationId: getTransactions + responses: + "200": + description: OK + post: + summary: Create a new Transaction + operationId: createTransaction + parameters: + - $ref: "#/parameters/TransactionRequest" + responses: + "201": + description: Created + put: + summary: Update an existing Transaction + operationId: updateTransaction + parameters: + - $ref: "#/parameters/idQuery" + responses: + "200": + description: OK + delete: + summary: Delete a Transaction + operationId: deleteTransaction + parameters: + - $ref: "#/parameters/idQuery" + responses: + "204": + description: No Content +definitions: + Attendee: + type: object + properties: + ID: + type: string + CheckinStatus: + type: integer + CreatedDate: + type: string + x-nullable: true + EventID: + type: string + LastModifiedDate: + type: string + x-nullable: true + TicketID: + type: string + UserID: + type: string + AttendeeRequest: + type: object + description: An array of Attendee objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Attendee" + AttendeeResponse: + type: object + description: An array of Attendee objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Attendee" + Certificate: + type: object + properties: + ID: + type: string + CertificateTemplate: + type: string + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Description: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Title: + type: string + CertificateRequest: + type: object + description: An array of Certificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Certificate" + CertificateResponse: + type: object + description: An array of Certificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Certificate" + Course: + type: object + properties: + ID: + type: string + Title: + type: string + Description: + type: string + Fulldescription: + type: string + InstructorID: + type: string + Price: + type: number + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + CourseRequest: + type: object + description: An array of Course objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Course" + CourseResponse: + type: object + description: An array of Course objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Course" + CourseLesson: + type: object + properties: + ID: + type: string + Content: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Order: + type: integer + SectionID: + type: string + Title: + type: string + VideoURL: + type: string + CourseLessonRequest: + type: object + description: An array of CourseLesson objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseLesson" + CourseLessonResponse: + type: object + description: An array of CourseLesson objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseLesson" + CourseSection: + type: object + properties: + ID: + type: string + CourseID: + type: string + Title: + type: string + Description: + type: string + Order: + type: integer + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + CourseSectionRequest: + type: object + description: An array of CourseSection objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseSection" + CourseSectionResponse: + type: object + description: An array of CourseSection objects + properties: + Data: + type: array + items: + $ref: "#/definitions/CourseSection" + Enrollment: + type: object + properties: + ID: + type: string + Completed: + type: integer + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + EnrollmentDate: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + UserID: + type: string + EnrollmentRequest: + type: object + description: An array of Enrollment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Enrollment" + EnrollmentResponse: + type: object + description: An array of Enrollment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Enrollment" + Event: + type: object + properties: + ID: + type: string + Title: + type: string + Description: + type: string + x-nullable: true + StartDate: + type: string + EndDate: + type: string + Location: + type: string + Capacity: + type: integer + x-nullable: true + OrganizeruserID: + type: string + Createdat: + type: string + x-nullable: true + UpDatedat: + type: string + x-nullable: true + EventRequest: + type: object + description: An array of Event objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Event" + EventResponse: + type: object + description: An array of Event objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Event" + EventCategory: + type: object + properties: + ID: + type: string + Name: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedDate: + type: string + x-nullable: true + EventCategoryRequest: + type: object + description: An array of EventCategory objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategory" + EventCategoryResponse: + type: object + description: An array of EventCategory objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategory" + EventCategoryAssignment: + type: object + properties: + ID: + type: string + EventID: + type: string + EventCategoryID: + type: string + Createdat: + type: string + x-nullable: true + UpDatedat: + type: string + x-nullable: true + EventCategoryAssignmentRequest: + type: object + description: An array of EventCategoryAssignment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategoryAssignment" + EventCategoryAssignmentResponse: + type: object + description: An array of EventCategoryAssignment objects + properties: + Data: + type: array + items: + $ref: "#/definitions/EventCategoryAssignment" + Favorite: + type: object + properties: + ID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Description: + type: string + Favoritetype: + type: string + x-nullable: true + FavoriteID: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Name: + type: string + Path: + type: string + TenantID: + type: string + UserID: + type: string + FavoriteRequest: + type: object + description: An array of Favorite objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Favorite" + FavoriteResponse: + type: object + description: An array of Favorite objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Favorite" + Invoice: + type: object + properties: + ID: + type: string + Amount: + type: number + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Currency: + type: string + DueDate: + type: string + Invoicenumber: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Status: + type: string + TransactionID: + type: string + UserID: + type: string + InvoiceRequest: + type: object + description: An array of Invoice objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Invoice" + InvoiceResponse: + type: object + description: An array of Invoice objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Invoice" + IssuedCertificate: + type: object + properties: + ID: + type: string + CertificateID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + EnrollmentID: + type: string + ExpirationDate: + type: string + x-nullable: true + IssueDate: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + UserID: + type: string + VerificationCode: + type: string + IssuedCertificateRequest: + type: object + description: An array of IssuedCertificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/IssuedCertificate" + IssuedCertificateResponse: + type: object + description: An array of IssuedCertificate objects + properties: + Data: + type: array + items: + $ref: "#/definitions/IssuedCertificate" + LessonProgress: + type: object + properties: + ID: + type: string + Completed: + type: integer + Completedat: + type: string + x-nullable: true + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + EnrollmentID: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + LessonID: + type: string + UserID: + type: string + LessonProgressRequest: + type: object + description: An array of LessonProgress objects + properties: + Data: + type: array + items: + $ref: "#/definitions/LessonProgress" + LessonProgressResponse: + type: object + description: An array of LessonProgress objects + properties: + Data: + type: array + items: + $ref: "#/definitions/LessonProgress" + Order: + type: object + properties: + ID: + type: string + UserID: + type: string + EventID: + type: string + TicketID: + type: string + OrderStatus: + type: string + PaymentMethod: + type: string + x-nullable: true + AmountpaID: + type: number + x-nullable: true + Createdat: + type: string + x-nullable: true + UpDatedat: + type: string + x-nullable: true + OrderRequest: + type: object + description: An array of Order objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Order" + OrderResponse: + type: object + description: An array of Order objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Order" + PaymentMethod: + type: object + properties: + ID: + type: string + CardHolderName: + type: string + CardNumber: + type: string + CardType: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + ExpirationMonth: + type: integer + ExpirationYear: + type: integer + Isdefault: + type: integer + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + UserID: + type: string + PaymentMethodRequest: + type: object + description: An array of PaymentMethod objects + properties: + Data: + type: array + items: + $ref: "#/definitions/PaymentMethod" + PaymentMethodResponse: + type: object + description: An array of PaymentMethod objects + properties: + Data: + type: array + items: + $ref: "#/definitions/PaymentMethod" + ResearchProject: + type: object + properties: + ID: + type: string + AccountID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Description: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Name: + type: string + TenantID: + type: string + UserID: + type: string + ResearchProjectRequest: + type: object + description: An array of ResearchProject objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProject" + ResearchProjectResponse: + type: object + description: An array of ResearchProject objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProject" + ResearchProjectCompany: + type: object + properties: + ID: + type: string + AccountID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + ResearchProjectID: + type: string + TenantID: + type: string + ResearchProjectCompanyRequest: + type: object + description: An array of ResearchProjectCompany objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectCompany" + ResearchProjectCompanyResponse: + type: object + description: An array of ResearchProjectCompany objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectCompany" + ResearchProjectTopic: + type: object + properties: + ID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + ResearchProjectID: + type: string + TenantID: + type: string + TopicID: + type: string + ResearchProjectTopicRequest: + type: object + description: An array of ResearchProjectTopic objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectTopic" + ResearchProjectTopicResponse: + type: object + description: An array of ResearchProjectTopic objects + properties: + Data: + type: array + items: + $ref: "#/definitions/ResearchProjectTopic" + Ticket: + type: object + properties: + ID: + type: string + CreatedDate: + type: string + x-nullable: true + EventID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Price: + type: number + x-nullable: true + Quantity: + type: integer + Tickettype: + type: string + TicketRequest: + type: object + description: An array of Ticket objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Ticket" + TicketResponse: + type: object + description: An array of Ticket objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Ticket" + Transaction: + type: object + properties: + ID: + type: string + Amount: + type: number + CourseID: + type: string + CreatedByID: + type: string + CreatedDate: + type: string + x-nullable: true + Currency: + type: string + EnrollmentID: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + PaymentMethodID: + type: string + Status: + type: string + x-nullable: true + TransactionDate: + type: string + UserID: + type: string + TransactionRequest: + type: object + description: An array of Transaction objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Transaction" + TransactionResponse: + type: object + description: An array of Transaction objects + properties: + Data: + type: array + items: + $ref: "#/definitions/Transaction" diff --git a/swagger/research-vernonkeenan.yaml b/swagger/research-vernonkeenan.yaml index 9dcc5ac..fee2115 100644 --- a/swagger/research-vernonkeenan.yaml +++ b/swagger/research-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "research" description: "Customer Information Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -23,7 +23,7 @@ produces: - "application/json" parameters: accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false @@ -35,31 +35,31 @@ parameters: required: false type: boolean companyProductIdQuery: - description: Taxnexus CompanyProduct record ID + description: CompanyProduct record ID in: query name: companyProductId required: false type: string industryIdQuery: - description: Taxnexus Industry record ID + description: Industry record ID in: query name: industryId required: false type: string topicIdQuery: - description: Taxnexus Topic record ID + description: Topic record ID in: query name: topicId required: false type: string leadIdQuery: - description: Taxnexus Lead record ID + description: Lead record ID in: query name: leadId required: false type: string contactIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contactId required: false @@ -124,7 +124,7 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Topic objects + description: Response with Topic objects schema: $ref: "#/definitions/TopicResponse" IndustryResponse: @@ -133,11 +133,11 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Industry objects + description: Response with Industry objects schema: $ref: "#/definitions/IndustryResponse" TopicObservableResponse: - description: Taxnexus Response with an array of Topic objects + description: Response with an array of Topic objects headers: Access-Control-Allow-Origin: type: string @@ -148,7 +148,7 @@ responses: $ref: "#/definitions/Topic" type: array IndustryObservableResponse: - description: Taxnexus Response with an array of Industry objects + description: Response with an array of Industry objects headers: Access-Control-Allow-Origin: type: string @@ -166,7 +166,7 @@ responses: schema: $ref: "#/definitions/Error" DeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -401,7 +401,6 @@ paths: - cors definitions: Address: - type: object properties: City: description: City @@ -424,206 +423,15 @@ definitions: Street: description: Street number and name type: string - Factor: - description: A Factor of analysis within a research topic - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Factor Name - type: string - Description: - description: Topic Description - type: string - SiteURL: - description: The URL of the corresponding page on the CMS - type: string - TopicID: - description: The ID of the Topic that owns this Factor - type: string - Observations: - description: The list of Observations used to analyze this industry - type: array - items: - $ref: "#/definitions/Observation" - Observation: - description: A data point collected while analyzing a Factor - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - FactorID: - description: The ID of the Factor that owns this Observation - type: string - SubjectType: - description: Is the subject a Company or a Product? - AccountID: - description: The ID of the Company being analyzed - type: string - companyProductID: - description: The ID of the Product being analyzed - type: string - Description: - description: Notes concerning data collection - type: string - Value: - description: The data point collected - type: string - Topic: - description: A research topic that collects data - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Topic Name - type: string - Description: - description: Topic Description - type: string - SiteURL: - description: The URL of the corresponding page on the CMS - type: string - ParentTopicID: - description: The ID of the Parent Topic - type: string - Factors: - description: The list of Factors used to analyze this industry - type: array - items: - $ref: "#/definitions/Factor" - Industry: - description: An industry that is being researched - type: object - properties: - ID: - description: Taxnexus Record Id - type: string - CreatedByID: - description: Created By User ID - type: string - CreatedDate: - description: Created Date - type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - Name: - description: Industry Name - type: string - Description: - description: Industry Description - type: string - ParentIndustryID: - description: The ID of the Parent Industry - type: string - Level: - description: The hierarchical level of this Industry - type: string - Path: - description: The full path of this industry, including Parent - type: string - Slug: - description: The CMS Slug for this Industry - type: string - SiteURL: - description: The URL of the corresponding page on the CMS - type: string - Companies: - description: The AccountIDs of the Companies in this Industry - type: array - items: - type: string - CompanyProducts: - description: The list of Products in this industry - type: array - items: - $ref: "#/definitions/CompanyProduct" - IndustryRequest: - description: An array of Industry objects submitted for processing - properties: - Data: - items: - $ref: "#/definitions/Industry" - type: array - type: object - IndustryResponse: - description: An array of Industry objects produced in response to a request - properties: - Data: - items: - $ref: "#/definitions/Industry" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" - type: object - TopicRequest: - description: An array of Topic objects submitted for processing - properties: - Data: - items: - $ref: "#/definitions/Topic" - type: array - type: object - TopicResponse: - description: An array of Topic objects produced in response to a request - properties: - Data: - items: - $ref: "#/definitions/Topic" - type: array - Meta: - $ref: "#/definitions/ResponseMeta" type: object CompanyProduct: description: A software product or service vended by a Company - type: object properties: ID: - description: Taxnexus Record Id + description: Record Id + type: string + AccountID: + description: ID of the Company that owns this Product type: string CreatedByID: description: Created By User ID @@ -631,27 +439,46 @@ definitions: CreatedDate: description: Created Date type: string - LastModifiedByID: - description: Last Modified By User ID - type: string - LastModifiedDate: - description: Last Modified Date - type: string - AccountID: - description: Taxnexus ID of the Company that owns this Product - type: string Description: description: Description of product type: string + FullDescription: + description: Full Description of product + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Logo: + description: Logo + type: string Name: description: Product Name type: string + Published: + description: Published + type: boolean + SalesforceSpecific: + description: Salesforce Specific + type: boolean + SiteURL: + description: Site URL + type: string TagLine: description: TagLine type: string URL: description: Website type: string + type: object DeleteResponse: properties: Data: @@ -671,6 +498,150 @@ definitions: Message: type: string type: object + Factor: + description: A Factor of analysis within a research topic + properties: + ID: + description: Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Topic Description + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Factor Name + type: string + Observations: + description: The list of Observations used to analyze this industry + items: + $ref: "#/definitions/Observation" + type: array + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Slug: + description: The slug of the corresponding page on the CMS + type: string + TopicID: + description: The ID of the Topic that owns this Factor + type: string + type: object + IndustryProduct: + description: Junction object between Industry and CompanyProduct + type: object + properties: + ID: + description: Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + IndustryID: + type: string + HTML: + type: string + CompanyProductID: + type: string + Industry: + description: An industry that is being researched + properties: + ID: + description: Record Id + type: string + Companies: + description: The AccountIDs of the Companies in this Industry + items: + type: string + type: array + CompanyProducts: + description: The list of Products in this industry + items: + $ref: "#/definitions/CompanyProduct" + type: array + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Industry Description + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Level: + description: The hierarchical level of this Industry + type: string + Logo: + description: Logo + type: string + Name: + description: Industry Name + type: string + ParentIndustryID: + description: The ID of the Parent Industry + type: string + Path: + description: The full path of this industry, including Parent + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Slug: + description: The CMS Slug for this Industry + type: string + TagLine: + description: TagLine + type: string + type: object + IndustryRequest: + description: An array of Industry objects submitted for processing + properties: + Data: + items: + $ref: "#/definitions/Industry" + type: array + type: object + IndustryResponse: + description: An array of Industry objects produced in response to a request + properties: + Data: + items: + $ref: "#/definitions/Industry" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object InvalidError: allOf: - $ref: "#/definitions/Error" @@ -690,6 +661,42 @@ definitions: format: int64 type: number type: object + Observation: + description: A data point collected while analyzing a Factor + properties: + ID: + description: Record Id + type: string + AccountID: + description: The ID of the Company being analyzed + type: string + CompanyProductID: + description: The ID of the Product being analyzed + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Notes concerning data collection + type: string + FactorID: + description: The ID of the Factor that owns this Observation + type: string + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + SubjectType: + description: Is the subject a Company or a Product? + Value: + description: The data point collected + type: string + type: object Pagination: properties: limit: @@ -708,7 +715,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -748,6 +755,63 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object + Topic: + description: A research topic that collects data + properties: + ID: + description: Record Id + type: string + CreatedByID: + description: Created By User ID + type: string + CreatedDate: + description: Created Date + type: string + Description: + description: Topic Description + type: string + Factors: + description: The list of Factors used to analyze this industry + items: + $ref: "#/definitions/Factor" + type: array + LastModifiedByID: + description: Last Modified By User ID + type: string + LastModifiedDate: + description: Last Modified Date + type: string + Name: + description: Topic Name + type: string + ParentTopicID: + description: The ID of the Parent Topic + type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string + Slug: + description: The CMS Slug for this Topic + type: string + type: object + TopicRequest: + description: An array of Topic objects submitted for processing + properties: + Data: + items: + $ref: "#/definitions/Topic" + type: array + type: object + TopicResponse: + description: An array of Topic objects produced in response to a request + properties: + Data: + items: + $ref: "#/definitions/Topic" + type: array + Meta: + $ref: "#/definitions/ResponseMeta" + type: object diff --git a/swagger/sf-gate-vernonkeenan.yaml b/swagger/sf-gate-vernonkeenan.yaml index 3f32229..eb1a664 100644 --- a/swagger/sf-gate-vernonkeenan.yaml +++ b/swagger/sf-gate-vernonkeenan.yaml @@ -23,7 +23,7 @@ produces: - "application/json" parameters: accountIdQuery: - description: Taxnexus Record Id of an Account + description: Record Id of an Account in: query name: accountId required: false @@ -42,13 +42,13 @@ parameters: required: false type: boolean apiKeyQuery: - description: Taxnexus Id of the User to be retrieved + description: Id of the User to be retrieved in: query name: apikey required: false type: string assetIdQuery: - description: Taxnexus Record Id of an Asset + description: Record Id of an Asset in: query name: assetId required: false @@ -61,7 +61,7 @@ parameters: schema: $ref: "#/definitions/AssetRequest" clusterIdQuery: - description: Taxnexus Record Id of a Cluster + description: Record Id of a Cluster in: query name: clusterId required: false @@ -74,13 +74,13 @@ parameters: schema: $ref: "#/definitions/ClusterRequest" companyProductIdQuery: - description: Taxnexus CompanyProduct record ID + description: CompanyProduct record ID in: query name: companyProductId required: false type: string contactIdQuery: - description: Taxnexus Record Id of a Contact + description: Record Id of a Contact in: query name: contactId required: false @@ -100,7 +100,7 @@ parameters: schema: $ref: "#/definitions/CompanyProductRequest" contractIdQuery: - description: Taxnexus Contact record ID + description: Contact record ID in: query name: contractId required: false @@ -119,8 +119,15 @@ parameters: required: true schema: $ref: "#/definitions/DatabaseRequest" + newUserRequest: + description: A single new user record + in: body + name: UserRequest + required: true + schema: + $ref: "#/definitions/UserRequest" databaseIdQuery: - description: Taxnexus Record Id of a Database + description: Record Id of a Database in: query name: databaseId required: false @@ -132,13 +139,13 @@ parameters: required: false type: string industryIdQuery: - description: Taxnexus Industry record ID + description: Industry record ID in: query name: industryId required: false type: string industryProductIdQuery: - description: Taxnexus IndustryProduct record ID + description: IndustryProduct record ID in: query name: industryProductId required: false @@ -178,19 +185,19 @@ parameters: required: false type: integer roleIdQuery: - description: Taxnexus Id of the Role to be retrieved + description: Id of the Role to be retrieved in: query name: roleId required: false type: string templateIdQuery: - description: Taxnexus Record Id of a Template + description: Record Id of a Template in: query name: templateId required: false type: string tenantIdQuery: - description: Taxnexus Record Id of a Tenant + description: Record Id of a Tenant in: query name: tenantId required: false @@ -203,12 +210,16 @@ parameters: schema: $ref: "#/definitions/TenantRequest" userIdQuery: - description: Taxnexus Id of the User to be retrieved + description: Id of the User to be retrieved in: query name: userId required: false type: string responses: + SalesforcePostResponse: + description: Response from Salesforce + schema: + $ref: "#/definitions/SalesforcePostResponse" AccessForbidden: description: "Access forbidden, account lacks access" headers: @@ -217,7 +228,7 @@ responses: schema: $ref: "#/definitions/Error" AccountResponse: - description: Taxnexus Response with Account objects with Contacts + description: Response with Account objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -226,7 +237,7 @@ responses: schema: $ref: "#/definitions/AccountResponse" AssetResponse: - description: Taxnexus Response with Asset objects with Contacts + description: Response with Asset objects with Contacts headers: Access-Control-Allow-Origin: type: string @@ -235,11 +246,11 @@ responses: schema: $ref: "#/definitions/AssetResponse" ClusterResponse: - description: Taxnexus Response with Cluster objects + description: Response with Cluster objects schema: $ref: "#/definitions/ClusterResponse" ContactResponse: - description: Taxnexus Response with Contact objects + description: Response with Contact objects schema: $ref: "#/definitions/ContactResponse" IndustryResponse: @@ -248,7 +259,7 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Industry objects + description: Response with Industry objects schema: $ref: "#/definitions/IndustryResponse" IndustryProductResponse: @@ -257,11 +268,11 @@ responses: type: string Cache-Control: type: string - description: Taxnexus Response with Industry objects + description: Response with Industry objects schema: $ref: "#/definitions/IndustryProductResponse" ContractResponse: - description: Taxnexus Response with an array of Contract objects + description: Response with an array of Contract objects headers: Access-Control-Allow-Origin: type: string @@ -270,7 +281,7 @@ responses: schema: $ref: "#/definitions/ContractResponse" CompanyProductResponse: - description: Taxnexus Response with an array of CompanyProduct objects + description: Response with an array of CompanyProduct objects headers: Access-Control-Allow-Origin: type: string @@ -279,11 +290,11 @@ responses: schema: $ref: "#/definitions/CompanyProductResponse" DatabaseResponse: - description: Taxnexus Response with Database objects + description: Response with Database objects schema: $ref: "#/definitions/DatabaseResponse" DeleteResponse: - description: Taxnexus Response with Message Objects with Delete Status + description: Response with Message Objects with Delete Status headers: Access-Control-Allow-Origin: type: string @@ -304,7 +315,7 @@ responses: schema: $ref: "#/definitions/Error" RoleResponse: - description: Taxnexus Response with Role objects + description: Response with Role objects schema: $ref: "#/definitions/RoleResponse" ServerError: @@ -315,11 +326,11 @@ responses: schema: $ref: "#/definitions/Error" TemplateResponse: - description: Taxnexus Response with Template objects + description: Response with Template objects schema: $ref: "#/definitions/TemplateResponse" TenantResponse: - description: Taxnexus Response with Tenant objects + description: Response with Tenant objects schema: $ref: "#/definitions/TenantResponse" Unauthorized: @@ -337,13 +348,13 @@ responses: schema: $ref: "#/definitions/Error" UserResponse: - description: Taxnexus Response with User objects + description: Response with User objects schema: $ref: "#/definitions/UserResponse" paths: /accounts: delete: - description: Delete Taxnexus Account record + description: Delete Account record operationId: deleteAccount parameters: - $ref: "#/parameters/accountIdQuery" @@ -399,8 +410,8 @@ paths: parameters: - $ref: "#/parameters/accountRequest" responses: - "200": - $ref: "#/responses/AccountResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -417,8 +428,8 @@ paths: tags: - Accounts put: - description: Update a single account specified by accountId - operationId: putAccount + description: Update one or more accounts specified by accountId + operationId: putAccounts parameters: - $ref: "#/parameters/accountRequest" responses: @@ -472,8 +483,8 @@ paths: parameters: - $ref: "#/parameters/assetRequest" responses: - "200": - $ref: "#/responses/AssetResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -516,13 +527,13 @@ paths: tags: - Clusters post: - description: Create Clusters in Taxnexus + description: Create Clusters in Salesforce operationId: postClusters parameters: - $ref: "#/parameters/clusterRequest" responses: - "200": - $ref: "#/responses/ClusterResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -539,7 +550,7 @@ paths: tags: - Clusters put: - description: Update Cluster in Taxnexus + description: Update Cluster in Salesforce operationId: putClusters parameters: - $ref: "#/parameters/clusterRequest" @@ -594,8 +605,8 @@ paths: parameters: - $ref: "#/parameters/companyProductRequest" responses: - "200": - $ref: "#/responses/CompanyProductResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -613,7 +624,7 @@ paths: - CompanyProducts /contacts: get: - description: Retrieve Contact records from the datastore + description: Retrieve Contact records from Salesforce operationId: getContacts parameters: - $ref: "#/parameters/contactIdQuery" @@ -641,9 +652,9 @@ paths: summary: Get a Contact record tags: - Contacts - post: - description: Contacts record to be added - operationId: postContacts + put: + description: Update Contact records in Salesforce + operationId: putContacts parameters: - $ref: "#/parameters/contactRequest" responses: @@ -655,6 +666,29 @@ paths: $ref: "#/responses/AccessForbidden" "404": $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Update a Contact record + tags: + - Contacts + post: + description: Contacts record to be added + operationId: postContacts + parameters: + - $ref: "#/parameters/contactRequest" + responses: + "201": + $ref: "#/responses/SalesforcePostResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" "500": $ref: "#/responses/ServerError" security: @@ -662,6 +696,29 @@ paths: summary: Add a new Contacts to Taxnexus tags: - Contacts + delete: + description: Delete Contact record from Salesforce + operationId: deleteContacts + parameters: + - $ref: "#/parameters/contactIdQuery" + responses: + "200": + $ref: "#/responses/ContactResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + security: + - ApiKeyAuth: [] + summary: Delete a Contact record + tags: + - Contacts /contracts: get: description: Return a list of all available Contracts @@ -689,29 +746,6 @@ paths: summary: Get a list of contracts tags: - Contracts - post: - description: Contract record to be added - operationId: postContracts - parameters: - - $ref: "#/parameters/contractRequest" - responses: - "200": - $ref: "#/responses/ContractResponse" - "401": - $ref: "#/responses/Unauthorized" - "403": - $ref: "#/responses/AccessForbidden" - "404": - $ref: "#/responses/NotFound" - "422": - $ref: "#/responses/UnprocessableEntity" - "500": - $ref: "#/responses/ServerError" - security: - - ApiKeyAuth: [] - summary: Add a new contract to Taxnexus - tags: - - Contracts /industryproducts: get: description: Return a list of all available IndustryProducts @@ -722,8 +756,8 @@ paths: - $ref: "#/parameters/activeQuery" - $ref: "#/parameters/industryProductIdQuery" responses: - "200": - $ref: "#/responses/IndustryProductResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -745,8 +779,8 @@ paths: parameters: - $ref: "#/parameters/industryProductRequest" responses: - "200": - $ref: "#/responses/IndustryProductResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -795,8 +829,8 @@ paths: parameters: - $ref: "#/parameters/industryRequest" responses: - "200": - $ref: "#/responses/IndustryResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -893,13 +927,13 @@ paths: tags: - Tenants post: - description: Create Tenants in Taxnexus + description: Create Tenants in Salesforce operationId: Tenants parameters: - $ref: "#/parameters/tenantRequest" responses: - "200": - $ref: "#/responses/TenantResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -914,7 +948,7 @@ paths: tags: - Tenants put: - description: Update Tenant in Taxnexus + description: Update Tenant in Salesforce operationId: putTenants parameters: - $ref: "#/parameters/tenantRequest" @@ -963,13 +997,13 @@ paths: tags: - Databases post: - description: Create Databases in Taxnexus + description: Create Databases in Salesforce operationId: postDatabases parameters: - $ref: "#/parameters/databaseRequest" responses: - "200": - $ref: "#/responses/DatabaseResponse" + "201": + $ref: "#/responses/SalesforcePostResponse" "401": $ref: "#/responses/Unauthorized" "403": @@ -986,7 +1020,7 @@ paths: tags: - Databases put: - description: Update Database in Taxnexus + description: Update Database in Salesforce operationId: putDatabases parameters: - $ref: "#/parameters/databaseRequest" @@ -1009,6 +1043,29 @@ paths: tags: - Databases /users: + post: + description: Create a user record in Salesforce + operationId: postUser + parameters: + - $ref: "#/parameters/newUserRequest" + responses: + "200": + $ref: "#/responses/SalesforcePostResponse" + "401": + $ref: "#/responses/Unauthorized" + "403": + $ref: "#/responses/AccessForbidden" + "404": + $ref: "#/responses/NotFound" + "422": + $ref: "#/responses/UnprocessableEntity" + "500": + $ref: "#/responses/ServerError" + summary: Create new Salesforce User + security: + - ApiKeyAuth: [] + tags: + - Users get: description: Return a list of User records from the datastore operationId: getUsers @@ -1037,11 +1094,29 @@ paths: tags: - Users definitions: + UserRequest: + type: object + properties: + APIKey: + type: string + Address: + $ref: "#/definitions/Address" + Email: + type: string + Environment: + type: string + FirstName: + type: string + ID: + type: string + LastName: + type: string + TaxnexusAccount: + type: string + Title: + type: string Account: properties: - TenantID: - description: tenant identifier - type: string ID: description: Taxnexus Account Id type: string @@ -1049,8 +1124,10 @@ definitions: description: Account Number type: string AccountSource: - description: The marketing orgin of this account + description: The marketing origin of this account type: string + Active: + type: boolean AnnualRevenue: description: Annual Revenue Estimate format: double @@ -1060,47 +1137,62 @@ definitions: BillingContactID: description: Contact ID type: string + CloseDate: + description: Close Date + type: string + CloudRevenueTotal: + type: number + CloudType: + description: The type of cloud company + type: string + CloudYear: + description: The year company started cloud revenue + type: string CreatedByID: description: Created By User ID type: string CreatedDate: description: Created Date type: string - CloseDate: - description: Date company closed - type: string - CloudRevenueTotal: - type: number - CloudType: - type: string - CloudYear: - type: string CrunchbaseURL: + description: Crunchbase URL type: string Description: - description: Description + description: Description of the account + type: string + EIN: type: string EarningsCall: + description: Earnings Call Date type: string Email: description: Main Account Email type: string EquityFunding: + description: The amount of equity EquityFunding type: number + Facebook: + description: Company Facebook URL + type: string Fax: - description: Fax + description: Fax number type: string FoundedDate: + description: Date company founded + type: string + IPODate: + description: IPO Date + type: string + ImageAltText: + type: string + ImageURL: + type: string + Industries: + description: Industries type: string Industry: description: Industry type: string - Facebook: - type: string - Industries: - type: string - IPODate: - type: string LastModifiedByID: description: Last Modified By User ID type: string @@ -1108,24 +1200,27 @@ definitions: description: Last Modified Date type: string LinkedIn: + description: Company LinkedIn URL type: string Location: + description: Headquarters Location Description type: string Logo: + description: Company Logo URL type: string MarketCapitalization: + description: Market Capitalization type: number Name: description: Account Name type: string + NumberInvestments: + description: Number of Investments + type: number NumberOfEmployees: description: Employee Count Estimate - type: number format: int64 - NumberInvestments: - description: Number of Locations Estimate type: number - format: int64 OwnerID: description: Account Owner User ID type: string @@ -1139,31 +1234,43 @@ definitions: description: Phone type: string Publish: + description: Publish this record? type: boolean - SalesforceFirst: - type: boolean - ShippingAddress: - $ref: "#/definitions/Address" - ShippingContactID: - type: string SIC: description: SIC Code type: string SICDesc: description: SIC Description type: string + SalesforceFirst: + description: A Salesforce-First company? + type: boolean + ShippingAddress: + $ref: "#/definitions/Address" + ShippingContactID: + description: Shipping Contact ID + type: string Site: description: Account Site type: string + Slug: + description: Slug + type: string TagLine: + description: Company tagline + type: string + TenantID: + description: Tenant Identifier type: string TickerSymbol: + description: Ticker Symbol + type: string + Twitter: + description: Twitter URL type: string Type: description: Type type: string - Twitter: - type: string Website: description: Website type: string @@ -1192,37 +1299,36 @@ definitions: type: object Address: properties: - city: + City: description: City type: string - country: + Country: description: Country full name type: string - countrycode: + CountryCode: description: Country Code type: string - postalcode: + PostalCode: description: Postal Code type: string - state: + State: description: State full name type: string - statecode: + StateCode: description: State Code type: string - street: + Street: description: Street number and name type: string - required: - - city - - statecode type: object CompanyProduct: description: A software product or service vended by a Company - type: object properties: ID: - description: Taxnexus Record Id + description: Record Id + type: string + AccountID: + description: Taxnexus ID of the Company that owns this Product type: string CreatedByID: description: Created By User ID @@ -1230,169 +1336,185 @@ definitions: CreatedDate: description: Created Date type: string + Description: + description: Description of product + type: string + FullDescription: + description: Full Description of product + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string LastModifiedByID: description: Last Modified By User ID type: string LastModifiedDate: description: Last Modified Date type: string - AccountID: - description: Taxnexus ID of the Company that owns this Product - type: string - Description: - description: Description of product + Logo: + description: Logo type: string Name: description: Product Name type: string + Published: + description: Published + type: boolean + SalesforceSpecific: + description: Salesforce Specific + type: boolean + SiteURL: + description: Site URL + type: string TagLine: description: TagLine type: string URL: description: Website type: string + type: object Asset: properties: ID: + description: Record Id type: string - description: Taxnexus Record Id AccountID: - type: string description: Account + type: string Address: $ref: "#/definitions/Address" AssetLevel: - type: number description: Asset Level - Name: - type: string - description: Asset Name + type: number AssetProvidedByID: - type: string description: Asset Provided By + type: string AssetServicedByID: - type: string description: Asset Serviced By + type: string CompanyProductID: - type: string description: Company Product - IsCompetitorProduct: - type: boolean - description: Competitor Asset + type: string ConsequenceOfFailure: - type: string description: Consequence Of Failure + type: string ContactID: - type: string description: Contact + type: string CreatedByID: - type: string description: Created By + type: string CreatedDate: - type: string description: Created Date + type: string CurrentAmount: - type: number description: Current Amount + type: number CurrentLifecycleEndDate: - type: string description: Current Lifecycle End Date + type: string CurrentMrr: - type: number description: Current Monthly Recurring Revenue + type: number CurrentQuantity: - type: number description: Current Quantity + type: number Description: - type: string description: Description + type: string DigitalAssetStatus: - type: string description: Digital Asset Status + type: string ExternalIdentifier: - type: string description: External Id + type: string HasLifecycleManagement: - type: boolean description: Has Lifecycle Management - InstallDate: - type: string - description: Install Date - IsInternal: type: boolean + InstallDate: + description: Install Date + type: string + IsCompetitorProduct: + description: Competitor Asset + type: boolean + IsInternal: description: Internal Asset + type: boolean LastModifiedByID: - type: string description: Last Modified By + type: string LastModifiedDate: - type: string description: Last Modified Date + type: string LocationID: - type: string description: Location - ManufactureDate: type: string - description: Manufacture Date MIMEType: - type: string description: MIME Type + type: string + ManufactureDate: + description: Manufacture Date + type: string + Name: + description: Asset Name + type: string ParentID: - type: string description: Parent Asset + type: string Price: - type: number description: Price + type: number Product2ID: - type: string description: Product + type: string ProductCode: - type: string description: Product Code + type: string ProductDescription: - type: string description: Product Description + type: string ProductFamily: - type: string description: Product Family - StockKeepingUnit: type: string - description: Product SKU PurchaseDate: - type: string description: Purchase Date + type: string Quantity: - type: number description: Quantity - RootAssetID: - type: string - description: Root Asset - SerialNumber: - type: string - description: Serial Number - Status: - type: string - description: Status - StatusReason: - type: string - description: Status Reason - TenantID: - type: string - description: Tenant ID - TotalLifecycleAmount: type: number + RootAssetID: + description: Root Asset + type: string + SerialNumber: + description: Serial Number + type: string + Status: + description: Status + type: string + StatusReason: + description: Status Reason + type: string + StockKeepingUnit: + description: Product SKU + type: string + TenantID: + description: Tenant ID + type: string + TotalLifecycleAmount: description: Total Lifecycle Amount + type: number Type: - type: string description: Type - UUID: type: string - description: Unique Identifier URL: - type: string description: URL - UsageEndDate: type: string + UsageEndDate: description: Usage End Date + type: string type: object AssetRequest: description: An array of Asset objects with Contacts @@ -1415,55 +1537,55 @@ definitions: Cluster: type: object properties: - id: + ID: type: string - description: Taxnexus Record Id - name: + description: Record Id + Name: type: string description: Cluster Name - createdbyid: + CreatedByID: type: string description: Created By - createddate: + CreatedDate: type: string description: Created Date - description: + Description: type: string description: Description - environment: + Environment: type: string description: Environment - ref: + Ref: type: string description: External Reference - gateway: + Gateway: type: string description: Gateway - ip_address: + IpAddress: type: string description: IP Address - lastmodifiedbyid: + LastModifiedByID: type: string description: Last Modified By - lastmodifieddate: + LastModifiedDate: type: string description: Last Modified Date - ownerid: + OwnerID: type: string description: Owner - status: + Status: type: string description: Status - subnet: + Subnet: type: string description: Subnet - tenantid: + TenantID: type: string description: tenantid - type: + Type: type: string description: Type - zone: + Zone: type: string description: Zone ClusterRequest: @@ -1475,7 +1597,6 @@ definitions: meta: $ref: "#/definitions/RequestMeta" required: - - meta - data type: object ClusterResponse: @@ -1490,11 +1611,8 @@ definitions: type: object Contact: properties: - TenantID: - description: tenant identifier - type: string ID: - description: Taxnexus Record Id + description: Record Id type: string AccountID: description: The primary account ID of this contact @@ -1514,6 +1632,9 @@ definitions: CreatedDate: description: Created Date type: string + CrunchbaseURL: + description: Crunchbase URL + type: string Department: description: Department type: string @@ -1532,11 +1653,11 @@ definitions: EmailBounceReason: description: Email Bounce Reason type: string - Fax: - type: string Facebook: description: Fax Number type: string + Fax: + type: string FirstName: description: First Name type: string @@ -1592,6 +1713,18 @@ definitions: PhotoURL: description: URL of a photograph of this User type: string + ReportsToID: + description: Reports To User ID + type: string + Salutation: + description: Salutation + type: string + Slug: + description: Slug + type: string + TenantID: + description: tenant identifier + type: string Title: description: Contact Title type: string @@ -1607,7 +1740,6 @@ definitions: meta: $ref: "#/definitions/RequestMeta" required: - - meta - data type: object CompanyProductResponse: @@ -1628,7 +1760,6 @@ definitions: meta: $ref: "#/definitions/RequestMeta" required: - - meta - data type: object ContactResponse: @@ -1694,6 +1825,9 @@ definitions: EndDate: description: Contract End Date type: string + EndUserID: + description: End User + type: string HourlyRate: description: Hourly Rate type: number @@ -1753,43 +1887,43 @@ definitions: type: object description: A Database provisioned and owned by a Tenant properties: - active: - description: Is this database active? - type: boolean - clusterid: - description: The ID of the Cluster in which this database is deployed - type: string - createdbyid: - description: Created By - type: string - createddate: - description: Created Date - type: string - databasename: - description: The name of the physical database in the cluster - type: string - dsn: - description: Database connection string - type: string - id: + ID: description: Record Id type: string - lastmodifiedbyid: + Active: + description: Is this database active? + type: boolean + ClusterID: + description: The ID of the Cluster in which this database is deployed + type: string + CreatedByID: + description: Created By + type: string + CreatedDate: + description: Created Date + type: string + DatabaseName: + description: The name of the physical database in the cluster + type: string + DSN: + description: Database connection string + type: string + LastModifiedByID: description: Last Modified By type: string - lastmodifieddate: + LastModifiedDate: description: Last Modifed Date type: string - microservices: - description: List of Taxnexus microservices implemented by this Database + Microservices: + description: List of microservices implemented by this Database type: string - status: + Status: description: The current status of this Tenant type: string - tenantid: + TenantID: description: The ID of the tenant who owns this Database type: string - type: + Type: description: "The type of Database (mysql, etc)" type: string DatabaseRequest: @@ -1836,7 +1970,7 @@ definitions: type: object properties: ID: - description: Taxnexus Record Id + description: Record Id type: string CreatedByID: description: Created By User ID @@ -1861,40 +1995,62 @@ definitions: type: object properties: ID: - description: Taxnexus Record Id + description: Record Id type: string + Companies: + description: The AccountIDs of the Companies in this Industry + items: + type: string + type: array + CompanyProducts: + description: The list of Products in this industry + items: + $ref: "#/definitions/CompanyProduct" + type: array CreatedByID: description: Created By User ID type: string CreatedDate: description: Created Date type: string + Description: + description: Industry Description + type: string + Imagealttext: + description: Image Alt Text + type: string + ImageURL: + description: Image URL + type: string LastModifiedByID: description: Last Modified By User ID type: string LastModifiedDate: description: Last Modified Date type: string + Level: + description: The hierarchical level of this Industry + type: string + Logo: + description: Logo + type: string Name: description: Industry Name type: string - Description: - description: Industry Description - type: string ParentIndustryID: description: The ID of the Parent Industry type: string - Level: - description: The hierarchical level of this Industry - type: string Path: description: The full path of this industry, including Parent type: string + SiteURL: + description: The URL of the corresponding page on the CMS + type: string Slug: description: The CMS Slug for this Industry type: string - SiteURL: - description: The URL of the corresponding page on the CMS + TagLine: + description: TagLine type: string IndustryRequest: description: An array of Industry objects submitted for processing @@ -1969,7 +2125,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -2009,7 +2165,7 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object TenantRequest: @@ -2049,31 +2205,31 @@ definitions: type: object description: A functional role within a Tenant properties: - id: + ID: type: string description: record id - auth0roleid: + Auth0RoleID: description: the corresponding auth0 role type: string - createdbyid: + CreatedByID:: type: string description: created by - createddate: + CreatedDate: type: string description: created date - description: + Description: type: string description: role description - lastmodifiedbyid: + LastModifiedByID: type: string description: last modified by - lastmodifieddate: + LastModifiedDate: type: string description: last modifed date - rolename: + RoleName: type: string description: the name of this role - tenantid: + TenantID: type: string description: the id of the tenant that owns this role RoleRequest: @@ -2098,12 +2254,9 @@ definitions: type: object Template: properties: - tenantid: + TenantID: description: tenant identifier type: string - CompanyID: - description: Company - type: string CreatedByID: type: string CreatedDate: @@ -2116,7 +2269,7 @@ definitions: type: string format: byte ID: - description: Taxnexus Record Id + description: Record Id type: string IsActive: description: Active? @@ -2155,230 +2308,231 @@ definitions: type: object Tenant: type: object - description: Taxnexus Account Tenant + description: Account Tenant properties: - id: + ID: type: string description: Record Id - accountid: + AccountID: type: string description: The Account that owns this Tenant - active: + Active: type: boolean description: Is this Tenant currently active? - createdbyid: + CreatedByID: type: string description: Created By - createddate: + CreatedDate: type: string description: Created Date - lastmodifiedbyid: + LastModifiedByID: type: string description: Last Modified By - lastmodifieddate: + LastModifiedDate: type: string description: Last Modifed Date - status: + Status: type: string description: The current status of this Tenant - tenantname: + TenantName: type: string description: Name of the Tenant Resource - type: + Type: type: string description: Type of tenant - version: + Version: type: string description: The version number of the Tenant Onboarding system used to create this tenant - databases: + Databases: items: $ref: "#/definitions/Database" type: array - roles: + Roles: items: $ref: "#/definitions/Role" type: array - tenantusers: + TenantUsers: items: $ref: "#/definitions/TenantUser" type: array User: properties: - tenantid: - type: string - aboutme: - description: About Me - type: string - accountid: - description: Account ID - type: string - address: - $ref: "#/definitions/Address" - alias: - description: Alias - type: string - apikey: + APIKey: description: API Key type: string - auth0userid: - description: Auth0 User ID + AboutMe: + description: About Me type: string - communitynickname: + AccountID: + description: Account ID + type: string + Address: + $ref: "#/definitions/Address" + Alias: + description: Alias + type: string + Auth0UserID: + description: Auth0 User Id + type: string + CommunityNickname: description: Nickname type: string - companyname: + CompanyName: description: Company Name type: string - contactid: + ContactID: description: Contact type: string - createdbyid: + CreatedByID: description: Created User ID type: string - createddate: + CreatedDate: description: Date Created type: string - delegatedapproverid: + DelegatedApproverID: description: Delegated Approver type: string - department: + Department: description: Department type: string - division: + Division: description: Division type: string - email: + Email: description: Email address type: string - employeenumber: + EmployeeNumber: description: Employee Number type: string - endday: + EndOfDay: description: Time day ends type: string - environment: + Environment: description: Environment type: string - extension: + Extension: description: Extension type: string - fabricapikey: + FabricAPIKey: description: Fabric API Key type: string - fax: + Fax: description: Fax type: string - firstname: + FirstName: description: The first name type: string - forecastenabled: + ForecastEnabled: description: Allow Forecasting type: boolean - fullphotourl: + FullPhotoURL: description: Full Photo URL type: string - id: - description: Taxnexus ID + ID: + description: Record ID type: string - isactive: + IsActive: description: Active type: boolean - isportalenabled: + IsPortalEnabled: description: Is the user enabled for Communities? type: boolean - isprofilephotoactive: + IsProphilePhotoActive: description: Has Profile Photo type: boolean - issystemcontrolled: + IsSystemControlled: type: boolean - lastip: - description: ip address of last login + LastIP: + description: IP address of last login type: string - lastlogin: - description: last login time + LastLogin: + description: Last login time type: string - lastmodifiedbyid: + LastModifiedByID: description: Last Modified User ID type: string - lastmodifieddate: + LastModifiedDate: description: Last Modified Date type: string - lastname: + LastName: description: The Last Name type: string - logincount: - description: number of times user has logged in + LoginCount: + description: Number of times user has logged in format: int64 type: number - managerid: + ManagerID: description: Manager type: string - mobilephone: + MobilePhone: description: Mobile type: string - name: + Name: description: Name type: string - outofofficemessage: + OutOfOfficeMessage: description: Out of office message type: string - phone: + Phone: description: Phone type: string - portalrole: + PortalRole: description: Portal Role Level type: string - profileid: + ProfileID: description: Profile type: string - receivesadmininfoemails: - description: Admin Info Emails - type: boolean - receivesinfoemails: + ReceivesAdminEmails: description: Info Emails type: boolean - senderemail: + ReceivesAdminInfoEmails: + description: Admin Info Emails + type: boolean + SenderEmail: description: Email Sender Address type: string - sendername: + SenderName: description: Email Sender Name type: string - signature: + Signature: description: Email Signature type: string - smallphotourl: + SmallPhotoURL: description: Small Photo URL type: string - startday: + StartOfDay: description: The time day starts type: string - taxnexusaccount: + TaxnexusAccount: description: Taxnexus Account type: string - timezonesidkey: - description: Time Zone + TenantID: + description: Tenant ID associated with this user type: string - title: - description: Title - type: string - username: - description: Username - type: string - userroleid: - description: Role - type: string - usertype: - description: User Type - type: string - userroles: - items: - $ref: "#/definitions/UserRole" - type: array - tenantusers: + TenantUsers: items: $ref: "#/definitions/TenantUser" type: array + TimeZone: + description: Time Zone + type: string + Title: + description: Title + type: string + UserRoleID: + description: Role + type: string + UserRoles: + items: + $ref: "#/definitions/UserRole" + type: array + UserType: + description: User Type + type: string + Username: + description: Username + type: string type: object UserResponse: description: An array of Print-Ready ingest Objects @@ -2394,18 +2548,41 @@ definitions: description: Relationship object that connects user to a role type: object properties: - description: + ID: type: string - description: Role description - roleid: + Auth0roleID: type: string - description: The Role ID - userid: + CreatedByID: type: string - description: The User ID - name: + CreatedDate: type: string - description: Role Name - auth0roleid: + x-nullable: true + Description: + type: string + LastModifiedByID: + type: string + LastModifiedDate: + type: string + x-nullable: true + Name: + type: string + RoleID: + type: string + UserID: + type: string + SalesforcePostResponse: + description: An array of Print-Ready ingest Objects + properties: + data: + items: + $ref: "#/definitions/SalesforcePost" + type: array + meta: + $ref: "#/definitions/ResponseMeta" + type: object + SalesforcePost: + description: Relationship object that connects user to a role + type: object + properties: + ID: type: string - description: Linked role ID diff --git a/swagger/stash-vernonkeenan.yaml b/swagger/stash-vernonkeenan.yaml index 8589f3e..3dbed59 100644 --- a/swagger/stash-vernonkeenan.yaml +++ b/swagger/stash-vernonkeenan.yaml @@ -1,13 +1,13 @@ swagger: "2.0" info: - version: 0.2.0 + version: 0.3.0 title: "stash" description: "PDF Storage Microservice" - termsOfService: "http://taxnexus.net/terms/" + termsOfService: "https://salesforcedevops.net/terms/" contact: - email: "noc@taxnexus.net" + email: "vern@vernonkeenan.com" license: - name: "Proprietary - Copyright (c) 2018-2021 by Taxnexus, Inc." + name: "Proprietary - Copyright (c) 2018-2023 by Vernon Keenan" securityDefinitions: ApiKeyAuth: type: "apiKey" @@ -52,7 +52,7 @@ responses: schema: $ref: "#/definitions/Error" PdfResponse: - description: Taxnexus Response with an array of pdfs + description: Response with an array of pdfs schema: $ref: "#/definitions/DocumentResponse" ServerError: @@ -172,7 +172,7 @@ definitions: RequestMeta: properties: TaxnexusAccount: - description: Taxnexus Account Number of the Reseller or OEM + description: Account Number of the Reseller or OEM type: string required: - TaxnexusAccount @@ -210,6 +210,6 @@ definitions: description: Backend Server Timestamp type: string TaxnexusAccount: - description: Taxnexus Account Number used for recording transactions + description: Account Number used for recording transactions type: string type: object