@@ -295,6 +295,20 @@ export interface paths {
295295 */
296296 get : operations [ "api_v1_learner_credit_requests_retrieve" ] ;
297297 } ;
298+ "/api/v1/learner-credit-requests/approve/" : {
299+ /**
300+ * Approve a learner credit request.
301+ * @description Approve a learner credit request.
302+ */
303+ post : operations [ "api_v1_learner_credit_requests_approve_create" ] ;
304+ } ;
305+ "/api/v1/learner-credit-requests/cancel/" : {
306+ /**
307+ * Learner credit request cancel endpoint.
308+ * @description Cancel a learner credit request.
309+ */
310+ post : operations [ "api_v1_learner_credit_requests_cancel_create" ] ;
311+ } ;
298312 "/api/v1/learner-credit-requests/decline/" : {
299313 /**
300314 * Decline a learner credit request.
@@ -1489,7 +1503,6 @@ export interface components {
14891503 active_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
14901504 staff_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
14911505 should_update_active_enterprise_customer_user : boolean ;
1492- secured_algolia_api_key ?: string | null ;
14931506 /** @description Mapping of catalog UUIDs to catalog query UUIDs. */
14941507 catalog_uuids_to_catalog_query_uuids : {
14951508 [ key : string ] : string ;
@@ -1835,6 +1848,37 @@ export interface components {
18351848 course_price ?: number | null ;
18361849 latest_action : string ;
18371850 } ;
1851+ /**
1852+ * @description Request Serializer to validate subsidy-request ``approve`` endpoint POST data.
1853+ *
1854+ * For view: LearnerCreditRequestViewSet.approve
1855+ */
1856+ LearnerCreditRequestApproveRequest : {
1857+ /**
1858+ * Format: uuid
1859+ * @description The UUID of the policy to which the request belongs.
1860+ */
1861+ policy_uuid : string ;
1862+ /**
1863+ * Format: uuid
1864+ * @description The UUID of the Enterprise Customer.
1865+ */
1866+ enterprise_customer_uuid : string ;
1867+ /**
1868+ * Format: uuid
1869+ * @description The UUID of the LearnerCreditRequest to be approved.
1870+ */
1871+ learner_credit_request_uuid : string ;
1872+ } ;
1873+ /**
1874+ * @description Request serializer to validate cancel endpoint query params.
1875+ *
1876+ * For view: LearnerCreditRequestViewSet.cancel
1877+ */
1878+ LearnerCreditRequestCancel : {
1879+ /** Format: uuid */
1880+ request_uuid : string ;
1881+ } ;
18381882 /** @description Serializer for declining a learner credit request. */
18391883 LearnerCreditRequestDecline : {
18401884 /**
@@ -1872,7 +1916,6 @@ export interface components {
18721916 active_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
18731917 staff_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
18741918 should_update_active_enterprise_customer_user : boolean ;
1875- secured_algolia_api_key ?: string | null ;
18761919 /** @description Mapping of catalog UUIDs to catalog query UUIDs. */
18771920 catalog_uuids_to_catalog_query_uuids : {
18781921 [ key : string ] : string ;
@@ -1912,7 +1955,6 @@ export interface components {
19121955 active_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
19131956 staff_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
19141957 should_update_active_enterprise_customer_user : boolean ;
1915- secured_algolia_api_key ?: string | null ;
19161958 /** @description Mapping of catalog UUIDs to catalog query UUIDs. */
19171959 catalog_uuids_to_catalog_query_uuids : {
19181960 [ key : string ] : string ;
@@ -1942,7 +1984,6 @@ export interface components {
19421984 active_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
19431985 staff_enterprise_customer ?: components [ "schemas" ] [ "EnterpriseCustomer" ] | null ;
19441986 should_update_active_enterprise_customer_user : boolean ;
1945- secured_algolia_api_key ?: string | null ;
19461987 /** @description Mapping of catalog UUIDs to catalog query UUIDs. */
19471988 catalog_uuids_to_catalog_query_uuids : {
19481989 [ key : string ] : string ;
@@ -2551,11 +2592,11 @@ export interface components {
25512592 * @description Total Amount redeemed for policy, in USD.
25522593 */
25532594 amount_redeemed_usd : number ;
2554- /** @description Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy (0 otherwise), in positive USD cents. */
2595+ /** @description Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy or {PolicyTypes.PER_LEARNER_SPEND_CREDIT} (0 otherwise), in positive USD cents. */
25552596 amount_allocated_usd_cents : number ;
25562597 /**
25572598 * Format: double
2558- * @description ('Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy (0 otherwise), in USD.', )
2599+ * @description ('Total amount allocated for policies of type AssignedLearnerCreditAccessPolicy or ', '{PolicyTypes.PER_LEARNER_SPEND_CREDIT} (0 otherwise), in USD.')
25592600 */
25602601 amount_allocated_usd : number ;
25612602 /** @description Total Amount of available spend for policy, in positive USD cents. */
@@ -4105,6 +4146,46 @@ export interface operations {
41054146 } ;
41064147 } ;
41074148 } ;
4149+ /**
4150+ * Approve a learner credit request.
4151+ * @description Approve a learner credit request.
4152+ */
4153+ api_v1_learner_credit_requests_approve_create : {
4154+ requestBody : {
4155+ content : {
4156+ "application/json" : components [ "schemas" ] [ "LearnerCreditRequestApproveRequest" ] ;
4157+ "application/x-www-form-urlencoded" : components [ "schemas" ] [ "LearnerCreditRequestApproveRequest" ] ;
4158+ "multipart/form-data" : components [ "schemas" ] [ "LearnerCreditRequestApproveRequest" ] ;
4159+ } ;
4160+ } ;
4161+ responses : {
4162+ 200 : {
4163+ content : {
4164+ "application/json" : components [ "schemas" ] [ "LearnerCreditRequest" ] ;
4165+ } ;
4166+ } ;
4167+ } ;
4168+ } ;
4169+ /**
4170+ * Learner credit request cancel endpoint.
4171+ * @description Cancel a learner credit request.
4172+ */
4173+ api_v1_learner_credit_requests_cancel_create : {
4174+ requestBody : {
4175+ content : {
4176+ "application/json" : components [ "schemas" ] [ "LearnerCreditRequestCancel" ] ;
4177+ "application/x-www-form-urlencoded" : components [ "schemas" ] [ "LearnerCreditRequestCancel" ] ;
4178+ "multipart/form-data" : components [ "schemas" ] [ "LearnerCreditRequestCancel" ] ;
4179+ } ;
4180+ } ;
4181+ responses : {
4182+ 200 : {
4183+ content : {
4184+ "application/json" : components [ "schemas" ] [ "LearnerCreditRequestCancel" ] ;
4185+ } ;
4186+ } ;
4187+ } ;
4188+ } ;
41084189 /**
41094190 * Decline a learner credit request.
41104191 * @description Action of declining a Learner Credit Subsidy Request
0 commit comments