@managespace/sdk 0.1.90 → 0.1.92

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.
Files changed (31) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +1 -7
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/extensibility/functions/project/billing.js +0 -5
  4. package/dist/generated/apis/default-api.d.ts +1 -11
  5. package/dist/generated/apis/default-api.d.ts.map +1 -1
  6. package/dist/generated/apis/default-api.js +0 -34
  7. package/dist/generated/models/asset-details.d.ts +0 -6
  8. package/dist/generated/models/asset-details.d.ts.map +1 -1
  9. package/dist/generated/models/asset-details.js +0 -2
  10. package/dist/generated/models/index.d.ts +1 -1
  11. package/dist/generated/models/index.d.ts.map +1 -1
  12. package/dist/generated/models/index.js +1 -1
  13. package/dist/generated/models/omit-type-class.d.ts +33 -0
  14. package/dist/generated/models/omit-type-class.d.ts.map +1 -0
  15. package/dist/generated/models/omit-type-class.js +49 -0
  16. package/dist/generated/models/payment-run-filter-options.d.ts +7 -0
  17. package/dist/generated/models/payment-run-filter-options.d.ts.map +1 -1
  18. package/dist/generated/models/payment-run-filter-options.js +3 -0
  19. package/package.deploy.json +1 -1
  20. package/package.json +1 -1
  21. package/src/extensibility/functions/project/billing.ts +1 -8
  22. package/src/generated/.openapi-generator/FILES +1 -1
  23. package/src/generated/apis/default-api.ts +0 -57
  24. package/src/generated/models/asset-details.ts +0 -8
  25. package/src/generated/models/index.ts +1 -1
  26. package/src/generated/models/omit-type-class.ts +65 -0
  27. package/src/generated/models/payment-run-filter-options.ts +15 -0
  28. package/dist/generated/models/refund-invoice.d.ts +0 -51
  29. package/dist/generated/models/refund-invoice.d.ts.map +0 -1
  30. package/dist/generated/models/refund-invoice.js +0 -63
  31. package/src/generated/models/refund-invoice.ts +0 -93
@@ -0,0 +1,33 @@
1
+ /**
2
+ * ManageSpace API
3
+ * ManageSpace API Documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OmitTypeClass
16
+ */
17
+ export interface OmitTypeClass {
18
+ /**
19
+ * Id
20
+ * @type {string}
21
+ * @memberof OmitTypeClass
22
+ */
23
+ id?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the OmitTypeClass interface.
27
+ */
28
+ export declare function instanceOfOmitTypeClass(value: object): value is OmitTypeClass;
29
+ export declare function OmitTypeClassFromJSON(json: any): OmitTypeClass;
30
+ export declare function OmitTypeClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): OmitTypeClass;
31
+ export declare function OmitTypeClassToJSON(json: any): OmitTypeClass;
32
+ export declare function OmitTypeClassToJSONTyped(value?: OmitTypeClass | null, ignoreDiscriminator?: boolean): any;
33
+ //# sourceMappingURL=omit-type-class.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"omit-type-class.d.ts","sourceRoot":"","sources":["../../../src/generated/models/omit-type-class.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAQjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShH"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ManageSpace API
6
+ * ManageSpace API Documentation
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OmitTypeClassToJSONTyped = exports.OmitTypeClassToJSON = exports.OmitTypeClassFromJSONTyped = exports.OmitTypeClassFromJSON = exports.instanceOfOmitTypeClass = void 0;
17
+ /**
18
+ * Check if a given object implements the OmitTypeClass interface.
19
+ */
20
+ function instanceOfOmitTypeClass(value) {
21
+ return true;
22
+ }
23
+ exports.instanceOfOmitTypeClass = instanceOfOmitTypeClass;
24
+ function OmitTypeClassFromJSON(json) {
25
+ return OmitTypeClassFromJSONTyped(json, false);
26
+ }
27
+ exports.OmitTypeClassFromJSON = OmitTypeClassFromJSON;
28
+ function OmitTypeClassFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'id': json['id'] == null ? undefined : json['id'],
34
+ };
35
+ }
36
+ exports.OmitTypeClassFromJSONTyped = OmitTypeClassFromJSONTyped;
37
+ function OmitTypeClassToJSON(json) {
38
+ return OmitTypeClassToJSONTyped(json, false);
39
+ }
40
+ exports.OmitTypeClassToJSON = OmitTypeClassToJSON;
41
+ function OmitTypeClassToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'id': value['id'],
47
+ };
48
+ }
49
+ exports.OmitTypeClassToJSONTyped = OmitTypeClassToJSONTyped;
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaymentRunFilterCondition } from './payment-run-filter-condition';
13
+ import type { OmitTypeClass } from './omit-type-class';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,12 @@ export interface PaymentRunFilterOptions {
28
29
  * @memberof PaymentRunFilterOptions
29
30
  */
30
31
  invoice?: Array<PaymentRunFilterCondition>;
32
+ /**
33
+ * List of billing run IDs to filter payment runs by
34
+ * @type {Array<OmitTypeClass>}
35
+ * @memberof PaymentRunFilterOptions
36
+ */
37
+ billingRun?: Array<OmitTypeClass>;
31
38
  }
32
39
  /**
33
40
  * Check if a given object implements the PaymentRunFilterOptions interface.
@@ -1 +1 @@
1
- {"version":3,"file":"payment-run-filter-options.d.ts","sourceRoot":"","sources":["../../../src/generated/models/payment-run-filter-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAQhF;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC9C;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAEjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CASrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpI"}
1
+ {"version":3,"file":"payment-run-filter-options.d.ts","sourceRoot":"","sources":["../../../src/generated/models/payment-run-filter-options.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAOhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5C;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC3C;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAEjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAUrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpI"}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PaymentRunFilterOptionsToJSONTyped = exports.PaymentRunFilterOptionsToJSON = exports.PaymentRunFilterOptionsFromJSONTyped = exports.PaymentRunFilterOptionsFromJSON = exports.instanceOfPaymentRunFilterOptions = void 0;
17
17
  const payment_run_filter_condition_1 = require("./payment-run-filter-condition");
18
+ const omit_type_class_1 = require("./omit-type-class");
18
19
  /**
19
20
  * Check if a given object implements the PaymentRunFilterOptions interface.
20
21
  */
@@ -33,6 +34,7 @@ function PaymentRunFilterOptionsFromJSONTyped(json, ignoreDiscriminator) {
33
34
  return {
34
35
  'customer': json['customer'] == null ? undefined : (json['customer'].map(payment_run_filter_condition_1.PaymentRunFilterConditionFromJSON)),
35
36
  'invoice': json['invoice'] == null ? undefined : (json['invoice'].map(payment_run_filter_condition_1.PaymentRunFilterConditionFromJSON)),
37
+ 'billingRun': json['billingRun'] == null ? undefined : (json['billingRun'].map(omit_type_class_1.OmitTypeClassFromJSON)),
36
38
  };
37
39
  }
38
40
  exports.PaymentRunFilterOptionsFromJSONTyped = PaymentRunFilterOptionsFromJSONTyped;
@@ -47,6 +49,7 @@ function PaymentRunFilterOptionsToJSONTyped(value, ignoreDiscriminator = false)
47
49
  return {
48
50
  'customer': value['customer'] == null ? undefined : (value['customer'].map(payment_run_filter_condition_1.PaymentRunFilterConditionToJSON)),
49
51
  'invoice': value['invoice'] == null ? undefined : (value['invoice'].map(payment_run_filter_condition_1.PaymentRunFilterConditionToJSON)),
52
+ 'billingRun': value['billingRun'] == null ? undefined : (value['billingRun'].map(omit_type_class_1.OmitTypeClassToJSON)),
50
53
  };
51
54
  }
52
55
  exports.PaymentRunFilterOptionsToJSONTyped = PaymentRunFilterOptionsToJSONTyped;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -40,10 +40,10 @@ import {
40
40
  Refund,
41
41
  UpdatePayment as _UpdatePayment,
42
42
  UpdateOrder as _UpdateOrder,
43
- RefundInvoice as _RefundInvoice,
44
43
  ProductType,
45
44
  OrderType,
46
45
  CustomerBalance,
46
+ GetOrdersRequest
47
47
  } from '../../../generated';
48
48
  import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
49
49
  import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
@@ -167,13 +167,6 @@ export namespace Billing {
167
167
  };
168
168
  }
169
169
 
170
- export class RefundInvoice implements ExtPlugin {
171
- responseType!: Invoice;
172
- payload!: {
173
- invoiceId: string;
174
- } & _RefundInvoice;
175
- }
176
-
177
170
  export class GetPaymentRuns implements ExtPlugin {
178
171
  responseType!: PaymentRun[];
179
172
  payload!: BasePaginationQuery;
@@ -157,6 +157,7 @@ models/map-feature.ts
157
157
  models/merge-assets-custom.ts
158
158
  models/note.ts
159
159
  models/notification.ts
160
+ models/omit-type-class.ts
160
161
  models/order-line-item.ts
161
162
  models/order-operator.ts
162
163
  models/order-type.ts
@@ -194,7 +195,6 @@ models/project1.ts
194
195
  models/project2.ts
195
196
  models/rate-change-status.ts
196
197
  models/rate-change.ts
197
- models/refund-invoice.ts
198
198
  models/refund.ts
199
199
  models/revenue-rule.ts
200
200
  models/role.ts
@@ -156,7 +156,6 @@ import type {
156
156
  Project,
157
157
  RateChange,
158
158
  Refund,
159
- RefundInvoice,
160
159
  RevenueRule,
161
160
  Roles,
162
161
  SendEmail,
@@ -489,8 +488,6 @@ import {
489
488
  RateChangeToJSON,
490
489
  RefundFromJSON,
491
490
  RefundToJSON,
492
- RefundInvoiceFromJSON,
493
- RefundInvoiceToJSON,
494
491
  RevenueRuleFromJSON,
495
492
  RevenueRuleToJSON,
496
493
  RolesFromJSON,
@@ -1339,11 +1336,6 @@ export interface MergeAssetsRequest {
1339
1336
  mergeAssetsCustom: MergeAssetsCustom;
1340
1337
  }
1341
1338
 
1342
- export interface RefundInvoiceRequest {
1343
- invoiceId: string;
1344
- refundInvoice: RefundInvoice;
1345
- }
1346
-
1347
1339
  export interface RunChecklistRequest {
1348
1340
  siteId: string;
1349
1341
  }
@@ -8376,55 +8368,6 @@ export class DefaultApi extends runtime.BaseAPI {
8376
8368
  return await response.value();
8377
8369
  }
8378
8370
 
8379
- /**
8380
- */
8381
- async refundInvoiceRaw(requestParameters: RefundInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Invoice>> {
8382
- if (requestParameters['invoiceId'] == null) {
8383
- throw new runtime.RequiredError(
8384
- 'invoiceId',
8385
- 'Required parameter "invoiceId" was null or undefined when calling refundInvoice().'
8386
- );
8387
- }
8388
-
8389
- if (requestParameters['refundInvoice'] == null) {
8390
- throw new runtime.RequiredError(
8391
- 'refundInvoice',
8392
- 'Required parameter "refundInvoice" was null or undefined when calling refundInvoice().'
8393
- );
8394
- }
8395
-
8396
- const queryParameters: any = {};
8397
-
8398
- const headerParameters: runtime.HTTPHeaders = {};
8399
-
8400
- headerParameters['Content-Type'] = 'application/json';
8401
-
8402
- if (this.configuration && this.configuration.accessToken) {
8403
- const token = this.configuration.accessToken;
8404
- const tokenString = await token("bearer", []);
8405
-
8406
- if (tokenString) {
8407
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
8408
- }
8409
- }
8410
- const response = await this.request({
8411
- path: `/api/billing/invoices/{invoiceId}/refunds`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
8412
- method: 'POST',
8413
- headers: headerParameters,
8414
- query: queryParameters,
8415
- body: RefundInvoiceToJSON(requestParameters['refundInvoice']),
8416
- }, initOverrides);
8417
-
8418
- return new runtime.JSONApiResponse(response, (jsonValue) => InvoiceFromJSON(jsonValue));
8419
- }
8420
-
8421
- /**
8422
- */
8423
- async refundInvoice(requestParameters: RefundInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Invoice> {
8424
- const response = await this.refundInvoiceRaw(requestParameters, initOverrides);
8425
- return await response.value();
8426
- }
8427
-
8428
8371
  /**
8429
8372
  */
8430
8373
  async runChecklistRaw(requestParameters: RunChecklistRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Success>> {
@@ -69,12 +69,6 @@ export interface AssetDetails {
69
69
  * @memberof AssetDetails
70
70
  */
71
71
  leaseStartDate?: string;
72
- /**
73
- * The end date of the lease
74
- * @type {string}
75
- * @memberof AssetDetails
76
- */
77
- leaseEndDate?: string;
78
72
  /**
79
73
  * The amount the customer pays for the unit
80
74
  * @type {string}
@@ -126,7 +120,6 @@ export function AssetDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolea
126
120
  'customerBalance': json['customerBalance'] == null ? undefined : json['customerBalance'],
127
121
  'lastPaymentDate': json['lastPaymentDate'] == null ? undefined : json['lastPaymentDate'],
128
122
  'leaseStartDate': json['leaseStartDate'] == null ? undefined : json['leaseStartDate'],
129
- 'leaseEndDate': json['leaseEndDate'] == null ? undefined : json['leaseEndDate'],
130
123
  'customersRent': json['customersRent'] == null ? undefined : json['customersRent'],
131
124
  'streetRate': json['streetRate'],
132
125
  'paidThroughDate': json['paidThroughDate'] == null ? undefined : (new Date(json['paidThroughDate'])),
@@ -152,7 +145,6 @@ export function AssetDetailsToJSONTyped(value?: AssetDetails | null, ignoreDiscr
152
145
  'customerBalance': value['customerBalance'],
153
146
  'lastPaymentDate': value['lastPaymentDate'],
154
147
  'leaseStartDate': value['leaseStartDate'],
155
- 'leaseEndDate': value['leaseEndDate'],
156
148
  'customersRent': value['customersRent'],
157
149
  'streetRate': value['streetRate'],
158
150
  'paidThroughDate': value['paidThroughDate'] == null ? undefined : ((value['paidThroughDate']).toISOString()),
@@ -155,6 +155,7 @@ export * from './map-feature';
155
155
  export * from './merge-assets-custom';
156
156
  export * from './note';
157
157
  export * from './notification';
158
+ export * from './omit-type-class';
158
159
  export * from './order';
159
160
  export * from './order-line-item';
160
161
  export * from './order-operator';
@@ -193,7 +194,6 @@ export * from './project-version1';
193
194
  export * from './rate-change';
194
195
  export * from './rate-change-status';
195
196
  export * from './refund';
196
- export * from './refund-invoice';
197
197
  export * from './revenue-rule';
198
198
  export * from './role';
199
199
  export * from './role1';
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * ManageSpace API
5
+ * ManageSpace API Documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface OmitTypeClass
20
+ */
21
+ export interface OmitTypeClass {
22
+ /**
23
+ * Id
24
+ * @type {string}
25
+ * @memberof OmitTypeClass
26
+ */
27
+ id?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the OmitTypeClass interface.
32
+ */
33
+ export function instanceOfOmitTypeClass(value: object): value is OmitTypeClass {
34
+ return true;
35
+ }
36
+
37
+ export function OmitTypeClassFromJSON(json: any): OmitTypeClass {
38
+ return OmitTypeClassFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function OmitTypeClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): OmitTypeClass {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'id': json['id'] == null ? undefined : json['id'],
48
+ };
49
+ }
50
+
51
+ export function OmitTypeClassToJSON(json: any): OmitTypeClass {
52
+ return OmitTypeClassToJSONTyped(json, false);
53
+ }
54
+
55
+ export function OmitTypeClassToJSONTyped(value?: OmitTypeClass | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'id': value['id'],
63
+ };
64
+ }
65
+
@@ -20,6 +20,13 @@ import {
20
20
  PaymentRunFilterConditionToJSON,
21
21
  PaymentRunFilterConditionToJSONTyped,
22
22
  } from './payment-run-filter-condition';
23
+ import type { OmitTypeClass } from './omit-type-class';
24
+ import {
25
+ OmitTypeClassFromJSON,
26
+ OmitTypeClassFromJSONTyped,
27
+ OmitTypeClassToJSON,
28
+ OmitTypeClassToJSONTyped,
29
+ } from './omit-type-class';
23
30
 
24
31
  /**
25
32
  *
@@ -39,6 +46,12 @@ export interface PaymentRunFilterOptions {
39
46
  * @memberof PaymentRunFilterOptions
40
47
  */
41
48
  invoice?: Array<PaymentRunFilterCondition>;
49
+ /**
50
+ * List of billing run IDs to filter payment runs by
51
+ * @type {Array<OmitTypeClass>}
52
+ * @memberof PaymentRunFilterOptions
53
+ */
54
+ billingRun?: Array<OmitTypeClass>;
42
55
  }
43
56
 
44
57
  /**
@@ -60,6 +73,7 @@ export function PaymentRunFilterOptionsFromJSONTyped(json: any, ignoreDiscrimina
60
73
 
61
74
  'customer': json['customer'] == null ? undefined : ((json['customer'] as Array<any>).map(PaymentRunFilterConditionFromJSON)),
62
75
  'invoice': json['invoice'] == null ? undefined : ((json['invoice'] as Array<any>).map(PaymentRunFilterConditionFromJSON)),
76
+ 'billingRun': json['billingRun'] == null ? undefined : ((json['billingRun'] as Array<any>).map(OmitTypeClassFromJSON)),
63
77
  };
64
78
  }
65
79
 
@@ -76,6 +90,7 @@ export function PaymentRunFilterOptionsToJSONTyped(value?: PaymentRunFilterOptio
76
90
 
77
91
  'customer': value['customer'] == null ? undefined : ((value['customer'] as Array<any>).map(PaymentRunFilterConditionToJSON)),
78
92
  'invoice': value['invoice'] == null ? undefined : ((value['invoice'] as Array<any>).map(PaymentRunFilterConditionToJSON)),
93
+ 'billingRun': value['billingRun'] == null ? undefined : ((value['billingRun'] as Array<any>).map(OmitTypeClassToJSON)),
79
94
  };
80
95
  }
81
96
 
@@ -1,51 +0,0 @@
1
- /**
2
- * ManageSpace API
3
- * ManageSpace API Documentation
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface RefundInvoice
16
- */
17
- export interface RefundInvoice {
18
- /**
19
- * Customer ID in the billing system
20
- * @type {string}
21
- * @memberof RefundInvoice
22
- */
23
- externalCustomerId: string;
24
- /**
25
- * Refund date
26
- * @type {string}
27
- * @memberof RefundInvoice
28
- */
29
- refundDate: string;
30
- /**
31
- * Refund amount
32
- * @type {string}
33
- * @memberof RefundInvoice
34
- */
35
- refundAmount: string;
36
- /**
37
- * Refund type
38
- * @type {string}
39
- * @memberof RefundInvoice
40
- */
41
- refundType: string;
42
- }
43
- /**
44
- * Check if a given object implements the RefundInvoice interface.
45
- */
46
- export declare function instanceOfRefundInvoice(value: object): value is RefundInvoice;
47
- export declare function RefundInvoiceFromJSON(json: any): RefundInvoice;
48
- export declare function RefundInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundInvoice;
49
- export declare function RefundInvoiceToJSON(json: any): RefundInvoice;
50
- export declare function RefundInvoiceToJSONTyped(value?: RefundInvoice | null, ignoreDiscriminator?: boolean): any;
51
- //# sourceMappingURL=refund-invoice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"refund-invoice.d.ts","sourceRoot":"","sources":["../../../src/generated/models/refund-invoice.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * ManageSpace API
6
- * ManageSpace API Documentation
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.RefundInvoiceToJSONTyped = exports.RefundInvoiceToJSON = exports.RefundInvoiceFromJSONTyped = exports.RefundInvoiceFromJSON = exports.instanceOfRefundInvoice = void 0;
17
- /**
18
- * Check if a given object implements the RefundInvoice interface.
19
- */
20
- function instanceOfRefundInvoice(value) {
21
- if (!('externalCustomerId' in value) || value['externalCustomerId'] === undefined)
22
- return false;
23
- if (!('refundDate' in value) || value['refundDate'] === undefined)
24
- return false;
25
- if (!('refundAmount' in value) || value['refundAmount'] === undefined)
26
- return false;
27
- if (!('refundType' in value) || value['refundType'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- exports.instanceOfRefundInvoice = instanceOfRefundInvoice;
32
- function RefundInvoiceFromJSON(json) {
33
- return RefundInvoiceFromJSONTyped(json, false);
34
- }
35
- exports.RefundInvoiceFromJSON = RefundInvoiceFromJSON;
36
- function RefundInvoiceFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'externalCustomerId': json['externalCustomerId'],
42
- 'refundDate': json['refundDate'],
43
- 'refundAmount': json['refundAmount'],
44
- 'refundType': json['refundType'],
45
- };
46
- }
47
- exports.RefundInvoiceFromJSONTyped = RefundInvoiceFromJSONTyped;
48
- function RefundInvoiceToJSON(json) {
49
- return RefundInvoiceToJSONTyped(json, false);
50
- }
51
- exports.RefundInvoiceToJSON = RefundInvoiceToJSON;
52
- function RefundInvoiceToJSONTyped(value, ignoreDiscriminator = false) {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'externalCustomerId': value['externalCustomerId'],
58
- 'refundDate': value['refundDate'],
59
- 'refundAmount': value['refundAmount'],
60
- 'refundType': value['refundType'],
61
- };
62
- }
63
- exports.RefundInvoiceToJSONTyped = RefundInvoiceToJSONTyped;
@@ -1,93 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * ManageSpace API
5
- * ManageSpace API Documentation
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface RefundInvoice
20
- */
21
- export interface RefundInvoice {
22
- /**
23
- * Customer ID in the billing system
24
- * @type {string}
25
- * @memberof RefundInvoice
26
- */
27
- externalCustomerId: string;
28
- /**
29
- * Refund date
30
- * @type {string}
31
- * @memberof RefundInvoice
32
- */
33
- refundDate: string;
34
- /**
35
- * Refund amount
36
- * @type {string}
37
- * @memberof RefundInvoice
38
- */
39
- refundAmount: string;
40
- /**
41
- * Refund type
42
- * @type {string}
43
- * @memberof RefundInvoice
44
- */
45
- refundType: string;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the RefundInvoice interface.
50
- */
51
- export function instanceOfRefundInvoice(value: object): value is RefundInvoice {
52
- if (!('externalCustomerId' in value) || value['externalCustomerId'] === undefined) return false;
53
- if (!('refundDate' in value) || value['refundDate'] === undefined) return false;
54
- if (!('refundAmount' in value) || value['refundAmount'] === undefined) return false;
55
- if (!('refundType' in value) || value['refundType'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function RefundInvoiceFromJSON(json: any): RefundInvoice {
60
- return RefundInvoiceFromJSONTyped(json, false);
61
- }
62
-
63
- export function RefundInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundInvoice {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'externalCustomerId': json['externalCustomerId'],
70
- 'refundDate': json['refundDate'],
71
- 'refundAmount': json['refundAmount'],
72
- 'refundType': json['refundType'],
73
- };
74
- }
75
-
76
- export function RefundInvoiceToJSON(json: any): RefundInvoice {
77
- return RefundInvoiceToJSONTyped(json, false);
78
- }
79
-
80
- export function RefundInvoiceToJSONTyped(value?: RefundInvoice | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'externalCustomerId': value['externalCustomerId'],
88
- 'refundDate': value['refundDate'],
89
- 'refundAmount': value['refundAmount'],
90
- 'refundType': value['refundType'],
91
- };
92
- }
93
-