@otr-app/shared-backend-generated-client 2.3.184 → 2.3.185

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.
@@ -548,7 +548,6 @@ model/lineItemModel.ts
548
548
  model/lineItemRequest.ts
549
549
  model/listAgentBookingsResponse.ts
550
550
  model/listBillingProductsResponse.ts
551
- model/listBillingSubscribersRequest.ts
552
551
  model/listBillingSubscribersResponse.ts
553
552
  model/listBillingSubscriptionModel.ts
554
553
  model/listBillingSubscriptionsResponse.ts
@@ -67,8 +67,6 @@ import { GetPotentialCustomersRequest } from '../model/getPotentialCustomersRequ
67
67
  // @ts-ignore
68
68
  import { GetPotentialCustomersResponse } from '../model/getPotentialCustomersResponse';
69
69
  // @ts-ignore
70
- import { ListBillingSubscribersRequest } from '../model/listBillingSubscribersRequest';
71
- // @ts-ignore
72
70
  import { ListBillingSubscribersResponse } from '../model/listBillingSubscribersResponse';
73
71
 
74
72
  // @ts-ignore
@@ -1028,20 +1026,39 @@ export class ConsoleListControllerService {
1028
1026
 
1029
1027
  /**
1030
1028
  * listBillingSubscribers
1029
+ * @param billingInterval billingInterval
1030
+ * @param billingSubscriptionStatus billingSubscriptionStatus
1031
+ * @param endDate endDate
1031
1032
  * @param length length
1032
1033
  * @param page page
1033
- * @param start start
1034
- * @param statuses statuses
1035
- * @param request request
1034
+ * @param planName planName
1035
+ * @param shouldIncludeSubscribers shouldIncludeSubscribers
1036
+ * @param sortBy sortBy
1037
+ * @param sortOrder sortOrder
1038
+ * @param startDate startDate
1039
+ * @param subscriberName subscriberName
1040
+ * @param timeZoneId timeZoneId
1036
1041
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1037
1042
  * @param reportProgress flag to report request and response progress.
1038
1043
  */
1039
- public listBillingSubscribersUsingPOST(length?: number, page?: number, start?: string, statuses?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', request?: ListBillingSubscribersRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<ListBillingSubscribersResponse>;
1040
- public listBillingSubscribersUsingPOST(length?: number, page?: number, start?: string, statuses?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', request?: ListBillingSubscribersRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<ListBillingSubscribersResponse>>;
1041
- public listBillingSubscribersUsingPOST(length?: number, page?: number, start?: string, statuses?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', request?: ListBillingSubscribersRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<ListBillingSubscribersResponse>>;
1042
- public listBillingSubscribersUsingPOST(length?: number, page?: number, start?: string, statuses?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', request?: ListBillingSubscribersRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
1044
+ public listBillingSubscribersUsingGET(billingInterval?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', billingSubscriptionStatus?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', endDate?: string, length?: number, page?: number, planName?: string, shouldIncludeSubscribers?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, subscriberName?: string, timeZoneId?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<ListBillingSubscribersResponse>;
1045
+ public listBillingSubscribersUsingGET(billingInterval?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', billingSubscriptionStatus?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', endDate?: string, length?: number, page?: number, planName?: string, shouldIncludeSubscribers?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, subscriberName?: string, timeZoneId?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpResponse<ListBillingSubscribersResponse>>;
1046
+ public listBillingSubscribersUsingGET(billingInterval?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', billingSubscriptionStatus?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', endDate?: string, length?: number, page?: number, planName?: string, shouldIncludeSubscribers?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, subscriberName?: string, timeZoneId?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<HttpEvent<ListBillingSubscribersResponse>>;
1047
+ public listBillingSubscribersUsingGET(billingInterval?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY' | 'YEARLY', billingSubscriptionStatus?: 'ACTIVE' | 'CANCELED' | 'INCOMPLETE' | 'INCOMPLETE_EXPIRED' | 'IN_TRIAL_PERIOD' | 'PAST_DUE' | 'UNKNOWN' | 'UNPAID', endDate?: string, length?: number, page?: number, planName?: string, shouldIncludeSubscribers?: boolean, sortBy?: string, sortOrder?: string, startDate?: string, subscriberName?: string, timeZoneId?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable<any> {
1043
1048
 
1044
1049
  let localVarQueryParameters = new HttpParams({encoder: this.encoder});
1050
+ if (billingInterval !== undefined && billingInterval !== null) {
1051
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1052
+ <any>billingInterval, 'billingInterval');
1053
+ }
1054
+ if (billingSubscriptionStatus !== undefined && billingSubscriptionStatus !== null) {
1055
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1056
+ <any>billingSubscriptionStatus, 'billingSubscriptionStatus');
1057
+ }
1058
+ if (endDate !== undefined && endDate !== null) {
1059
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1060
+ <any>endDate, 'endDate');
1061
+ }
1045
1062
  if (length !== undefined && length !== null) {
1046
1063
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1047
1064
  <any>length, 'length');
@@ -1050,13 +1067,33 @@ export class ConsoleListControllerService {
1050
1067
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1051
1068
  <any>page, 'page');
1052
1069
  }
1053
- if (start !== undefined && start !== null) {
1070
+ if (planName !== undefined && planName !== null) {
1071
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1072
+ <any>planName, 'planName');
1073
+ }
1074
+ if (shouldIncludeSubscribers !== undefined && shouldIncludeSubscribers !== null) {
1075
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1076
+ <any>shouldIncludeSubscribers, 'shouldIncludeSubscribers');
1077
+ }
1078
+ if (sortBy !== undefined && sortBy !== null) {
1079
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1080
+ <any>sortBy, 'sortBy');
1081
+ }
1082
+ if (sortOrder !== undefined && sortOrder !== null) {
1054
1083
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1055
- <any>start, 'start');
1084
+ <any>sortOrder, 'sortOrder');
1056
1085
  }
1057
- if (statuses !== undefined && statuses !== null) {
1086
+ if (startDate !== undefined && startDate !== null) {
1058
1087
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1059
- <any>statuses, 'statuses');
1088
+ <any>startDate, 'startDate');
1089
+ }
1090
+ if (subscriberName !== undefined && subscriberName !== null) {
1091
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1092
+ <any>subscriberName, 'subscriberName');
1093
+ }
1094
+ if (timeZoneId !== undefined && timeZoneId !== null) {
1095
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
1096
+ <any>timeZoneId, 'timeZoneId');
1060
1097
  }
1061
1098
 
1062
1099
  let localVarHeaders = this.defaultHeaders;
@@ -1079,15 +1116,6 @@ export class ConsoleListControllerService {
1079
1116
  }
1080
1117
 
1081
1118
 
1082
- // to determine the Content-Type header
1083
- const consumes: string[] = [
1084
- 'application/json'
1085
- ];
1086
- const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
1087
- if (httpContentTypeSelected !== undefined) {
1088
- localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1089
- }
1090
-
1091
1119
  let responseType_: 'text' | 'json' | 'blob' = 'json';
1092
1120
  if (localVarHttpHeaderAcceptSelected) {
1093
1121
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1100,10 +1128,9 @@ export class ConsoleListControllerService {
1100
1128
  }
1101
1129
 
1102
1130
  let localVarPath = `/api/v1/billing/subscribers`;
1103
- return this.httpClient.request<ListBillingSubscribersResponse>('post', `${this.configuration.basePath}${localVarPath}`,
1131
+ return this.httpClient.request<ListBillingSubscribersResponse>('get', `${this.configuration.basePath}${localVarPath}`,
1104
1132
  {
1105
1133
  context: localVarHttpContext,
1106
- body: request,
1107
1134
  params: localVarQueryParameters,
1108
1135
  responseType: <any>responseType_,
1109
1136
  withCredentials: this.configuration.withCredentials,
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
  export interface BillingSubscriberAggregateModel {
15
- totalSubscribers?: number;
15
+ totalRecords?: number;
16
16
  totalUniqueActiveSubscriptions?: number;
17
17
  totalUniqueCancelledSubscriptions?: number;
18
18
  }
@@ -14,7 +14,8 @@ import { BillingSubscriberModel } from './billingSubscriberModel';
14
14
 
15
15
 
16
16
  export interface ListBillingSubscribersResponse {
17
- aggregates?: BillingSubscriberAggregateModel;
17
+ matchingAggregates?: BillingSubscriberAggregateModel;
18
18
  subscribers?: Array<BillingSubscriberModel>;
19
+ totalAggregates?: BillingSubscriberAggregateModel;
19
20
  }
20
21
 
@@ -429,7 +429,6 @@ export * from './lineItemModel';
429
429
  export * from './lineItemRequest';
430
430
  export * from './listAgentBookingsResponse';
431
431
  export * from './listBillingProductsResponse';
432
- export * from './listBillingSubscribersRequest';
433
432
  export * from './listBillingSubscribersResponse';
434
433
  export * from './listBillingSubscriptionModel';
435
434
  export * from './listBillingSubscriptionsResponse';
@@ -506,15 +506,22 @@ angular.module('otrBackendService', [])
506
506
  /**
507
507
  * listBillingSubscribers
508
508
  * @method
509
- * @name OtrService#listBillingSubscribersUsingPOST
509
+ * @name OtrService#listBillingSubscribersUsingGET
510
510
  * @param {object} parameters - method options and parameters
511
+ * @param {string} parameters.billingInterval - billingInterval
512
+ * @param {string} parameters.billingSubscriptionStatus - billingSubscriptionStatus
513
+ * @param {string} parameters.endDate - endDate
511
514
  * @param {integer} parameters.length - length
512
515
  * @param {integer} parameters.page - page
513
- * @param {} parameters.request - request
514
- * @param {string} parameters.start - start
515
- * @param {string} parameters.statuses - statuses
516
+ * @param {string} parameters.planName - planName
517
+ * @param {boolean} parameters.shouldIncludeSubscribers - shouldIncludeSubscribers
518
+ * @param {string} parameters.sortBy - sortBy
519
+ * @param {string} parameters.sortOrder - sortOrder
520
+ * @param {string} parameters.startDate - startDate
521
+ * @param {string} parameters.subscriberName - subscriberName
522
+ * @param {string} parameters.timeZoneId - timeZoneId
516
523
  */
517
- OtrService.prototype.listBillingSubscribersUsingPOST = function(parameters) {
524
+ OtrService.prototype.listBillingSubscribersUsingGET = function(parameters) {
518
525
  if (parameters === undefined) {
519
526
  parameters = {};
520
527
  }
@@ -527,7 +534,18 @@ angular.module('otrBackendService', [])
527
534
  form = {};
528
535
 
529
536
  headers['Accept'] = ['application/json'];
530
- headers['Content-Type'] = ['application/json'];
537
+
538
+ if (parameters['billingInterval'] !== undefined) {
539
+ queryParameters['billingInterval'] = parameters['billingInterval'];
540
+ }
541
+
542
+ if (parameters['billingSubscriptionStatus'] !== undefined) {
543
+ queryParameters['billingSubscriptionStatus'] = parameters['billingSubscriptionStatus'];
544
+ }
545
+
546
+ if (parameters['endDate'] !== undefined) {
547
+ queryParameters['endDate'] = parameters['endDate'];
548
+ }
531
549
 
532
550
  /** set default value **/
533
551
  queryParameters['length'] = 50;
@@ -540,21 +558,40 @@ angular.module('otrBackendService', [])
540
558
  queryParameters['page'] = parameters['page'];
541
559
  }
542
560
 
543
- if (parameters['request'] !== undefined) {
544
- body = parameters['request'];
561
+ if (parameters['planName'] !== undefined) {
562
+ queryParameters['planName'] = parameters['planName'];
545
563
  }
546
564
 
547
- if (parameters['start'] !== undefined) {
548
- queryParameters['start'] = parameters['start'];
565
+ /** set default value **/
566
+ queryParameters['shouldIncludeSubscribers'] = true;
567
+
568
+ if (parameters['shouldIncludeSubscribers'] !== undefined) {
569
+ queryParameters['shouldIncludeSubscribers'] = parameters['shouldIncludeSubscribers'];
549
570
  }
550
571
 
551
- if (parameters['statuses'] !== undefined) {
552
- queryParameters['statuses'] = parameters['statuses'];
572
+ if (parameters['sortBy'] !== undefined) {
573
+ queryParameters['sortBy'] = parameters['sortBy'];
574
+ }
575
+
576
+ if (parameters['sortOrder'] !== undefined) {
577
+ queryParameters['sortOrder'] = parameters['sortOrder'];
578
+ }
579
+
580
+ if (parameters['startDate'] !== undefined) {
581
+ queryParameters['startDate'] = parameters['startDate'];
582
+ }
583
+
584
+ if (parameters['subscriberName'] !== undefined) {
585
+ queryParameters['subscriberName'] = parameters['subscriberName'];
586
+ }
587
+
588
+ if (parameters['timeZoneId'] !== undefined) {
589
+ queryParameters['timeZoneId'] = parameters['timeZoneId'];
553
590
  }
554
591
 
555
592
  queryParameters = mergeQueryParams(parameters, queryParameters);
556
593
 
557
- this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
594
+ this.request('GET', domain + path, parameters, body, headers, queryParameters, form, deferred);
558
595
 
559
596
  return deferred.promise;
560
597
  };