@caraer/client 2.0.408 → 2.0.411

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -392,6 +392,51 @@ export interface AppBarVisibilityEntry {
392
392
  'objects'?: Array<string>;
393
393
  'suites'?: Array<string>;
394
394
  }
395
+ /**
396
+ * Current-period usage for one pricing line item
397
+ */
398
+ export interface AppBillingLineItemStatusDTO {
399
+ 'name'?: string;
400
+ 'label'?: string;
401
+ 'countType'?: string;
402
+ 'countingSource'?: string;
403
+ 'usage'?: number;
404
+ 'usageBreakdown'?: { [key: string]: number; };
405
+ 'includedUnits'?: number;
406
+ 'overageUnits'?: number;
407
+ 'projectedCharge'?: number;
408
+ 'status'?: string;
409
+ 'note'?: string;
410
+ }
411
+ /**
412
+ * UTC calendar-month billing window, with pro-rata fields when the subscription started mid-month
413
+ */
414
+ export interface AppBillingPeriodDTO {
415
+ 'start'?: string;
416
+ 'end'?: string;
417
+ 'status'?: string;
418
+ 'activeStart'?: string;
419
+ 'daysActive'?: number;
420
+ 'daysInPeriod'?: number;
421
+ 'prorationFactor'?: number;
422
+ }
423
+ /**
424
+ * Billing status for one or more app installations
425
+ */
426
+ export interface AppBillingStatusResponse {
427
+ 'appUuid'?: string;
428
+ 'appName'?: string;
429
+ 'period'?: AppBillingPeriodDTO;
430
+ 'installations'?: Array<AppInstallationBillingStatusDTO>;
431
+ 'summary'?: AppBillingSummaryDTO;
432
+ }
433
+ /**
434
+ * Rollup of installation billing status
435
+ */
436
+ export interface AppBillingSummaryDTO {
437
+ 'installationCount'?: number;
438
+ 'projectedRevenueTotal'?: number;
439
+ }
395
440
  export interface AppConnectionStatusDTO {
396
441
  'id'?: string;
397
442
  'name'?: string;
@@ -814,6 +859,51 @@ export interface AppInboundRouteDTO {
814
859
  'sharedSecret'?: string;
815
860
  'serverlessFunction'?: ServerlessFunctionRefDTO;
816
861
  }
862
+ /**
863
+ * Current-period billing status for one installation
864
+ */
865
+ export interface AppInstallationBillingStatusDTO {
866
+ 'appUuid'?: string;
867
+ 'appName'?: string;
868
+ 'installationUuid'?: string;
869
+ 'companyUuid'?: string;
870
+ 'companyName'?: string;
871
+ 'selectedPricingPlanUuid'?: string;
872
+ 'selectedPricingPlanTitle'?: string;
873
+ 'pricingType'?: string;
874
+ 'billingCommitment'?: string;
875
+ 'pendingPricingPlanUuid'?: string;
876
+ 'pendingEffectiveAt'?: number;
877
+ 'period'?: AppBillingPeriodDTO;
878
+ 'lineItems'?: Array<AppBillingLineItemStatusDTO>;
879
+ 'projectedTotal'?: number;
880
+ 'subscription'?: AppSubscriptionDTO;
881
+ }
882
+ /**
883
+ * Manual meter event for a billable line item
884
+ */
885
+ export interface AppMeterEventRequest {
886
+ 'lineItemName': string;
887
+ /**
888
+ * Positive unit count; defaults to 1
889
+ */
890
+ 'quantity'?: number;
891
+ 'idempotencyKey'?: string;
892
+ /**
893
+ * ISO-8601 timestamp; defaults to now
894
+ */
895
+ 'occurredAt'?: string;
896
+ 'metadata'?: { [key: string]: any | null; };
897
+ }
898
+ /**
899
+ * Recorded meter event
900
+ */
901
+ export interface AppMeterEventResponse {
902
+ 'eventUuid'?: string;
903
+ 'lineItemName'?: string;
904
+ 'quantity'?: number;
905
+ 'periodUsageAfter'?: number;
906
+ }
817
907
  export interface AppOAuthStartResponseDTO {
818
908
  'authorizeUrl'?: string;
819
909
  }
@@ -893,6 +983,95 @@ export interface AppPricingDTO {
893
983
  * Tiers for tiered pricing (TIERED)
894
984
  */
895
985
  'tiers'?: Array<AppTierDTO>;
986
+ /**
987
+ * Billing period for usage aggregation (default month)
988
+ */
989
+ 'billingPeriod'?: string;
990
+ /**
991
+ * Allowed billing commitments: MONTHLY and/or ANNUAL
992
+ */
993
+ 'commitments'?: Array<string>;
994
+ /**
995
+ * Billable line items (meters and/or static queries)
996
+ */
997
+ 'lineItems'?: Array<AppPricingLineItemDTO>;
998
+ }
999
+ /**
1000
+ * Billable line item on an app pricing plan
1001
+ */
1002
+ export interface AppPricingLineItemDTO {
1003
+ /**
1004
+ * Unique identifier for the entity
1005
+ */
1006
+ 'uuid': string;
1007
+ /**
1008
+ * The name of the entity
1009
+ */
1010
+ 'name': string;
1011
+ /**
1012
+ * Display label for the entity, can be different from name
1013
+ */
1014
+ 'label'?: string;
1015
+ /**
1016
+ * Unix timestamp when the entity was created
1017
+ */
1018
+ 'createdAt'?: number;
1019
+ /**
1020
+ * Identifier of the user who created the entity
1021
+ */
1022
+ 'createdBy'?: ModelRecord;
1023
+ /**
1024
+ * Unix timestamp when the entity was last updated
1025
+ */
1026
+ 'updatedAt'?: number;
1027
+ /**
1028
+ * Identifier of the user who last updated the entity
1029
+ */
1030
+ 'updatedBy'?: ModelRecord;
1031
+ /**
1032
+ * Unix timestamp when the entity was deleted (null if not deleted)
1033
+ */
1034
+ 'deletedAt'?: number;
1035
+ /**
1036
+ * Identifier of the user who deleted the entity
1037
+ */
1038
+ 'deletedBy'?: ModelRecord;
1039
+ /**
1040
+ * Index number for ordering entities
1041
+ */
1042
+ 'index'?: number;
1043
+ /**
1044
+ * Count type: meter or static_query
1045
+ */
1046
+ 'countType'?: string;
1047
+ /**
1048
+ * Event sources for meter line items: WEBHOOK, MANUAL, WEBHOOK_AND_MANUAL
1049
+ */
1050
+ 'countingSource'?: string;
1051
+ /**
1052
+ * Unit label (e.g. webhook, document)
1053
+ */
1054
+ 'unit'?: string;
1055
+ /**
1056
+ * Included units for FLAT line items
1057
+ */
1058
+ 'includedUnits'?: string;
1059
+ /**
1060
+ * Base price covering included units (FLAT)
1061
+ */
1062
+ 'pricePerUnit'?: string;
1063
+ /**
1064
+ * Price per unit above includedUnits (FLAT)
1065
+ */
1066
+ 'pricePerExtraUnit'?: string;
1067
+ /**
1068
+ * Scheduled Cypher snapshot for static_query line items
1069
+ */
1070
+ 'staticQuery'?: AppStaticQueryDTO;
1071
+ /**
1072
+ * Tiers for TIERED line items
1073
+ */
1074
+ 'tiers'?: Array<AppTierDTO>;
896
1075
  }
897
1076
  /**
898
1077
  * Publish and review state for a public app in the marketplace
@@ -1068,6 +1247,42 @@ export interface AppSettingsSection {
1068
1247
  'subtitle'?: string;
1069
1248
  'settings'?: Array<string>;
1070
1249
  }
1250
+ /**
1251
+ * Read-only Cypher snapshot used by static_query line items
1252
+ */
1253
+ export interface AppStaticQueryDTO {
1254
+ /**
1255
+ * When the query runs: period_end (default) or period_start
1256
+ */
1257
+ 'schedule'?: string;
1258
+ /**
1259
+ * Read-only Cypher that returns count(...) AS count
1260
+ */
1261
+ 'cypher'?: string;
1262
+ }
1263
+ /**
1264
+ * Schedule a plan or commitment change
1265
+ */
1266
+ export interface AppSubscriptionChangeRequest {
1267
+ 'targetPlanUuid'?: string;
1268
+ /**
1269
+ * MONTHLY or ANNUAL
1270
+ */
1271
+ 'targetCommitment'?: string;
1272
+ }
1273
+ /**
1274
+ * Current and pending subscription state
1275
+ */
1276
+ export interface AppSubscriptionDTO {
1277
+ 'selectedPricingPlanUuid'?: string;
1278
+ 'billingCommitment'?: string;
1279
+ 'contractStart'?: number;
1280
+ 'contractEnd'?: number;
1281
+ 'pendingPricingPlanUuid'?: string;
1282
+ 'pendingBillingCommitment'?: string;
1283
+ 'pendingEffectiveAt'?: number;
1284
+ 'message'?: string;
1285
+ }
1071
1286
  /**
1072
1287
  * Data transfer object for a pricing tier (plan) within tiered app pricing
1073
1288
  */
@@ -2236,9 +2451,9 @@ export const EventRsvpRequestScopeEnum = {
2236
2451
  export type EventRsvpRequestScopeEnum = typeof EventRsvpRequestScopeEnum[keyof typeof EventRsvpRequestScopeEnum];
2237
2452
 
2238
2453
  export interface ExistingWidgetSummary {
2239
- 'xproperty'?: string;
2240
2454
  'ymetric'?: string;
2241
2455
  'yproperty'?: string;
2456
+ 'xproperty'?: string;
2242
2457
  'title'?: string;
2243
2458
  'chartType'?: string;
2244
2459
  'xProperty'?: string;
@@ -2754,6 +2969,30 @@ export interface HasAppDTO {
2754
2969
  * UUID of the pricing plan selected for this installation
2755
2970
  */
2756
2971
  'selectedPricingPlanUuid'?: string;
2972
+ /**
2973
+ * MONTHLY or ANNUAL billing commitment
2974
+ */
2975
+ 'billingCommitment'?: string;
2976
+ /**
2977
+ * Current contract start (epoch ms)
2978
+ */
2979
+ 'contractStart'?: number;
2980
+ /**
2981
+ * Current contract end / renewal date (epoch ms)
2982
+ */
2983
+ 'contractEnd'?: number;
2984
+ /**
2985
+ * Plan scheduled to become active
2986
+ */
2987
+ 'pendingPricingPlanUuid'?: string;
2988
+ /**
2989
+ * Commitment scheduled to become active
2990
+ */
2991
+ 'pendingBillingCommitment'?: string;
2992
+ /**
2993
+ * When the pending subscription change takes effect (epoch ms)
2994
+ */
2995
+ 'pendingEffectiveAt'?: number;
2757
2996
  }
2758
2997
  /**
2759
2998
  * Optional initial configuration settings
@@ -2982,9 +3221,9 @@ export interface ModelRecord {
2982
3221
  'deleted'?: boolean;
2983
3222
  'complete'?: boolean;
2984
3223
  'uuid': string;
2985
- 'user'?: PublicUserDTO;
2986
3224
  'properties'?: Array<FilledProperty>;
2987
3225
  'objects'?: { [key: string]: any | null; };
3226
+ 'user'?: PublicUserDTO;
2988
3227
  }
2989
3228
  export interface MultiLine extends PropertyFormat {
2990
3229
  }
@@ -4565,6 +4804,19 @@ export interface ShowResponse {
4565
4804
  'message'?: string;
4566
4805
  'data'?: any;
4567
4806
  }
4807
+ /**
4808
+ * Represents the response for viewing or showing a specific resource.
4809
+ */
4810
+ export interface ShowResponseAppBillingStatusResponse {
4811
+ /**
4812
+ * A message detailing the result of the operation.
4813
+ */
4814
+ 'message'?: string;
4815
+ /**
4816
+ * The data payload of the response, if any.
4817
+ */
4818
+ 'data'?: AppBillingStatusResponse;
4819
+ }
4568
4820
  /**
4569
4821
  * Represents the response for viewing or showing a specific resource.
4570
4822
  */
@@ -4591,6 +4843,32 @@ export interface ShowResponseAppInboundRouteDTO {
4591
4843
  */
4592
4844
  'data'?: AppInboundRouteDTO;
4593
4845
  }
4846
+ /**
4847
+ * Represents the response for viewing or showing a specific resource.
4848
+ */
4849
+ export interface ShowResponseAppInstallationBillingStatusDTO {
4850
+ /**
4851
+ * A message detailing the result of the operation.
4852
+ */
4853
+ 'message'?: string;
4854
+ /**
4855
+ * The data payload of the response, if any.
4856
+ */
4857
+ 'data'?: AppInstallationBillingStatusDTO;
4858
+ }
4859
+ /**
4860
+ * Represents the response for viewing or showing a specific resource.
4861
+ */
4862
+ export interface ShowResponseAppMeterEventResponse {
4863
+ /**
4864
+ * A message detailing the result of the operation.
4865
+ */
4866
+ 'message'?: string;
4867
+ /**
4868
+ * The data payload of the response, if any.
4869
+ */
4870
+ 'data'?: AppMeterEventResponse;
4871
+ }
4594
4872
  /**
4595
4873
  * Represents the response for viewing or showing a specific resource.
4596
4874
  */
@@ -4617,6 +4895,19 @@ export interface ShowResponseAppScheduleDTO {
4617
4895
  */
4618
4896
  'data'?: AppScheduleDTO;
4619
4897
  }
4898
+ /**
4899
+ * Represents the response for viewing or showing a specific resource.
4900
+ */
4901
+ export interface ShowResponseAppSubscriptionDTO {
4902
+ /**
4903
+ * A message detailing the result of the operation.
4904
+ */
4905
+ 'message'?: string;
4906
+ /**
4907
+ * The data payload of the response, if any.
4908
+ */
4909
+ 'data'?: AppSubscriptionDTO;
4910
+ }
4620
4911
  /**
4621
4912
  * Represents the response for viewing or showing a specific resource.
4622
4913
  */
@@ -4630,6 +4921,19 @@ export interface ShowResponseListAppConnectionStatusDTO {
4630
4921
  */
4631
4922
  'data'?: Array<AppConnectionStatusDTO>;
4632
4923
  }
4924
+ /**
4925
+ * Represents the response for viewing or showing a specific resource.
4926
+ */
4927
+ export interface ShowResponseListAppInstallationBillingStatusDTO {
4928
+ /**
4929
+ * A message detailing the result of the operation.
4930
+ */
4931
+ 'message'?: string;
4932
+ /**
4933
+ * The data payload of the response, if any.
4934
+ */
4935
+ 'data'?: Array<AppInstallationBillingStatusDTO>;
4936
+ }
4633
4937
  /**
4634
4938
  * Represents the response for viewing or showing a specific resource.
4635
4939
  */
@@ -6713,6 +7017,648 @@ export const ListAppBarsLocationEnum = {
6713
7017
  export type ListAppBarsLocationEnum = typeof ListAppBarsLocationEnum[keyof typeof ListAppBarsLocationEnum];
6714
7018
 
6715
7019
 
7020
+ /**
7021
+ * AppBillingApi - axios parameter creator
7022
+ */
7023
+ export const AppBillingApiAxiosParamCreator = function (configuration?: Configuration) {
7024
+ return {
7025
+ /**
7026
+ *
7027
+ * @summary Current-period billing for every installation of an app
7028
+ * @param {string} appUuid
7029
+ * @param {*} [options] Override http request option.
7030
+ * @throws {RequiredError}
7031
+ */
7032
+ appBillingStatus: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7033
+ // verify required parameter 'appUuid' is not null or undefined
7034
+ assertParamExists('appBillingStatus', 'appUuid', appUuid)
7035
+ const localVarPath = `/api/v2/apps/{appUuid}/billing/status`
7036
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7037
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7038
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7039
+ let baseOptions;
7040
+ if (configuration) {
7041
+ baseOptions = configuration.baseOptions;
7042
+ }
7043
+
7044
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7045
+ const localVarHeaderParameter = {} as any;
7046
+ const localVarQueryParameter = {} as any;
7047
+
7048
+ // authentication bearerAuth required
7049
+ // http bearer authentication required
7050
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7051
+
7052
+ localVarHeaderParameter['Accept'] = 'application/json';
7053
+
7054
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7056
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7057
+
7058
+ return {
7059
+ url: toPathString(localVarUrlObj),
7060
+ options: localVarRequestOptions,
7061
+ };
7062
+ },
7063
+ /**
7064
+ *
7065
+ * @summary Cancel a scheduled subscription change
7066
+ * @param {string} appUuid
7067
+ * @param {*} [options] Override http request option.
7068
+ * @throws {RequiredError}
7069
+ */
7070
+ cancelPendingChange: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7071
+ // verify required parameter 'appUuid' is not null or undefined
7072
+ assertParamExists('cancelPendingChange', 'appUuid', appUuid)
7073
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/pending`
7074
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7075
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7076
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7077
+ let baseOptions;
7078
+ if (configuration) {
7079
+ baseOptions = configuration.baseOptions;
7080
+ }
7081
+
7082
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
7083
+ const localVarHeaderParameter = {} as any;
7084
+ const localVarQueryParameter = {} as any;
7085
+
7086
+ // authentication bearerAuth required
7087
+ // http bearer authentication required
7088
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7089
+
7090
+ localVarHeaderParameter['Accept'] = 'application/json';
7091
+
7092
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7094
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7095
+
7096
+ return {
7097
+ url: toPathString(localVarUrlObj),
7098
+ options: localVarRequestOptions,
7099
+ };
7100
+ },
7101
+ /**
7102
+ *
7103
+ * @summary Current subscription state for the selected company\'s installation
7104
+ * @param {string} appUuid
7105
+ * @param {*} [options] Override http request option.
7106
+ * @throws {RequiredError}
7107
+ */
7108
+ getSubscription: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7109
+ // verify required parameter 'appUuid' is not null or undefined
7110
+ assertParamExists('getSubscription', 'appUuid', appUuid)
7111
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription`
7112
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7114
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7115
+ let baseOptions;
7116
+ if (configuration) {
7117
+ baseOptions = configuration.baseOptions;
7118
+ }
7119
+
7120
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7121
+ const localVarHeaderParameter = {} as any;
7122
+ const localVarQueryParameter = {} as any;
7123
+
7124
+ // authentication bearerAuth required
7125
+ // http bearer authentication required
7126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7127
+
7128
+ localVarHeaderParameter['Accept'] = 'application/json';
7129
+
7130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7132
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7133
+
7134
+ return {
7135
+ url: toPathString(localVarUrlObj),
7136
+ options: localVarRequestOptions,
7137
+ };
7138
+ },
7139
+ /**
7140
+ *
7141
+ * @summary Current-period billing for the selected company\'s installation
7142
+ * @param {string} appUuid
7143
+ * @param {*} [options] Override http request option.
7144
+ * @throws {RequiredError}
7145
+ */
7146
+ installationBillingStatus: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7147
+ // verify required parameter 'appUuid' is not null or undefined
7148
+ assertParamExists('installationBillingStatus', 'appUuid', appUuid)
7149
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/billing/status`
7150
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7153
+ let baseOptions;
7154
+ if (configuration) {
7155
+ baseOptions = configuration.baseOptions;
7156
+ }
7157
+
7158
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7159
+ const localVarHeaderParameter = {} as any;
7160
+ const localVarQueryParameter = {} as any;
7161
+
7162
+ // authentication bearerAuth required
7163
+ // http bearer authentication required
7164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7165
+
7166
+ localVarHeaderParameter['Accept'] = 'application/json';
7167
+
7168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7171
+
7172
+ return {
7173
+ url: toPathString(localVarUrlObj),
7174
+ options: localVarRequestOptions,
7175
+ };
7176
+ },
7177
+ /**
7178
+ *
7179
+ * @summary Platform-wide current-period app usage billing
7180
+ * @param {string} [appUuid]
7181
+ * @param {number} [page]
7182
+ * @param {number} [limit]
7183
+ * @param {*} [options] Override http request option.
7184
+ * @throws {RequiredError}
7185
+ */
7186
+ platformBillingStatus: async (appUuid?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7187
+ const localVarPath = `/api/v2/apps/billing/status`;
7188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7190
+ let baseOptions;
7191
+ if (configuration) {
7192
+ baseOptions = configuration.baseOptions;
7193
+ }
7194
+
7195
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7196
+ const localVarHeaderParameter = {} as any;
7197
+ const localVarQueryParameter = {} as any;
7198
+
7199
+ // authentication bearerAuth required
7200
+ // http bearer authentication required
7201
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7202
+
7203
+ if (appUuid !== undefined) {
7204
+ localVarQueryParameter['appUuid'] = appUuid;
7205
+ }
7206
+
7207
+ if (page !== undefined) {
7208
+ localVarQueryParameter['page'] = page;
7209
+ }
7210
+
7211
+ if (limit !== undefined) {
7212
+ localVarQueryParameter['limit'] = limit;
7213
+ }
7214
+
7215
+ localVarHeaderParameter['Accept'] = 'application/json';
7216
+
7217
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7219
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7220
+
7221
+ return {
7222
+ url: toPathString(localVarUrlObj),
7223
+ options: localVarRequestOptions,
7224
+ };
7225
+ },
7226
+ /**
7227
+ *
7228
+ * @summary Record a manual meter event for the selected company\'s installation
7229
+ * @param {string} appUuid
7230
+ * @param {AppMeterEventRequest} appMeterEventRequest
7231
+ * @param {*} [options] Override http request option.
7232
+ * @throws {RequiredError}
7233
+ */
7234
+ recordMeterEvent: async (appUuid: string, appMeterEventRequest: AppMeterEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7235
+ // verify required parameter 'appUuid' is not null or undefined
7236
+ assertParamExists('recordMeterEvent', 'appUuid', appUuid)
7237
+ // verify required parameter 'appMeterEventRequest' is not null or undefined
7238
+ assertParamExists('recordMeterEvent', 'appMeterEventRequest', appMeterEventRequest)
7239
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/meter-events`
7240
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7243
+ let baseOptions;
7244
+ if (configuration) {
7245
+ baseOptions = configuration.baseOptions;
7246
+ }
7247
+
7248
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7249
+ const localVarHeaderParameter = {} as any;
7250
+ const localVarQueryParameter = {} as any;
7251
+
7252
+ // authentication bearerAuth required
7253
+ // http bearer authentication required
7254
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7255
+
7256
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7257
+ localVarHeaderParameter['Accept'] = 'application/json';
7258
+
7259
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7260
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7261
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7262
+ localVarRequestOptions.data = serializeDataIfNeeded(appMeterEventRequest, localVarRequestOptions, configuration)
7263
+
7264
+ return {
7265
+ url: toPathString(localVarUrlObj),
7266
+ options: localVarRequestOptions,
7267
+ };
7268
+ },
7269
+ /**
7270
+ *
7271
+ * @summary Schedule a plan or commitment change
7272
+ * @param {string} appUuid
7273
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7274
+ * @param {*} [options] Override http request option.
7275
+ * @throws {RequiredError}
7276
+ */
7277
+ scheduleSubscriptionChange: async (appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7278
+ // verify required parameter 'appUuid' is not null or undefined
7279
+ assertParamExists('scheduleSubscriptionChange', 'appUuid', appUuid)
7280
+ // verify required parameter 'appSubscriptionChangeRequest' is not null or undefined
7281
+ assertParamExists('scheduleSubscriptionChange', 'appSubscriptionChangeRequest', appSubscriptionChangeRequest)
7282
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/subscription/change`
7283
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7286
+ let baseOptions;
7287
+ if (configuration) {
7288
+ baseOptions = configuration.baseOptions;
7289
+ }
7290
+
7291
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7292
+ const localVarHeaderParameter = {} as any;
7293
+ const localVarQueryParameter = {} as any;
7294
+
7295
+ // authentication bearerAuth required
7296
+ // http bearer authentication required
7297
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7298
+
7299
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7300
+ localVarHeaderParameter['Accept'] = 'application/json';
7301
+
7302
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7304
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7305
+ localVarRequestOptions.data = serializeDataIfNeeded(appSubscriptionChangeRequest, localVarRequestOptions, configuration)
7306
+
7307
+ return {
7308
+ url: toPathString(localVarUrlObj),
7309
+ options: localVarRequestOptions,
7310
+ };
7311
+ },
7312
+ /**
7313
+ *
7314
+ * @summary Usage periods for the selected company\'s installation
7315
+ * @param {string} appUuid
7316
+ * @param {*} [options] Override http request option.
7317
+ * @throws {RequiredError}
7318
+ */
7319
+ usagePeriods: async (appUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7320
+ // verify required parameter 'appUuid' is not null or undefined
7321
+ assertParamExists('usagePeriods', 'appUuid', appUuid)
7322
+ const localVarPath = `/api/v2/apps/{appUuid}/installation/usage/periods`
7323
+ .replace('{appUuid}', encodeURIComponent(String(appUuid)));
7324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7326
+ let baseOptions;
7327
+ if (configuration) {
7328
+ baseOptions = configuration.baseOptions;
7329
+ }
7330
+
7331
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7332
+ const localVarHeaderParameter = {} as any;
7333
+ const localVarQueryParameter = {} as any;
7334
+
7335
+ // authentication bearerAuth required
7336
+ // http bearer authentication required
7337
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7338
+
7339
+ localVarHeaderParameter['Accept'] = 'application/json';
7340
+
7341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7343
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7344
+
7345
+ return {
7346
+ url: toPathString(localVarUrlObj),
7347
+ options: localVarRequestOptions,
7348
+ };
7349
+ },
7350
+ }
7351
+ };
7352
+
7353
+ /**
7354
+ * AppBillingApi - functional programming interface
7355
+ */
7356
+ export const AppBillingApiFp = function(configuration?: Configuration) {
7357
+ const localVarAxiosParamCreator = AppBillingApiAxiosParamCreator(configuration)
7358
+ return {
7359
+ /**
7360
+ *
7361
+ * @summary Current-period billing for every installation of an app
7362
+ * @param {string} appUuid
7363
+ * @param {*} [options] Override http request option.
7364
+ * @throws {RequiredError}
7365
+ */
7366
+ async appBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppBillingStatusResponse>> {
7367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.appBillingStatus(appUuid, options);
7368
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7369
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.appBillingStatus']?.[localVarOperationServerIndex]?.url;
7370
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7371
+ },
7372
+ /**
7373
+ *
7374
+ * @summary Cancel a scheduled subscription change
7375
+ * @param {string} appUuid
7376
+ * @param {*} [options] Override http request option.
7377
+ * @throws {RequiredError}
7378
+ */
7379
+ async cancelPendingChange(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppSubscriptionDTO>> {
7380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPendingChange(appUuid, options);
7381
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7382
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.cancelPendingChange']?.[localVarOperationServerIndex]?.url;
7383
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7384
+ },
7385
+ /**
7386
+ *
7387
+ * @summary Current subscription state for the selected company\'s installation
7388
+ * @param {string} appUuid
7389
+ * @param {*} [options] Override http request option.
7390
+ * @throws {RequiredError}
7391
+ */
7392
+ async getSubscription(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppSubscriptionDTO>> {
7393
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscription(appUuid, options);
7394
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7395
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.getSubscription']?.[localVarOperationServerIndex]?.url;
7396
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7397
+ },
7398
+ /**
7399
+ *
7400
+ * @summary Current-period billing for the selected company\'s installation
7401
+ * @param {string} appUuid
7402
+ * @param {*} [options] Override http request option.
7403
+ * @throws {RequiredError}
7404
+ */
7405
+ async installationBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppInstallationBillingStatusDTO>> {
7406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.installationBillingStatus(appUuid, options);
7407
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7408
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.installationBillingStatus']?.[localVarOperationServerIndex]?.url;
7409
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7410
+ },
7411
+ /**
7412
+ *
7413
+ * @summary Platform-wide current-period app usage billing
7414
+ * @param {string} [appUuid]
7415
+ * @param {number} [page]
7416
+ * @param {number} [limit]
7417
+ * @param {*} [options] Override http request option.
7418
+ * @throws {RequiredError}
7419
+ */
7420
+ async platformBillingStatus(appUuid?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppBillingStatusResponse>> {
7421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.platformBillingStatus(appUuid, page, limit, options);
7422
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7423
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.platformBillingStatus']?.[localVarOperationServerIndex]?.url;
7424
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7425
+ },
7426
+ /**
7427
+ *
7428
+ * @summary Record a manual meter event for the selected company\'s installation
7429
+ * @param {string} appUuid
7430
+ * @param {AppMeterEventRequest} appMeterEventRequest
7431
+ * @param {*} [options] Override http request option.
7432
+ * @throws {RequiredError}
7433
+ */
7434
+ async recordMeterEvent(appUuid: string, appMeterEventRequest: AppMeterEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppMeterEventResponse>> {
7435
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recordMeterEvent(appUuid, appMeterEventRequest, options);
7436
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7437
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.recordMeterEvent']?.[localVarOperationServerIndex]?.url;
7438
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7439
+ },
7440
+ /**
7441
+ *
7442
+ * @summary Schedule a plan or commitment change
7443
+ * @param {string} appUuid
7444
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7445
+ * @param {*} [options] Override http request option.
7446
+ * @throws {RequiredError}
7447
+ */
7448
+ async scheduleSubscriptionChange(appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseAppSubscriptionDTO>> {
7449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options);
7450
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7451
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.scheduleSubscriptionChange']?.[localVarOperationServerIndex]?.url;
7452
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7453
+ },
7454
+ /**
7455
+ *
7456
+ * @summary Usage periods for the selected company\'s installation
7457
+ * @param {string} appUuid
7458
+ * @param {*} [options] Override http request option.
7459
+ * @throws {RequiredError}
7460
+ */
7461
+ async usagePeriods(appUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShowResponseListAppInstallationBillingStatusDTO>> {
7462
+ const localVarAxiosArgs = await localVarAxiosParamCreator.usagePeriods(appUuid, options);
7463
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7464
+ const localVarOperationServerBasePath = operationServerMap['AppBillingApi.usagePeriods']?.[localVarOperationServerIndex]?.url;
7465
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7466
+ },
7467
+ }
7468
+ };
7469
+
7470
+ /**
7471
+ * AppBillingApi - factory interface
7472
+ */
7473
+ export const AppBillingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7474
+ const localVarFp = AppBillingApiFp(configuration)
7475
+ return {
7476
+ /**
7477
+ *
7478
+ * @summary Current-period billing for every installation of an app
7479
+ * @param {string} appUuid
7480
+ * @param {*} [options] Override http request option.
7481
+ * @throws {RequiredError}
7482
+ */
7483
+ appBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppBillingStatusResponse> {
7484
+ return localVarFp.appBillingStatus(appUuid, options).then((request) => request(axios, basePath));
7485
+ },
7486
+ /**
7487
+ *
7488
+ * @summary Cancel a scheduled subscription change
7489
+ * @param {string} appUuid
7490
+ * @param {*} [options] Override http request option.
7491
+ * @throws {RequiredError}
7492
+ */
7493
+ cancelPendingChange(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppSubscriptionDTO> {
7494
+ return localVarFp.cancelPendingChange(appUuid, options).then((request) => request(axios, basePath));
7495
+ },
7496
+ /**
7497
+ *
7498
+ * @summary Current subscription state for the selected company\'s installation
7499
+ * @param {string} appUuid
7500
+ * @param {*} [options] Override http request option.
7501
+ * @throws {RequiredError}
7502
+ */
7503
+ getSubscription(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppSubscriptionDTO> {
7504
+ return localVarFp.getSubscription(appUuid, options).then((request) => request(axios, basePath));
7505
+ },
7506
+ /**
7507
+ *
7508
+ * @summary Current-period billing for the selected company\'s installation
7509
+ * @param {string} appUuid
7510
+ * @param {*} [options] Override http request option.
7511
+ * @throws {RequiredError}
7512
+ */
7513
+ installationBillingStatus(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppInstallationBillingStatusDTO> {
7514
+ return localVarFp.installationBillingStatus(appUuid, options).then((request) => request(axios, basePath));
7515
+ },
7516
+ /**
7517
+ *
7518
+ * @summary Platform-wide current-period app usage billing
7519
+ * @param {string} [appUuid]
7520
+ * @param {number} [page]
7521
+ * @param {number} [limit]
7522
+ * @param {*} [options] Override http request option.
7523
+ * @throws {RequiredError}
7524
+ */
7525
+ platformBillingStatus(appUuid?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppBillingStatusResponse> {
7526
+ return localVarFp.platformBillingStatus(appUuid, page, limit, options).then((request) => request(axios, basePath));
7527
+ },
7528
+ /**
7529
+ *
7530
+ * @summary Record a manual meter event for the selected company\'s installation
7531
+ * @param {string} appUuid
7532
+ * @param {AppMeterEventRequest} appMeterEventRequest
7533
+ * @param {*} [options] Override http request option.
7534
+ * @throws {RequiredError}
7535
+ */
7536
+ recordMeterEvent(appUuid: string, appMeterEventRequest: AppMeterEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppMeterEventResponse> {
7537
+ return localVarFp.recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(axios, basePath));
7538
+ },
7539
+ /**
7540
+ *
7541
+ * @summary Schedule a plan or commitment change
7542
+ * @param {string} appUuid
7543
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7544
+ * @param {*} [options] Override http request option.
7545
+ * @throws {RequiredError}
7546
+ */
7547
+ scheduleSubscriptionChange(appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseAppSubscriptionDTO> {
7548
+ return localVarFp.scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(axios, basePath));
7549
+ },
7550
+ /**
7551
+ *
7552
+ * @summary Usage periods for the selected company\'s installation
7553
+ * @param {string} appUuid
7554
+ * @param {*} [options] Override http request option.
7555
+ * @throws {RequiredError}
7556
+ */
7557
+ usagePeriods(appUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ShowResponseListAppInstallationBillingStatusDTO> {
7558
+ return localVarFp.usagePeriods(appUuid, options).then((request) => request(axios, basePath));
7559
+ },
7560
+ };
7561
+ };
7562
+
7563
+ /**
7564
+ * AppBillingApi - object-oriented interface
7565
+ */
7566
+ export class AppBillingApi extends BaseAPI {
7567
+ /**
7568
+ *
7569
+ * @summary Current-period billing for every installation of an app
7570
+ * @param {string} appUuid
7571
+ * @param {*} [options] Override http request option.
7572
+ * @throws {RequiredError}
7573
+ */
7574
+ public appBillingStatus(appUuid: string, options?: RawAxiosRequestConfig) {
7575
+ return AppBillingApiFp(this.configuration).appBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
7576
+ }
7577
+
7578
+ /**
7579
+ *
7580
+ * @summary Cancel a scheduled subscription change
7581
+ * @param {string} appUuid
7582
+ * @param {*} [options] Override http request option.
7583
+ * @throws {RequiredError}
7584
+ */
7585
+ public cancelPendingChange(appUuid: string, options?: RawAxiosRequestConfig) {
7586
+ return AppBillingApiFp(this.configuration).cancelPendingChange(appUuid, options).then((request) => request(this.axios, this.basePath));
7587
+ }
7588
+
7589
+ /**
7590
+ *
7591
+ * @summary Current subscription state for the selected company\'s installation
7592
+ * @param {string} appUuid
7593
+ * @param {*} [options] Override http request option.
7594
+ * @throws {RequiredError}
7595
+ */
7596
+ public getSubscription(appUuid: string, options?: RawAxiosRequestConfig) {
7597
+ return AppBillingApiFp(this.configuration).getSubscription(appUuid, options).then((request) => request(this.axios, this.basePath));
7598
+ }
7599
+
7600
+ /**
7601
+ *
7602
+ * @summary Current-period billing for the selected company\'s installation
7603
+ * @param {string} appUuid
7604
+ * @param {*} [options] Override http request option.
7605
+ * @throws {RequiredError}
7606
+ */
7607
+ public installationBillingStatus(appUuid: string, options?: RawAxiosRequestConfig) {
7608
+ return AppBillingApiFp(this.configuration).installationBillingStatus(appUuid, options).then((request) => request(this.axios, this.basePath));
7609
+ }
7610
+
7611
+ /**
7612
+ *
7613
+ * @summary Platform-wide current-period app usage billing
7614
+ * @param {string} [appUuid]
7615
+ * @param {number} [page]
7616
+ * @param {number} [limit]
7617
+ * @param {*} [options] Override http request option.
7618
+ * @throws {RequiredError}
7619
+ */
7620
+ public platformBillingStatus(appUuid?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
7621
+ return AppBillingApiFp(this.configuration).platformBillingStatus(appUuid, page, limit, options).then((request) => request(this.axios, this.basePath));
7622
+ }
7623
+
7624
+ /**
7625
+ *
7626
+ * @summary Record a manual meter event for the selected company\'s installation
7627
+ * @param {string} appUuid
7628
+ * @param {AppMeterEventRequest} appMeterEventRequest
7629
+ * @param {*} [options] Override http request option.
7630
+ * @throws {RequiredError}
7631
+ */
7632
+ public recordMeterEvent(appUuid: string, appMeterEventRequest: AppMeterEventRequest, options?: RawAxiosRequestConfig) {
7633
+ return AppBillingApiFp(this.configuration).recordMeterEvent(appUuid, appMeterEventRequest, options).then((request) => request(this.axios, this.basePath));
7634
+ }
7635
+
7636
+ /**
7637
+ *
7638
+ * @summary Schedule a plan or commitment change
7639
+ * @param {string} appUuid
7640
+ * @param {AppSubscriptionChangeRequest} appSubscriptionChangeRequest
7641
+ * @param {*} [options] Override http request option.
7642
+ * @throws {RequiredError}
7643
+ */
7644
+ public scheduleSubscriptionChange(appUuid: string, appSubscriptionChangeRequest: AppSubscriptionChangeRequest, options?: RawAxiosRequestConfig) {
7645
+ return AppBillingApiFp(this.configuration).scheduleSubscriptionChange(appUuid, appSubscriptionChangeRequest, options).then((request) => request(this.axios, this.basePath));
7646
+ }
7647
+
7648
+ /**
7649
+ *
7650
+ * @summary Usage periods for the selected company\'s installation
7651
+ * @param {string} appUuid
7652
+ * @param {*} [options] Override http request option.
7653
+ * @throws {RequiredError}
7654
+ */
7655
+ public usagePeriods(appUuid: string, options?: RawAxiosRequestConfig) {
7656
+ return AppBillingApiFp(this.configuration).usagePeriods(appUuid, options).then((request) => request(this.axios, this.basePath));
7657
+ }
7658
+ }
7659
+
7660
+
7661
+
6716
7662
  /**
6717
7663
  * AppInstallationRuntimeApi - axios parameter creator
6718
7664
  */