11/*
22* The MIT License (MIT)
33*
4- * Copyright (c) 2003-2023 Aspose Pty Ltd
4+ * Copyright (c) Aspose Pty Ltd
55*
66* Permission is hereby granted, free of charge, to any person obtaining a copy
77* of this software and associated documentation files (the "Software"), to deal
2222* SOFTWARE.
2323*/
2424
25+ export class ApiError {
26+
27+ /**
28+ * Attribute type map
29+ */
30+ public static attributeTypeMap : Array < { name : string , baseName : string , type : string } > = [
31+ {
32+ name : "code" ,
33+ baseName : "code" ,
34+ type : "string" ,
35+ } ,
36+ {
37+ name : "message" ,
38+ baseName : "message" ,
39+ type : "string" ,
40+ } ,
41+ {
42+ name : "description" ,
43+ baseName : "description" ,
44+ type : "string" ,
45+ } ,
46+ {
47+ name : "dateTime" ,
48+ baseName : "dateTime" ,
49+ type : "Date" ,
50+ } ,
51+ {
52+ name : "innerError" ,
53+ baseName : "innerError" ,
54+ type : "ApiError" ,
55+ } ] ;
56+
57+ /**
58+ * Returns attribute type map
59+ */
60+ public static getAttributeTypeMap ( ) {
61+ return ApiError . attributeTypeMap ;
62+ }
63+
64+ public code : string ;
65+
66+ public message : string ;
67+
68+ public description : string ;
69+
70+ public dateTime : Date ;
71+
72+ public innerError : ApiError ;
73+
74+ public constructor ( init ?: Partial < ApiError > ) {
75+
76+ Object . assign ( this , init ) ;
77+ }
78+ }
79+
80+ export class ApiErrorResponse {
81+
82+ /**
83+ * Attribute type map
84+ */
85+ public static attributeTypeMap : Array < { name : string , baseName : string , type : string } > = [
86+ {
87+ name : "requestId" ,
88+ baseName : "requestId" ,
89+ type : "string" ,
90+ } ,
91+ {
92+ name : "error" ,
93+ baseName : "error" ,
94+ type : "ApiError" ,
95+ } ] ;
96+
97+ /**
98+ * Returns attribute type map
99+ */
100+ public static getAttributeTypeMap ( ) {
101+ return ApiErrorResponse . attributeTypeMap ;
102+ }
103+
104+ public requestId : string ;
105+
106+ public error : ApiError ;
107+
108+ public constructor ( init ?: Partial < ApiErrorResponse > ) {
109+
110+ Object . assign ( this , init ) ;
111+ }
112+ }
113+
25114/**
26115 * Metered license consumption information
27116 */
@@ -40,6 +129,11 @@ export class ConsumptionResult {
40129 name : "quantity" ,
41130 baseName : "quantity" ,
42131 type : "number" ,
132+ } ,
133+ {
134+ name : "billedApiCalls" ,
135+ baseName : "billedApiCalls" ,
136+ type : "number" ,
43137 } ] ;
44138
45139 /**
@@ -59,6 +153,11 @@ export class ConsumptionResult {
59153 */
60154 public quantity : number ;
61155
156+ /**
157+ * Billed API calls number
158+ */
159+ public billedApiCalls : number ;
160+
62161 public constructor ( init ?: Partial < ConsumptionResult > ) {
63162
64163 Object . assign ( this , init ) ;
@@ -1700,6 +1799,8 @@ const enumsMap = {
17001799} ;
17011800
17021801const typeMap = {
1802+ ApiError,
1803+ ApiErrorResponse,
17031804 ConsumptionResult,
17041805 DiscUsage,
17051806 DocumentResult,
0 commit comments