Changeset b4006dcc78eb…
Parent 6e79aa089705…
by Thai Nguyen
Changes to 28 files · Browse files at b4006dcc78eb Showing diff from parent 6e79aa089705 Diff from another changeset...
|
|
@@ -26,7 +26,7 @@ /// Used to retrieve an authentication token for NexPort API Requests.
/// </summary>
/// <remarks>
- /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -37,7 +37,7 @@ /// Used to retrieve an authentication token for NexPort API Requests.
/// </summary>
/// <remarks>
- /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -350,7 +350,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -364,7 +364,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -393,6 +393,30 @@ ApiResponse<SetCustomProfileFieldValuesResponse> AdminApiSetCustomProfileFieldValuesWithHttpInfo(string accessToken, SetCustomProfileFieldValuesRequest request);
/// <summary>
+ /// Sets the Subscription Status on the Subscription.
+ /// </summary>
+ /// <remarks>
+ /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </remarks>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>SetSubscriptionStatusResponse</returns>
+ SetSubscriptionStatusResponse AdminApiSetSubscriptionStatus(string accessToken, SetSubscriptionStatusRequest request);
+
+ /// <summary>
+ /// Sets the Subscription Status on the Subscription.
+ /// </summary>
+ /// <remarks>
+ /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </remarks>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>ApiResponse of SetSubscriptionStatusResponse</returns>
+ ApiResponse<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request);
+
+ /// <summary>
/// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
@@ -420,7 +444,7 @@ /// Used to retrieve an authentication token for NexPort API Requests.
/// </summary>
/// <remarks>
- /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -431,7 +455,7 @@ /// Used to retrieve an authentication token for NexPort API Requests.
/// </summary>
/// <remarks>
- /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -744,7 +768,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -758,7 +782,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -787,6 +811,30 @@ Task<ApiResponse<SetCustomProfileFieldValuesResponse>> AdminApiSetCustomProfileFieldValuesAsyncWithHttpInfo(string accessToken, SetCustomProfileFieldValuesRequest request);
/// <summary>
+ /// Sets the Subscription Status on the Subscription.
+ /// </summary>
+ /// <remarks>
+ /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </remarks>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>Task of SetSubscriptionStatusResponse</returns>
+ Task<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusAsync(string accessToken, SetSubscriptionStatusRequest request);
+
+ /// <summary>
+ /// Sets the Subscription Status on the Subscription.
+ /// </summary>
+ /// <remarks>
+ /// Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </remarks>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>Task of ApiResponse (SetSubscriptionStatusResponse)</returns>
+ Task<ApiResponse<SetSubscriptionStatusResponse>> AdminApiSetSubscriptionStatusAsyncWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request);
+
+ /// <summary>
/// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
@@ -919,7 +967,7 @@ }
/// <summary>
- /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -931,7 +979,7 @@ }
/// <summary>
- /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -973,7 +1021,7 @@ }
/// <summary>
- /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -985,7 +1033,7 @@ }
/// <summary>
- /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the \"application/x-www-form-urlencoded\" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
+ /// Used to retrieve an authentication token for NexPort API Requests. Used to retrieve an authentication token for NexPort API Requests. Will not work for system operators or users with the customer service role. The client makes a request to the token endpoint by adding the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="request">Contains user's NexPort login credentials</param>
@@ -3477,7 +3525,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -3495,7 +3543,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -3607,7 +3655,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -3625,7 +3673,7 @@ /// Returns a list of organizations and groups that matches the search term with their name or short name. Each item in the list will contain the id of the organization/group, name, short name and the type. Results are in alphabetical order by name followed by the short name.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
- /// <param name="searchOperator"></param>
+ /// <param name="searchOperator">0 = Disjunction, 1 = Conjunction</param>
/// <param name="baseOrgId"></param>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
/// <param name="name">The organization/group name (optional)</param>
@@ -3870,6 +3918,142 @@ }
/// <summary>
+ /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </summary>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>SetSubscriptionStatusResponse</returns>
+ public SetSubscriptionStatusResponse AdminApiSetSubscriptionStatus(string accessToken, SetSubscriptionStatusRequest request)
+ {
+ var localVarResponse = AdminApiSetSubscriptionStatusWithHttpInfo(accessToken, request);
+ return localVarResponse.Data;
+ }
+
+ /// <summary>
+ /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </summary>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>ApiResponse of SetSubscriptionStatusResponse</returns>
+ public ApiResponse<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request)
+ {
+ // verify the required parameter 'accessToken' is set
+ if (accessToken == null)
+ throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApi->AdminApiSetSubscriptionStatus");
+
+ // verify the required parameter 'request' is set
+ if (request == null)
+ throw new ApiException(400, "Missing required parameter 'request' when calling AdminApi->AdminApiSetSubscriptionStatus");
+
+ var localVarRequestOptions = new RequestOptions();
+
+ var contentTypes = new[] {
+ "application/json",
+ "text/json"
+ };
+
+ // to determine the Accept header
+ var accepts = new[] {
+ "application/json",
+ "text/json"
+ };
+
+ var localVarContentType = ClientUtils.SelectHeaderContentType(contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = ClientUtils.SelectHeaderAccept(accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+ foreach (var kvp in ClientUtils.ParameterToMultiMap("", "access_token", accessToken))
+ {
+ foreach (var kvpValue in kvp.Value)
+ {
+ localVarRequestOptions.QueryParameters.Add(kvp.Key, kvpValue);
+ }
+ }
+
+ localVarRequestOptions.Data = request;
+
+ // make the HTTP request
+ var localVarResponse = Client.Post<SetSubscriptionStatusResponse>("/api/v1/AdminApi/SetSubscriptionStatus", localVarRequestOptions, Configuration);
+
+ var exception = ExceptionFactory?.Invoke("AdminApiSetSubscriptionStatus", localVarResponse);
+ if (exception != null) throw exception;
+
+ return localVarResponse;
+ }
+
+ /// <summary>
+ /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </summary>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>Task of SetSubscriptionStatusResponse</returns>
+ public async Task<SetSubscriptionStatusResponse> AdminApiSetSubscriptionStatusAsync(string accessToken, SetSubscriptionStatusRequest request)
+ {
+ var localVarResponse = await AdminApiSetSubscriptionStatusAsyncWithHttpInfo(accessToken, request);
+ return localVarResponse.Data;
+ }
+
+ /// <summary>
+ /// Sets the Subscription Status on the Subscription. Sets the subscription status for the supplied subscriber. Subscription status name is case sensitive and must be a pre existing status. This action will not create a status that does not exist. You can send an empty string for the subscription status if you want to set it back to the default subscription status. ###Permissions Requirements Requires the Update Subscriptions permission in the specified org or an ancestor.
+ /// </summary>
+ /// <exception cref="ApiException">Thrown when fails to make API call</exception>
+ /// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
+ /// <param name="request">Contains subscription id and subscription status name</param>
+ /// <returns>Task of ApiResponse (SetSubscriptionStatusResponse)</returns>
+ public async Task<ApiResponse<SetSubscriptionStatusResponse>> AdminApiSetSubscriptionStatusAsyncWithHttpInfo(string accessToken, SetSubscriptionStatusRequest request)
+ {
+ // verify the required parameter 'accessToken' is set
+ if (accessToken == null)
+ throw new ApiException(400, "Missing required parameter 'accessToken' when calling AdminApi->AdminApiSetSubscriptionStatus");
+
+ // verify the required parameter 'request' is set
+ if (request == null)
+ throw new ApiException(400, "Missing required parameter 'request' when calling AdminApi->AdminApiSetSubscriptionStatus");
+
+ var localVarRequestOptions = new RequestOptions();
+
+ var contentTypes = new[] {
+ "application/json",
+ "text/json"
+ };
+
+ // to determine the Accept header
+ var accepts = new[] {
+ "application/json",
+ "text/json"
+ };
+
+ foreach (var contentType in contentTypes)
+ localVarRequestOptions.HeaderParameters.Add("Content-Type", contentType);
+
+ foreach (var accept in accepts)
+ localVarRequestOptions.HeaderParameters.Add("Accept", accept);
+
+ foreach (var kvp in ClientUtils.ParameterToMultiMap("", "access_token", accessToken))
+ {
+ foreach (var kvpValue in kvp.Value)
+ {
+ localVarRequestOptions.QueryParameters.Add(kvp.Key, kvpValue);
+ }
+ }
+
+ localVarRequestOptions.Data = request;
+
+ // make the HTTP request
+ var localVarResponse = await AsynchronousClient.PostAsync<SetSubscriptionStatusResponse>("/api/v1/AdminApi/SetSubscriptionStatus", localVarRequestOptions, Configuration);
+
+ var exception = ExceptionFactory?.Invoke("AdminApiSetSubscriptionStatus", localVarResponse);
+ if (exception != null) throw exception;
+
+ return localVarResponse;
+ }
+
+ /// <summary>
/// Used to determine whether an access token is valid or not. Returns either the expiration date or a message describing why the token is invalid. If there is no expiration on the token, then it will just return the generic api_error_entity with the no error error code.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
|
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
|
|
@@ -112,7 +112,7 @@ ApiResponse<CommitInvoiceResponse> PointOfSaleApiCommitInvoiceTransactionWithHttpInfo(string accessToken, CommitInvoiceRequest request);
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -121,7 +121,7 @@ GetInvoiceResponse PointOfSaleApiGetInvoice(Guid invoiceId, string accessToken);
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -130,7 +130,7 @@ ApiResponse<GetInvoiceResponse> PointOfSaleApiGetInvoiceWithHttpInfo(Guid invoiceId, string accessToken);
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -139,7 +139,7 @@ InvoiceRedemptionResponse PointOfSaleApiGetInvoiceRedemption(Guid invoiceItemId, string accessToken);
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -264,7 +264,7 @@ Task<ApiResponse<CommitInvoiceResponse>> PointOfSaleApiCommitInvoiceTransactionAsyncWithHttpInfo(string accessToken, CommitInvoiceRequest request);
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -273,7 +273,7 @@ Task<GetInvoiceResponse> PointOfSaleApiGetInvoiceAsync(Guid invoiceId, string accessToken);
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -282,7 +282,7 @@ Task<ApiResponse<GetInvoiceResponse>> PointOfSaleApiGetInvoiceAsyncWithHttpInfo(Guid invoiceId, string accessToken);
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -291,7 +291,7 @@ Task<InvoiceRedemptionResponse> PointOfSaleApiGetInvoiceRedemptionAsync(Guid invoiceItemId, string accessToken);
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -1114,7 +1114,7 @@ }
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -1127,7 +1127,7 @@ }
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -1182,7 +1182,7 @@ }
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -1195,7 +1195,7 @@ }
/// <summary>
- /// Gets an invoice and it's list of invoice items'.
+ /// Gets an invoice and it's list of invoice items.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceId"></param>
@@ -1250,7 +1250,7 @@ }
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -1263,7 +1263,7 @@ }
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -1318,7 +1318,7 @@ }
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
@@ -1331,7 +1331,7 @@ }
/// <summary>
- /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
+ /// Gets the invoice redemption information corresponding to the given invoice item. Requires current user to be sales agent on the invoice OR current user to be purchasing agent on the invoice OR the Manage Invoices permission in the invoice item's invoice organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="invoiceItemId"></param>
|
@@ -23,7 +23,7 @@ {
#region Synchronous Operations
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -32,7 +32,7 @@ EditScormDataResponse ScormApiEditScormData(string accessToken, EditScormDataRequest request);
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -71,7 +71,7 @@ {
#region Asynchronous Operations
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -80,7 +80,7 @@ Task<EditScormDataResponse> ScormApiEditScormDataAsync(string accessToken, EditScormDataRequest request);
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -227,7 +227,7 @@ }
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -240,7 +240,7 @@ }
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -295,7 +295,7 @@ }
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
@@ -308,7 +308,7 @@ }
/// <summary>
- /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
+ /// Edits data for a student's SCORM courseware attempt and corresponding history (if applicable) based on the supplied assignment status id and SCO id. If a field is not passed in, the value will remain unchanged. Requires the Update Section Enrollments permission in the assignment status enrollment organization or an ancestor.
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="accessToken">Use the AdminApi Authenticate method to get the access_token</param>
|
@@ -397,7 +397,7 @@ }
InterceptRequest(req);
- var response = await client.ExecuteTaskAsync<T>(req);
+ var response = await client.ExecuteAsync<T>(req);
InterceptResponse(req, response);
var result = toApiResponse(response);
|
|
@@ -8,9 +8,9 @@ * Generated by: https://github.com/openapitools/openapi-generator.git
*/
-using RestSharp;
using System;
using System.Collections.Generic;
+using RestSharp;
namespace NexportApi.Client
{
|
@@ -26,20 +26,11 @@ {
/// <summary>
/// Used to denote the kind of error that occurred, if any.
- /// NoError=0;
- /// UnknownError=1;
- /// ValidationError=2;
- /// ItemNotFound=3;
- /// AuthenticationError=4;
- /// AuthorizationError=5;
+ /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error
/// </summary>
- /// <value>Used to denote the kind of error that occurred, if any.
- /// NoError=0;
- /// UnknownError=1;
- /// ValidationError=2;
- /// ItemNotFound=3;
- /// AuthenticationError=4;
- /// AuthorizationError=5;
+ /// <value>
+ /// Used to denote the kind of error that occurred, if any.
+ /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error
/// </value>
public enum ErrorCodeEnum
{
@@ -64,7 +55,6 @@ /// <summary>
/// Enum ItemNotFound for value: 3
/// </summary>
- //[EnumMember(Value = "3")]
[Display(Name = "Item Not Found")]
ItemNotFound = 3,
@@ -83,20 +73,11 @@
/// <summary>
/// Used to denote the kind of error that occurred, if any.
- /// NoError=0;
- /// UnknownError=1;
- /// ValidationError=2;
- /// ItemNotFound=3;
- /// AuthenticationError=4;
- /// AuthorizationError=5;
+ /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error
/// </summary>
- /// <value>Used to denote the kind of error that occurred, if any.
- /// NoError=0;
- /// UnknownError=1;
- /// ValidationError=2;
- /// ItemNotFound=3;
- /// AuthenticationError=4;
- /// AuthorizationError=5;
+ /// <value>
+ /// Used to denote the kind of error that occurred, if any.
+ /// 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error
/// </value>
[DataMember(Name = "error_code", EmitDefaultValue = true)]
public ErrorCodeEnum ErrorCode { get; set; }
@@ -105,10 +86,11 @@ /// </summary>
[JsonConstructor]
protected ApiErrorEntity() { }
+
/// <summary>
/// Initializes a new instance of the <see cref="ApiErrorEntity" /> class.
/// </summary>
- /// <param name="errorCode">Used to denote the kind of error that occurred, if any. NoError=0; UnknownError=1; ValidationError=2; ItemNotFound=3; AuthenticationError=4; AuthorizationError=5; (required).</param>
+ /// <param name="errorCode">Used to denote the kind of error that occurred, if any. 0 = No Error, 1 = Unknown Error, 2 = Validation Error, 3 = Item Not Found, 4 = Authentication Error, 5 = Authorization Error (required).</param>
/// <param name="errorMessage">Message describing what caused the error to occur.</param>
public ApiErrorEntity(ErrorCodeEnum errorCode = default, string errorMessage = default)
{
|
@@ -141,13 +141,12 @@ /// <param name="assignmentType">The type of assignment. Can be any of the following: Courseware Assignment; Discussion Assignment; Media Assignment; Quality Assurance Assignment; Swappable Assignment; Test Assignment; Survey Assignment; Writing Assignment; Student Input Assignment; (required).</param>
/// <param name="attemptLimit">For test assignments, how many attempts a student is allowed before they are no longer able to take the test.</param>
/// <param name="apiErrorEntity">apiErrorEntity (required).</param>
- public AssignmentResponse(Guid assignmentId = default, string title = default, int pacingDurationHours = default, double weight = default, int dueDateDeduction = default, DueDateStrategyEnum? dueDateStrategy = default, DateTime utcDueDate = default, DateTime utcStartDate = default, int lockOutHours = default, DateTime? utcDateModified = default, DateTime? utcDateAdded = default, GradingStrategyEnum? gradingStrategy = default, double maxScore = default, double masteryScore = default, long? displayOrder = default, string assignmentType = default, int? attemptLimit = default, ApiErrorEntity apiErrorEntity = default)
+ public AssignmentResponse(Guid assignmentId = default, string title = default, int pacingDurationHours = default, double weight = default, int dueDateDeduction = default, DueDateStrategyEnum? dueDateStrategy = default, DateTime utcDueDate = default, DateTime utcStartDate = default, int lockOutHours = default, DateTime utcDateModified = default, DateTime utcDateAdded = default, GradingStrategyEnum? gradingStrategy = default, double maxScore = default, double masteryScore = default, long? displayOrder = default, string assignmentType = default, int? attemptLimit = default, ApiErrorEntity apiErrorEntity = default)
{
AssignmentId = assignmentId;
// to ensure "title" is required (not null)
Title = title ?? throw new InvalidDataException("title is a required property for AssignmentResponse and cannot be null");
-
PacingDurationHours = pacingDurationHours;
Weight = weight;
DueDateDeduction = dueDateDeduction;
@@ -210,14 +209,14 @@ /// </summary>
/// <value>When the assignment is due</value>
[DataMember(Name = "utc_due_date", EmitDefaultValue = false)]
- public DateTime UtcDueDate { get; set; }
+ public DateTime? UtcDueDate { get; set; }
/// <summary>
/// When the assignment becomes available
/// </summary>
/// <value>When the assignment becomes available</value>
[DataMember(Name = "utc_start_date", EmitDefaultValue = false)]
- public DateTime UtcStartDate { get; set; }
+ public DateTime? UtcStartDate { get; set; }
/// <summary>
/// The number of hours that must pass since the enrollment date before this assignment is available.
@@ -231,14 +230,14 @@ /// </summary>
/// <value>When the assignment was last modified</value>
[DataMember(Name = "utc_date_modified", EmitDefaultValue = false)]
- public DateTime? UtcDateModified { get; set; }
+ public DateTime UtcDateModified { get; set; }
/// <summary>
/// When this assignment was added
/// </summary>
/// <value>When this assignment was added</value>
[DataMember(Name = "utc_date_added", EmitDefaultValue = false)]
- public DateTime? UtcDateAdded { get; set; }
+ public DateTime UtcDateAdded { get; set; }
/// <summary>
/// The highest attainable score for this assignment
@@ -382,13 +381,11 @@ ) &&
(
UtcDateModified == input.UtcDateModified ||
- (UtcDateModified != null &&
- UtcDateModified.Equals(input.UtcDateModified))
+ (UtcDateModified.Equals(input.UtcDateModified))
) &&
(
UtcDateAdded == input.UtcDateAdded ||
- (UtcDateAdded != null &&
- UtcDateAdded.Equals(input.UtcDateAdded))
+ (UtcDateAdded.Equals(input.UtcDateAdded))
) &&
(
GradingStrategy == input.GradingStrategy ||
@@ -445,10 +442,8 @@ if (UtcStartDate != null)
hashCode = hashCode * 59 + UtcStartDate.GetHashCode();
hashCode = hashCode * 59 + LockOutHours.GetHashCode();
- if (UtcDateModified != null)
- hashCode = hashCode * 59 + UtcDateModified.GetHashCode();
- if (UtcDateAdded != null)
- hashCode = hashCode * 59 + UtcDateAdded.GetHashCode();
+ hashCode = hashCode * 59 + UtcDateModified.GetHashCode();
+ hashCode = hashCode * 59 + UtcDateAdded.GetHashCode();
hashCode = hashCode * 59 + GradingStrategy.GetHashCode();
hashCode = hashCode * 59 + MaxScore.GetHashCode();
hashCode = hashCode * 59 + MasteryScore.GetHashCode();
|
@@ -41,13 +41,13 @@ /// <param name="apiErrorEntity">apiErrorEntity (required).</param>
public AssignmentSessionsResponse(List<AssignmentSession> sessions = default, int page = default, int pageSize = default, int totalCount = default, ApiErrorEntity apiErrorEntity = default)
{
- // to ensure "apiErrorEntity" is required (not null)
- ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentSessionsResponse and cannot be null");
-
- Sessions = sessions;
+ Sessions = sessions;
Page = page;
PageSize = pageSize;
TotalCount = totalCount;
+
+ // to ensure "apiErrorEntity" is required (not null)
+ ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentSessionsResponse and cannot be null");
}
/// <summary>
@@ -132,7 +132,8 @@ return
(
Sessions == input.Sessions ||
- Sessions != null && Sessions.SequenceEqual(input.Sessions)
+ Sessions != null &&
+ Sessions.SequenceEqual(input.Sessions)
) &&
(
Page == input.Page ||
@@ -183,5 +184,4 @@ yield break;
}
}
-
}
|
|
|
@@ -26,115 +26,25 @@ {
/// <summary>
/// The state of an activity.
- /// NotStarted=0;
- /// InProgress=1;
- /// Finished=2;
- /// ToBeGraded=15;
- /// ResubmitRequired=16;
+ /// 0 = Not Started, 1 = In Progress, 2 = Finished, 15 = To Be Graded, 16 = Resubmit Required
/// </summary>
- /// <value>The state of an activity.
- /// NotStarted=0;
- /// InProgress=1;
- /// Finished=2;
- /// ToBeGraded=15;
- /// ResubmitRequired=16;
+ /// <value>
+ /// The state of an activity.
+ /// 0 = Not Started, 1 = In Progress, 2 = Finished, 15 = To Be Graded, 16 = Resubmit Required
/// </value>
- public enum PhaseEnum
- {
- /// <summary>
- /// Enum NotStarted for value: 0
- /// </summary>
- [Display(Name = "Not started")]
- NotStarted = 0,
-
- /// <summary>
- /// Enum InProgress for value: 1
- /// </summary>
- [Display(Name = "In progress")]
- InProgress = 1,
-
- /// <summary>
- /// Enum Finished for value: 2
- /// </summary>
- [Display(Name = "Finished")]
- Finished = 2,
-
- /// <summary>
- /// Enum ToBeGraded for value: 15
- /// </summary>
- [Display(Name = "To be graded")]
- ToBeGraded = 15,
-
- /// <summary>
- /// Enum ResubmitRequired for value: 16
- /// </summary>
- [Display(Name = "Resubmit required")]
- ResubmitRequired = 16
- }
-
- /// <summary>
- /// The state of an activity.
- /// NotStarted=0;
- /// InProgress=1;
- /// Finished=2;
- /// ToBeGraded=15;
- /// ResubmitRequired=16;
- /// </summary>
- /// <value>The state of an activity.
- /// NotStarted=0;
- /// InProgress=1;
- /// Finished=2;
- /// ToBeGraded=15;
- /// ResubmitRequired=16;
- /// </value>
- [DataMember(Name = "phase", EmitDefaultValue = true)]
- public PhaseEnum Phase { get; set; }
+ [DataMember(Name = "phase", EmitDefaultValue = false)]
+ public Enums.PhaseEnum Phase { get; set; }
/// <summary>
/// When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is.
- /// NotGraded=0;
- /// Passing=1;
- /// Failing=2;
+ /// 0 = Not Graded, 1 = Passed, 2 = Failed
/// </summary>
- /// <value>When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is.
- /// NotGraded=0;
- /// Passing=1;
- /// Failing=2;
+ /// <value>
+ /// When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is.
+ /// 0 = Not Graded, 1 = Passed, 2 = Failed
/// </value>
- public enum ResultEnum
- {
- /// <summary>
- /// Enum NotGraded for value: 0
- /// </summary>
- [Display(Name = "Not graded")]
- NotGraded = 0,
-
- /// <summary>
- /// Enum Passing for value: 1
- /// </summary>
- [Display(Name = "Passing")]
- Passing = 1,
-
- /// <summary>
- /// Enum Failing for value: 2
- /// </summary>
- [Display(Name = "Failing")]
- Failing = 2
- }
-
- /// <summary>
- /// When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is.
- /// NotGraded=0;
- /// Passing=1;
- /// Failing=2;
- /// </summary>
- /// <value>When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is.
- /// NotGraded=0;
- /// Passing=1;
- /// Failing=2;
- /// </value>
- [DataMember(Name = "result", EmitDefaultValue = true)]
- public ResultEnum Result { get; set; }
+ [DataMember(Name = "result", EmitDefaultValue = false)]
+ public Enums.ResultEnum Result { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="AssignmentStatusResponseItem" /> class.
@@ -146,10 +56,9 @@ /// Initializes a new instance of the <see cref="AssignmentStatusResponseItem" /> class.
/// </summary>
/// <param name="assignmentStatusId">Id of the assignment status (required).</param>
- /// <param name="phase">The state of an activity. NotStarted=0; InProgress=1; Finished=2; ToBeGraded=15; ResubmitRequired=16; (required).</param>
- /// <param name="result">When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. NotGraded=0; Passing=1; Failing=2; (required).</param>
+ /// <param name="phase">The state of an activity. 0 = Not Started, 1 = In Progress, 2 = Finished, 15 = To Be Graded, 16 = Resubmit Required (required).</param>
+ /// <param name="result">When an Activity/Enrollment is in the completed state an ActivityResult describes what the end result is. 0 = Not Graded, 1 = Passed, 2 = Failed (required).</param>
/// <param name="resubmitRequiredReason">Why the assignment must be resubmitted (if applicable).</param>
- /// <param name="score">The score for this assignment or null if no score.</param>
/// <param name="academicOverride">True if this assignment has been academically overridden by an admin (required).</param>
/// <param name="academicOverrideReason">Why the assignment was academically overridden (if applicable).</param>
/// <param name="utcCreationDate">When this assignment status was created (required).</param>
@@ -161,8 +70,15 @@ /// <param name="assignmentId">Id of the assignment for this assignment status (required).</param>
/// <param name="enrollmentId">Id of the enrollment for this assignment status (required).</param>
/// <param name="userId">Id of the user tied to the assignment status enrollment (required).</param>
+ /// <param name="enrollmentScore">The Score of this enrollment.</param>
+ /// <param name="enrollmentMaxScore">The Max Score of this enrollment.</param>
+ /// <param name="assignmentScore">The Score of this assignment.</param>
+ /// <param name="assignmentMaxScore">The Max Score of this assignment.</param>
+ /// <param name="assignmentMasteryScore">The Mastery Score of this assignment.</param>
+ /// <param name="assignmentWeight">The Weight of this assignment.</param>
+ /// <param name="assignmentWeightedScore">The Weighted Score of this assignment.</param>
/// <param name="apiErrorEntity">apiErrorEntity (required).</param>
- public AssignmentStatusResponseItem(Guid assignmentStatusId = default, PhaseEnum phase = default, ResultEnum result = default, string resubmitRequiredReason = default, int? score = default, bool academicOverride = default, string academicOverrideReason = default, DateTime utcCreationDate = default, DateTime? utcFirstActivityDate = default, DateTime? utcLastActivityDate = default, DateTime? utcCompletionDate = default, Guid? academicOverrideAdminId = default, Guid? gradeGivenById = default, Guid assignmentId = default, Guid enrollmentId = default, Guid userId = default, ApiErrorEntity apiErrorEntity = default)
+ public AssignmentStatusResponseItem(Guid assignmentStatusId = default, Enums.PhaseEnum phase = default, Enums.ResultEnum result = default, string resubmitRequiredReason = default, bool academicOverride = default, string academicOverrideReason = default, DateTime utcCreationDate = default, DateTime? utcFirstActivityDate = default, DateTime? utcLastActivityDate = default, DateTime? utcCompletionDate = default, Guid? academicOverrideAdminId = default, Guid? gradeGivenById = default, Guid assignmentId = default, Guid enrollmentId = default, Guid userId = default, int? enrollmentScore = default, double? enrollmentMaxScore = default, int? assignmentScore = default, double? assignmentMaxScore = default, double? assignmentMasteryScore = default, double? assignmentWeight = default, decimal? assignmentWeightedScore = default, ApiErrorEntity apiErrorEntity = default)
{
AssignmentStatusId = assignmentStatusId;
Phase = phase;
@@ -172,18 +88,23 @@ AssignmentId = assignmentId;
EnrollmentId = enrollmentId;
UserId = userId;
-
- // to ensure "apiErrorEntity" is required (not null)
- ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentStatusResponseItem and cannot be null");
-
ResubmitRequiredReason = resubmitRequiredReason;
- Score = score;
AcademicOverrideReason = academicOverrideReason;
UtcFirstActivityDate = utcFirstActivityDate;
UtcLastActivityDate = utcLastActivityDate;
UtcCompletionDate = utcCompletionDate;
AcademicOverrideAdminId = academicOverrideAdminId;
GradeGivenById = gradeGivenById;
+ EnrollmentScore = enrollmentScore;
+ EnrollmentMaxScore = enrollmentMaxScore;
+ AssignmentScore = assignmentScore;
+ AssignmentMaxScore = assignmentMaxScore;
+ AssignmentMasteryScore = assignmentMasteryScore;
+ AssignmentWeight = assignmentWeight;
+ AssignmentWeightedScore = assignmentWeightedScore;
+
+ // to ensure "apiErrorEntity" is required (not null)
+ ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AssignmentStatusResponseItem and cannot be null");
}
/// <summary>
@@ -201,13 +122,6 @@ public string ResubmitRequiredReason { get; set; }
/// <summary>
- /// The score for this assignment or null if no score
- /// </summary>
- /// <value>The score for this assignment or null if no score</value>
- [DataMember(Name = "score", EmitDefaultValue = false)]
- public int? Score { get; set; }
-
- /// <summary>
/// True if this assignment has been academically overridden by an admin
/// </summary>
/// <value>True if this assignment has been academically overridden by an admin</value>
@@ -285,6 +199,55 @@ public Guid UserId { get; set; }
/// <summary>
+ /// The Score of this enrollment
+ /// </summary>
+ /// <value>The Score of this enrollment</value>
+ [DataMember(Name = "enrollment_score", EmitDefaultValue = false)]
+ public int? EnrollmentScore { get; set; }
+
+ /// <summary>
+ /// The Max Score of this enrollment
+ /// </summary>
+ /// <value>The Max Score of this enrollment</value>
+ [DataMember(Name = "enrollment_max_score", EmitDefaultValue = false)]
+ public double? EnrollmentMaxScore { get; set; }
+
+ /// <summary>
+ /// The Score of this assignment
+ /// </summary>
+ /// <value>The Score of this assignment</value>
+ [DataMember(Name = "assignment_score", EmitDefaultValue = false)]
+ public int? AssignmentScore { get; set; }
+
+ /// <summary>
+ /// The Max Score of this assignment
+ /// </summary>
+ /// <value>The Max Score of this assignment</value>
+ [DataMember(Name = "assignment_max_score", EmitDefaultValue = false)]
+ public double? AssignmentMaxScore { get; set; }
+
+ /// <summary>
+ /// The Mastery Score of this assignment
+ /// </summary>
+ /// <value>The Mastery Score of this assignment</value>
+ [DataMember(Name = "assignment_mastery_score", EmitDefaultValue = false)]
+ public double? AssignmentMasteryScore { get; set; }
+
+ /// <summary>
+ /// The Weight of this assignment
+ /// </summary>
+ /// <value>The Weight of this assignment</value>
+ [DataMember(Name = "assignment_weight", EmitDefaultValue = false)]
+ public double? AssignmentWeight { get; set; }
+
+ /// <summary>
+ /// The Weighted Score of this assignment
+ /// </summary>
+ /// <value>The Weighted Score of this assignment</value>
+ [DataMember(Name = "assignment_weighted_score", EmitDefaultValue = false)]
+ public decimal? AssignmentWeightedScore { get; set; }
+
+ /// <summary>
/// Gets or Sets ApiErrorEntity
/// </summary>
[DataMember(Name = "api_error_entity", EmitDefaultValue = false)]
@@ -302,7 +265,6 @@ sb.Append(" Phase: ").Append(Phase).Append("\n");
sb.Append(" Result: ").Append(Result).Append("\n");
sb.Append(" ResubmitRequiredReason: ").Append(ResubmitRequiredReason).Append("\n");
- sb.Append(" Score: ").Append(Score).Append("\n");
sb.Append(" AcademicOverride: ").Append(AcademicOverride).Append("\n");
sb.Append(" AcademicOverrideReason: ").Append(AcademicOverrideReason).Append("\n");
sb.Append(" UtcCreationDate: ").Append(UtcCreationDate).Append("\n");
@@ -314,6 +276,13 @@ sb.Append(" AssignmentId: ").Append(AssignmentId).Append("\n");
sb.Append(" EnrollmentId: ").Append(EnrollmentId).Append("\n");
sb.Append(" UserId: ").Append(UserId).Append("\n");
+ sb.Append(" EnrollmentScore: ").Append(EnrollmentScore).Append("\n");
+ sb.Append(" EnrollmentMaxScore: ").Append(EnrollmentMaxScore).Append("\n");
+ sb.Append(" AssignmentScore: ").Append(AssignmentScore).Append("\n");
+ sb.Append(" AssignmentMaxScore: ").Append(AssignmentMaxScore).Append("\n");
+ sb.Append(" AssignmentMasteryScore: ").Append(AssignmentMasteryScore).Append("\n");
+ sb.Append(" AssignmentWeight: ").Append(AssignmentWeight).Append("\n");
+ sb.Append(" AssignmentWeightedScore: ").Append(AssignmentWeightedScore).Append("\n");
sb.Append(" ApiErrorEntity: ").Append(ApiErrorEntity).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -367,11 +336,6 @@ ResubmitRequiredReason.Equals(input.ResubmitRequiredReason))
) &&
(
- Score == input.Score ||
- (Score != null &&
- Score.Equals(input.Score))
- ) &&
- (
AcademicOverride == input.AcademicOverride ||
AcademicOverride.Equals(input.AcademicOverride)
) &&
@@ -422,6 +386,40 @@ (UserId.Equals(input.UserId))
) &&
(
+ EnrollmentScore == input.EnrollmentScore ||
+ (EnrollmentScore != null &&
+ EnrollmentScore.Equals(input.EnrollmentScore))
+ ) &&
+ (
+ EnrollmentMaxScore == input.EnrollmentMaxScore ||
+ (EnrollmentMaxScore != null &&
+ EnrollmentMaxScore.Equals(input.EnrollmentMaxScore))
+ ) &&
+ (
+ AssignmentScore == input.AssignmentScore ||
+ (AssignmentScore != null &&
+ AssignmentScore.Equals(input.AssignmentScore))
+ ) &&
+ (
+ AssignmentMaxScore == input.AssignmentMaxScore ||
+ (AssignmentMaxScore != null &&
+ AssignmentMaxScore.Equals(input.AssignmentMaxScore))
+ ) &&
+ (
+ AssignmentMasteryScore == input.AssignmentMasteryScore ||
+ (AssignmentMasteryScore != null &&
+ AssignmentMasteryScore.Equals(input.AssignmentMasteryScore))
+ ) &&
+ (
+ AssignmentWeight == input.AssignmentWeight ||
+ (AssignmentWeight != null &&
+ AssignmentWeight.Equals(input.AssignmentWeight))
+ ) &&
+ (
+ AssignmentWeightedScore == input.AssignmentWeightedScore ||
+ AssignmentWeightedScore.Equals(input.AssignmentWeightedScore)
+ ) &&
+ (
ApiErrorEntity.Equals(input.ApiErrorEntity) ||
(ApiErrorEntity != null &&
ApiErrorEntity.Equals(input.ApiErrorEntity))
@@ -442,8 +440,6 @@ hashCode = hashCode * 59 + Result.GetHashCode();
if (ResubmitRequiredReason != null)
hashCode = hashCode * 59 + ResubmitRequiredReason.GetHashCode();
- if (Score != null)
- hashCode = hashCode * 59 + Score.GetHashCode();
hashCode = hashCode * 59 + AcademicOverride.GetHashCode();
if (AcademicOverrideReason != null)
hashCode = hashCode * 59 + AcademicOverrideReason.GetHashCode();
@@ -461,6 +457,20 @@ hashCode = hashCode * 59 + AssignmentId.GetHashCode();
hashCode = hashCode * 59 + EnrollmentId.GetHashCode();
hashCode = hashCode * 59 + UserId.GetHashCode();
+ if (EnrollmentScore != null)
+ hashCode = hashCode * 59 + EnrollmentScore.GetHashCode();
+ if (EnrollmentMaxScore != null)
+ hashCode = hashCode * 59 + EnrollmentMaxScore.GetHashCode();
+ if (AssignmentScore != null)
+ hashCode = hashCode * 59 + AssignmentScore.GetHashCode();
+ if (AssignmentMaxScore != null)
+ hashCode = hashCode * 59 + AssignmentMaxScore.GetHashCode();
+ if (AssignmentMasteryScore != null)
+ hashCode = hashCode * 59 + AssignmentMasteryScore.GetHashCode();
+ if (AssignmentWeight != null)
+ hashCode = hashCode * 59 + AssignmentWeight.GetHashCode();
+ if (AssignmentWeightedScore != null)
+ hashCode = hashCode * 59 + AssignmentWeightedScore.GetHashCode();
if (ApiErrorEntity != null)
hashCode = hashCode * 59 + ApiErrorEntity.GetHashCode();
return hashCode;
|
@@ -46,7 +46,6 @@
// to ensure "apiErrorEntity" is required (not null)
ApiErrorEntity = apiErrorEntity ?? throw new InvalidDataException("apiErrorEntity is a required property for AuthenticationTokenResponse and cannot be null");
-
ExpiresIn = expiresIn;
}
|
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
@@ -39,7 +39,7 @@ /// <param name="orgId">Id of the organization in which the category belongs to (required).</param>
/// <param name="parentCategoryId">Id of the category's parent category (required).</param>
/// <param name="dateCreated">When this category was created.</param>
- public CategoryResponseItem(Guid categoryId = default, string name = default, Guid catalogId = default, Guid orgId = default, Guid parentCategoryId = default, DateTime? dateCreated = default)
+ public CategoryResponseItem(Guid categoryId = default, string name = default, Guid catalogId = default, Guid orgId = default, Guid parentCategoryId = default, DateTime dateCreated = default)
{
CategoryId = categoryId;
@@ -92,7 +92,7 @@ /// </summary>
/// <value>When this category was created</value>
[DataMember(Name = "date_created", EmitDefaultValue = false)]
- public DateTime? DateCreated { get; set; }
+ public DateTime DateCreated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@@ -165,8 +165,7 @@ ) &&
(
DateCreated == input.DateCreated ||
- (DateCreated != null &&
- DateCreated.Equals(input.DateCreated))
+ (DateCreated.Equals(input.DateCreated))
);
}
@@ -185,8 +184,7 @@ hashCode = hashCode * 59 + CatalogId.GetHashCode();
hashCode = hashCode * 59 + OrgId.GetHashCode();
hashCode = hashCode * 59 + ParentCategoryId.GetHashCode();
- if (DateCreated != null)
- hashCode = hashCode * 59 + DateCreated.GetHashCode();
+ hashCode = hashCode * 59 + DateCreated.GetHashCode();
return hashCode;
}
}
|
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
This file's diff was not loaded because this changeset is very large. Load changes Loading... |
Loading...