@managespace/sdk 0.1.186 → 0.1.188-gl

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 (122) hide show
  1. package/dist/extensibility/functions/project/billing.d.ts +3 -1
  2. package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
  3. package/dist/generated/apis/default-api.d.ts +37 -1
  4. package/dist/generated/apis/default-api.d.ts.map +1 -1
  5. package/dist/generated/apis/default-api.js +132 -0
  6. package/dist/generated/models/billing-run.d.ts +6 -0
  7. package/dist/generated/models/billing-run.d.ts.map +1 -1
  8. package/dist/generated/models/billing-run.js +2 -0
  9. package/dist/generated/models/create-billing-run.d.ts +6 -0
  10. package/dist/generated/models/create-billing-run.d.ts.map +1 -1
  11. package/dist/generated/models/create-billing-run.js +2 -0
  12. package/dist/generated/models/create-order.d.ts +6 -0
  13. package/dist/generated/models/create-order.d.ts.map +1 -1
  14. package/dist/generated/models/create-order.js +2 -0
  15. package/dist/generated/models/create-product-custom.d.ts +6 -0
  16. package/dist/generated/models/create-product-custom.d.ts.map +1 -1
  17. package/dist/generated/models/create-product-custom.js +2 -0
  18. package/dist/generated/models/create-site-custom.d.ts +12 -0
  19. package/dist/generated/models/create-site-custom.d.ts.map +1 -1
  20. package/dist/generated/models/create-site-custom.js +4 -0
  21. package/dist/generated/models/create-subscription-charge.d.ts +3 -3
  22. package/dist/generated/models/create-subscription-charge.d.ts.map +1 -1
  23. package/dist/generated/models/create-subscription-charge.js +3 -9
  24. package/dist/generated/models/custom-update-customer.d.ts +0 -6
  25. package/dist/generated/models/custom-update-customer.d.ts.map +1 -1
  26. package/dist/generated/models/custom-update-customer.js +0 -2
  27. package/dist/generated/models/document-status-value.d.ts +39 -0
  28. package/dist/generated/models/document-status-value.d.ts.map +1 -0
  29. package/dist/generated/models/document-status-value.js +55 -0
  30. package/dist/generated/models/document-status.d.ts +3 -5
  31. package/dist/generated/models/document-status.d.ts.map +1 -1
  32. package/dist/generated/models/document-status.js +3 -2
  33. package/dist/generated/models/financial-deposits-report-filters.d.ts +45 -0
  34. package/dist/generated/models/financial-deposits-report-filters.d.ts.map +1 -0
  35. package/dist/generated/models/financial-deposits-report-filters.js +57 -0
  36. package/dist/generated/models/financial-summary-report-filters.d.ts +45 -0
  37. package/dist/generated/models/financial-summary-report-filters.d.ts.map +1 -0
  38. package/dist/generated/models/financial-summary-report-filters.js +57 -0
  39. package/dist/generated/models/index.d.ts +3 -0
  40. package/dist/generated/models/index.d.ts.map +1 -1
  41. package/dist/generated/models/index.js +3 -0
  42. package/dist/generated/models/journal-entry-entries.d.ts +12 -0
  43. package/dist/generated/models/journal-entry-entries.d.ts.map +1 -1
  44. package/dist/generated/models/journal-entry-entries.js +8 -0
  45. package/dist/generated/models/journal-entry.d.ts +28 -0
  46. package/dist/generated/models/journal-entry.d.ts.map +1 -1
  47. package/dist/generated/models/journal-entry.js +22 -0
  48. package/dist/generated/models/order.d.ts +6 -0
  49. package/dist/generated/models/order.d.ts.map +1 -1
  50. package/dist/generated/models/order.js +2 -0
  51. package/dist/generated/models/product-custom.d.ts +6 -0
  52. package/dist/generated/models/product-custom.d.ts.map +1 -1
  53. package/dist/generated/models/product-custom.js +2 -0
  54. package/dist/generated/models/product-type.d.ts +3 -0
  55. package/dist/generated/models/product-type.d.ts.map +1 -1
  56. package/dist/generated/models/product-type.js +4 -1
  57. package/dist/generated/models/refund-invoice.d.ts +6 -0
  58. package/dist/generated/models/refund-invoice.d.ts.map +1 -1
  59. package/dist/generated/models/refund-invoice.js +2 -0
  60. package/dist/generated/models/site.d.ts +12 -0
  61. package/dist/generated/models/site.d.ts.map +1 -1
  62. package/dist/generated/models/site.js +8 -0
  63. package/dist/generated/models/subscription-charge.d.ts +3 -3
  64. package/dist/generated/models/subscription-charge.d.ts.map +1 -1
  65. package/dist/generated/models/subscription-charge.js +3 -9
  66. package/dist/generated/models/update-order.d.ts +6 -0
  67. package/dist/generated/models/update-order.d.ts.map +1 -1
  68. package/dist/generated/models/update-order.js +2 -0
  69. package/dist/generated/models/update-product.d.ts +6 -0
  70. package/dist/generated/models/update-product.d.ts.map +1 -1
  71. package/dist/generated/models/update-product.js +2 -0
  72. package/dist/generated/models/update-subscription-charge.d.ts +8 -8
  73. package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
  74. package/dist/generated/models/update-subscription-charge.js +4 -8
  75. package/package.json +5 -2
  76. package/src/extensibility/functions/project/billing.ts +3 -1
  77. package/src/generated/.openapi-generator/FILES +3 -0
  78. package/src/generated/apis/default-api.ts +196 -0
  79. package/src/generated/models/billing-run.ts +8 -0
  80. package/src/generated/models/create-billing-run.ts +8 -0
  81. package/src/generated/models/create-order.ts +8 -0
  82. package/src/generated/models/create-product-custom.ts +8 -0
  83. package/src/generated/models/create-site-custom.ts +16 -0
  84. package/src/generated/models/create-subscription-charge.ts +6 -9
  85. package/src/generated/models/custom-update-customer.ts +0 -8
  86. package/src/generated/models/document-status-value.ts +76 -0
  87. package/src/generated/models/document-status.ts +11 -4
  88. package/src/generated/models/financial-deposits-report-filters.ts +84 -0
  89. package/src/generated/models/financial-summary-report-filters.ts +84 -0
  90. package/src/generated/models/index.ts +3 -0
  91. package/src/generated/models/journal-entry-entries.ts +18 -0
  92. package/src/generated/models/journal-entry.ts +40 -0
  93. package/src/generated/models/order.ts +8 -0
  94. package/src/generated/models/product-custom.ts +8 -0
  95. package/src/generated/models/product-type.ts +4 -1
  96. package/src/generated/models/refund-invoice.ts +8 -0
  97. package/src/generated/models/site.ts +18 -0
  98. package/src/generated/models/subscription-charge.ts +6 -9
  99. package/src/generated/models/update-order.ts +8 -0
  100. package/src/generated/models/update-product.ts +8 -0
  101. package/src/generated/models/update-subscription-charge.ts +12 -14
  102. package/dist/extensions/host-bridge.d.ts +0 -166
  103. package/dist/extensions/host-bridge.d.ts.map +0 -1
  104. package/dist/extensions/host-bridge.js +0 -259
  105. package/dist/extensions/index.d.ts +0 -40
  106. package/dist/extensions/index.d.ts.map +0 -1
  107. package/dist/extensions/index.js +0 -55
  108. package/dist/extensions/types.d.ts +0 -111
  109. package/dist/extensions/types.d.ts.map +0 -1
  110. package/dist/extensions/types.js +0 -2
  111. package/dist/generated/apis/extensions-api.d.ts +0 -98
  112. package/dist/generated/apis/extensions-api.d.ts.map +0 -1
  113. package/dist/generated/apis/extensions-api.js +0 -295
  114. package/dist/generated/models/extension-org.d.ts +0 -64
  115. package/dist/generated/models/extension-org.d.ts.map +0 -1
  116. package/dist/generated/models/extension-org.js +0 -70
  117. package/dist/generated/models/extension.d.ts +0 -106
  118. package/dist/generated/models/extension.d.ts.map +0 -1
  119. package/dist/generated/models/extension.js +0 -98
  120. package/dist/generated/models/update-document-type.d.ts +0 -43
  121. package/dist/generated/models/update-document-type.d.ts.map +0 -1
  122. package/dist/generated/models/update-document-type.js +0 -61
@@ -119,6 +119,12 @@ export interface CreateProductCustom {
119
119
  * @memberof CreateProductCustom
120
120
  */
121
121
  oneTimeCharge: boolean;
122
+ /**
123
+ * Product ID to use when writing off this product's charge
124
+ * @type {string}
125
+ * @memberof CreateProductCustom
126
+ */
127
+ writeOffProductId?: string;
122
128
  }
123
129
 
124
130
 
@@ -161,6 +167,7 @@ export function CreateProductCustomFromJSONTyped(json: any, ignoreDiscriminator:
161
167
  'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
162
168
  'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
163
169
  'oneTimeCharge': json['oneTimeCharge'],
170
+ 'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
164
171
  };
165
172
  }
166
173
 
@@ -189,6 +196,7 @@ export function CreateProductCustomToJSONTyped(value?: CreateProductCustom | nul
189
196
  'incomeAccount': value['incomeAccount'],
190
197
  'productTaxGroupName': value['productTaxGroupName'],
191
198
  'oneTimeCharge': value['oneTimeCharge'],
199
+ 'writeOffProductId': value['writeOffProductId'],
192
200
  };
193
201
  }
194
202
 
@@ -64,6 +64,18 @@ export interface CreateSiteCustom {
64
64
  * @memberof CreateSiteCustom
65
65
  */
66
66
  division?: string | null;
67
+ /**
68
+ * Merchant identifier for payment processing
69
+ * @type {string}
70
+ * @memberof CreateSiteCustom
71
+ */
72
+ merchantId?: string | null;
73
+ /**
74
+ * Account number for payment processing
75
+ * @type {string}
76
+ * @memberof CreateSiteCustom
77
+ */
78
+ accountNumber?: string | null;
67
79
  /**
68
80
  * Site address.
69
81
  * @type {CreateAddress}
@@ -100,6 +112,8 @@ export function CreateSiteCustomFromJSONTyped(json: any, ignoreDiscriminator: bo
100
112
  'phoneNumber': json['phoneNumber'],
101
113
  'siteCode': json['siteCode'] == null ? undefined : json['siteCode'],
102
114
  'division': json['division'] == null ? undefined : json['division'],
115
+ 'merchantId': json['merchantId'] == null ? undefined : json['merchantId'],
116
+ 'accountNumber': json['accountNumber'] == null ? undefined : json['accountNumber'],
103
117
  'address': CreateAddressFromJSON(json['address']),
104
118
  };
105
119
  }
@@ -121,6 +135,8 @@ export function CreateSiteCustomToJSONTyped(value?: CreateSiteCustom | null, ign
121
135
  'phoneNumber': value['phoneNumber'],
122
136
  'siteCode': value['siteCode'],
123
137
  'division': value['division'],
138
+ 'merchantId': value['merchantId'],
139
+ 'accountNumber': value['accountNumber'],
124
140
  'address': CreateAddressToJSON(value['address']),
125
141
  };
126
142
  }
@@ -52,7 +52,7 @@ export interface CreateSubscriptionCharge {
52
52
  * @type {string}
53
53
  * @memberof CreateSubscriptionCharge
54
54
  */
55
- planId: string;
55
+ planId?: string;
56
56
  /**
57
57
  * Name of plan
58
58
  * @type {string}
@@ -64,13 +64,13 @@ export interface CreateSubscriptionCharge {
64
64
  * @type {string}
65
65
  * @memberof CreateSubscriptionCharge
66
66
  */
67
- chargeId: string;
67
+ chargeId?: string;
68
68
  /**
69
69
  * Name of charge
70
70
  * @type {string}
71
71
  * @memberof CreateSubscriptionCharge
72
72
  */
73
- chargeName: string;
73
+ chargeName?: string;
74
74
  /**
75
75
  * How charge will be priced
76
76
  * @type {string}
@@ -312,9 +312,6 @@ export interface CreateSubscriptionCharge {
312
312
  */
313
313
  export function instanceOfCreateSubscriptionCharge(value: object): value is CreateSubscriptionCharge {
314
314
  if (!('productId' in value) || value['productId'] === undefined) return false;
315
- if (!('planId' in value) || value['planId'] === undefined) return false;
316
- if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
317
- if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
318
315
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
319
316
  return true;
320
317
  }
@@ -331,10 +328,10 @@ export function CreateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
331
328
 
332
329
  'productId': json['productId'],
333
330
  'productName': json['productName'] == null ? undefined : json['productName'],
334
- 'planId': json['planId'],
331
+ 'planId': json['planId'] == null ? undefined : json['planId'],
335
332
  'planName': json['planName'] == null ? undefined : json['planName'],
336
- 'chargeId': json['chargeId'],
337
- 'chargeName': json['chargeName'],
333
+ 'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
334
+ 'chargeName': json['chargeName'] == null ? undefined : json['chargeName'],
338
335
  'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
339
336
  'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
340
337
  'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
@@ -86,12 +86,6 @@ export interface CustomUpdateCustomer {
86
86
  * @memberof CustomUpdateCustomer
87
87
  */
88
88
  currency?: string;
89
- /**
90
- * Payment gateway
91
- * @type {string}
92
- * @memberof CustomUpdateCustomer
93
- */
94
- paymentGateway?: string;
95
89
  /**
96
90
  * Edit auto pay
97
91
  * @type {boolean}
@@ -176,7 +170,6 @@ export function CustomUpdateCustomerFromJSONTyped(json: any, ignoreDiscriminator
176
170
  'autoPay': json['autoPay'] == null ? undefined : json['autoPay'],
177
171
  'billingCycleDay': json['billingCycleDay'] == null ? undefined : json['billingCycleDay'],
178
172
  'currency': json['currency'] == null ? undefined : json['currency'],
179
- 'paymentGateway': json['paymentGateway'] == null ? undefined : json['paymentGateway'],
180
173
  'editAutoPay': json['editAutoPay'] == null ? undefined : json['editAutoPay'],
181
174
  'paymentTerms': json['paymentTerms'] == null ? undefined : json['paymentTerms'],
182
175
  'taxExempt': json['taxExempt'] == null ? undefined : json['taxExempt'],
@@ -211,7 +204,6 @@ export function CustomUpdateCustomerToJSONTyped(value?: CustomUpdateCustomer | n
211
204
  'autoPay': value['autoPay'],
212
205
  'billingCycleDay': value['billingCycleDay'],
213
206
  'currency': value['currency'],
214
- 'paymentGateway': value['paymentGateway'],
215
207
  'editAutoPay': value['editAutoPay'],
216
208
  'paymentTerms': value['paymentTerms'],
217
209
  'taxExempt': value['taxExempt'],
@@ -0,0 +1,76 @@
1
+ // @ts-nocheck
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
+
16
+ import { mapValues } from '../runtime';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface DocumentStatusValue
21
+ */
22
+ export interface DocumentStatusValue {
23
+ /**
24
+ * Name of the form field.
25
+ * @type {string}
26
+ * @memberof DocumentStatusValue
27
+ */
28
+ field: string;
29
+ /**
30
+ * Value entered by the signer.
31
+ * @type {string}
32
+ * @memberof DocumentStatusValue
33
+ */
34
+ value: string | null;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the DocumentStatusValue interface.
39
+ */
40
+ export function instanceOfDocumentStatusValue(value: object): value is DocumentStatusValue {
41
+ if (!('field' in value) || value['field'] === undefined) return false;
42
+ if (!('value' in value) || value['value'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function DocumentStatusValueFromJSON(json: any): DocumentStatusValue {
47
+ return DocumentStatusValueFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function DocumentStatusValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentStatusValue {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'field': json['field'],
57
+ 'value': json['value'],
58
+ };
59
+ }
60
+
61
+ export function DocumentStatusValueToJSON(json: any): DocumentStatusValue {
62
+ return DocumentStatusValueToJSONTyped(json, false);
63
+ }
64
+
65
+ export function DocumentStatusValueToJSONTyped(value?: DocumentStatusValue | null, ignoreDiscriminator: boolean = false): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+
70
+ return {
71
+
72
+ 'field': value['field'],
73
+ 'value': value['value'],
74
+ };
75
+ }
76
+
@@ -21,6 +21,13 @@ import {
21
21
  DocumentStatusSignerToJSON,
22
22
  DocumentStatusSignerToJSONTyped,
23
23
  } from './document-status-signer';
24
+ import type { DocumentStatusValue } from './document-status-value';
25
+ import {
26
+ DocumentStatusValueFromJSON,
27
+ DocumentStatusValueFromJSONTyped,
28
+ DocumentStatusValueToJSON,
29
+ DocumentStatusValueToJSONTyped,
30
+ } from './document-status-value';
24
31
 
25
32
  /**
26
33
  *
@@ -54,10 +61,10 @@ export interface DocumentStatus {
54
61
  signers: Array<DocumentStatusSigner>;
55
62
  /**
56
63
  * Field values filled in by the signer during document signing.
57
- * @type {Array<{ field: string; value: string }>}
64
+ * @type {Array<DocumentStatusValue>}
58
65
  * @memberof DocumentStatus
59
66
  */
60
- values?: Array<{ field: string; value: string }>;
67
+ values?: Array<DocumentStatusValue>;
61
68
  }
62
69
 
63
70
  /**
@@ -85,7 +92,7 @@ export function DocumentStatusFromJSONTyped(json: any, ignoreDiscriminator: bool
85
92
  'status': json['status'],
86
93
  'allSignaturesGathered': json['allSignaturesGathered'],
87
94
  'signers': ((json['signers'] as Array<any>).map(DocumentStatusSignerFromJSON)),
88
- 'values': json['values'] == null ? undefined : json['values'],
95
+ 'values': json['values'] == null ? undefined : ((json['values'] as Array<any>).map(DocumentStatusValueFromJSON)),
89
96
  };
90
97
  }
91
98
 
@@ -104,7 +111,7 @@ export function DocumentStatusToJSONTyped(value?: DocumentStatus | null, ignoreD
104
111
  'status': value['status'],
105
112
  'allSignaturesGathered': value['allSignaturesGathered'],
106
113
  'signers': ((value['signers'] as Array<any>).map(DocumentStatusSignerToJSON)),
107
- 'values': value['values'],
114
+ 'values': value['values'] == null ? undefined : ((value['values'] as Array<any>).map(DocumentStatusValueToJSON)),
108
115
  };
109
116
  }
110
117
 
@@ -0,0 +1,84 @@
1
+ // @ts-nocheck
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
+
16
+ import { mapValues } from '../runtime';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface FinancialDepositsReportFilters
21
+ */
22
+ export interface FinancialDepositsReportFilters {
23
+ /**
24
+ * Site ID to filter the report
25
+ * @type {string}
26
+ * @memberof FinancialDepositsReportFilters
27
+ */
28
+ siteId?: string;
29
+ /**
30
+ * Start date for the report period
31
+ * @type {Date}
32
+ * @memberof FinancialDepositsReportFilters
33
+ */
34
+ startDate: Date;
35
+ /**
36
+ * End date for the report period
37
+ * @type {Date}
38
+ * @memberof FinancialDepositsReportFilters
39
+ */
40
+ endDate: Date;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the FinancialDepositsReportFilters interface.
45
+ */
46
+ export function instanceOfFinancialDepositsReportFilters(value: object): value is FinancialDepositsReportFilters {
47
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
48
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function FinancialDepositsReportFiltersFromJSON(json: any): FinancialDepositsReportFilters {
53
+ return FinancialDepositsReportFiltersFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function FinancialDepositsReportFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinancialDepositsReportFilters {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'siteId': json['siteId'] == null ? undefined : json['siteId'],
63
+ 'startDate': (new Date(json['startDate'])),
64
+ 'endDate': (new Date(json['endDate'])),
65
+ };
66
+ }
67
+
68
+ export function FinancialDepositsReportFiltersToJSON(json: any): FinancialDepositsReportFilters {
69
+ return FinancialDepositsReportFiltersToJSONTyped(json, false);
70
+ }
71
+
72
+ export function FinancialDepositsReportFiltersToJSONTyped(value?: FinancialDepositsReportFilters | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'siteId': value['siteId'],
80
+ 'startDate': ((value['startDate']).toISOString().substring(0,10)),
81
+ 'endDate': ((value['endDate']).toISOString().substring(0,10)),
82
+ };
83
+ }
84
+
@@ -0,0 +1,84 @@
1
+ // @ts-nocheck
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
+
16
+ import { mapValues } from '../runtime';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface FinancialSummaryReportFilters
21
+ */
22
+ export interface FinancialSummaryReportFilters {
23
+ /**
24
+ * Site ID to filter the report
25
+ * @type {string}
26
+ * @memberof FinancialSummaryReportFilters
27
+ */
28
+ siteId?: string;
29
+ /**
30
+ * Start date for the report period
31
+ * @type {Date}
32
+ * @memberof FinancialSummaryReportFilters
33
+ */
34
+ startDate: Date;
35
+ /**
36
+ * End date for the report period
37
+ * @type {Date}
38
+ * @memberof FinancialSummaryReportFilters
39
+ */
40
+ endDate: Date;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the FinancialSummaryReportFilters interface.
45
+ */
46
+ export function instanceOfFinancialSummaryReportFilters(value: object): value is FinancialSummaryReportFilters {
47
+ if (!('startDate' in value) || value['startDate'] === undefined) return false;
48
+ if (!('endDate' in value) || value['endDate'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function FinancialSummaryReportFiltersFromJSON(json: any): FinancialSummaryReportFilters {
53
+ return FinancialSummaryReportFiltersFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function FinancialSummaryReportFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinancialSummaryReportFilters {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'siteId': json['siteId'] == null ? undefined : json['siteId'],
63
+ 'startDate': (new Date(json['startDate'])),
64
+ 'endDate': (new Date(json['endDate'])),
65
+ };
66
+ }
67
+
68
+ export function FinancialSummaryReportFiltersToJSON(json: any): FinancialSummaryReportFilters {
69
+ return FinancialSummaryReportFiltersToJSONTyped(json, false);
70
+ }
71
+
72
+ export function FinancialSummaryReportFiltersToJSONTyped(value?: FinancialSummaryReportFilters | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'siteId': value['siteId'],
80
+ 'startDate': ((value['startDate']).toISOString().substring(0,10)),
81
+ 'endDate': ((value['endDate']).toISOString().substring(0,10)),
82
+ };
83
+ }
84
+
@@ -104,6 +104,7 @@ export * from './document-hierarchy';
104
104
  export * from './document-signer';
105
105
  export * from './document-status';
106
106
  export * from './document-status-signer';
107
+ export * from './document-status-value';
107
108
  export * from './document-url';
108
109
  export * from './embed-config';
109
110
  export * from './execute-by';
@@ -118,6 +119,8 @@ export * from './field-type';
118
119
  export * from './filter-item';
119
120
  export * from './filter-item-value';
120
121
  export * from './filter-operator';
122
+ export * from './financial-deposits-report-filters';
123
+ export * from './financial-summary-report-filters';
121
124
  export * from './get-asset-categories200-response';
122
125
  export * from './get-asset-classes200-response';
123
126
  export * from './get-asset-features200-response';
@@ -56,6 +56,18 @@ export interface JournalEntryEntries {
56
56
  * @memberof JournalEntryEntries
57
57
  */
58
58
  customerId: string;
59
+ /**
60
+ * Customer name associated with journal entry line
61
+ * @type {string}
62
+ * @memberof JournalEntryEntries
63
+ */
64
+ customerName: string;
65
+ /**
66
+ * Custom fields on the journal entry line
67
+ * @type {object}
68
+ * @memberof JournalEntryEntries
69
+ */
70
+ customFields: object;
59
71
  }
60
72
 
61
73
  /**
@@ -68,6 +80,8 @@ export function instanceOfJournalEntryEntries(value: object): value is JournalEn
68
80
  if (!('credit' in value) || value['credit'] === undefined) return false;
69
81
  if (!('description' in value) || value['description'] === undefined) return false;
70
82
  if (!('customerId' in value) || value['customerId'] === undefined) return false;
83
+ if (!('customerName' in value) || value['customerName'] === undefined) return false;
84
+ if (!('customFields' in value) || value['customFields'] === undefined) return false;
71
85
  return true;
72
86
  }
73
87
 
@@ -87,6 +101,8 @@ export function JournalEntryEntriesFromJSONTyped(json: any, ignoreDiscriminator:
87
101
  'credit': json['credit'],
88
102
  'description': json['description'],
89
103
  'customerId': json['customerId'],
104
+ 'customerName': json['customerName'],
105
+ 'customFields': json['customFields'],
90
106
  };
91
107
  }
92
108
 
@@ -107,6 +123,8 @@ export function JournalEntryEntriesToJSONTyped(value?: JournalEntryEntries | nul
107
123
  'credit': value['credit'],
108
124
  'description': value['description'],
109
125
  'customerId': value['customerId'],
126
+ 'customerName': value['customerName'],
127
+ 'customFields': value['customFields'],
110
128
  };
111
129
  }
112
130
 
@@ -58,6 +58,24 @@ export interface JournalEntry {
58
58
  * @memberof JournalEntry
59
59
  */
60
60
  description: string;
61
+ /**
62
+ * The object that produced this journal entry. Used to join back to the source transaction (Invoice, Credit, Payment, Refund)
63
+ * @type {string}
64
+ * @memberof JournalEntry
65
+ */
66
+ sourceType: JournalEntrySourceType;
67
+ /**
68
+ * Identifier of the object that produced this journal entry (e.g. INV-54921, CR-01287, PMT-13031, REF-00246).
69
+ * @type {string}
70
+ * @memberof JournalEntry
71
+ */
72
+ sourceId: string;
73
+ /**
74
+ * Total transaction amount for the journal entry in the transaction currency
75
+ * @type {string}
76
+ * @memberof JournalEntry
77
+ */
78
+ transactionAmount: string;
61
79
  /**
62
80
  * Journal entries
63
81
  * @type {Array<JournalEntryEntries>}
@@ -108,6 +126,19 @@ export interface JournalEntry {
108
126
  transactionConversionRate: number;
109
127
  }
110
128
 
129
+
130
+ /**
131
+ * @export
132
+ */
133
+ export const JournalEntrySourceType = {
134
+ Invoice: 'Invoice',
135
+ Credit: 'Credit',
136
+ Payment: 'Payment',
137
+ Refund: 'Refund'
138
+ } as const;
139
+ export type JournalEntrySourceType = typeof JournalEntrySourceType[keyof typeof JournalEntrySourceType];
140
+
141
+
111
142
  /**
112
143
  * Check if a given object implements the JournalEntry interface.
113
144
  */
@@ -117,6 +148,9 @@ export function instanceOfJournalEntry(value: object): value is JournalEntry {
117
148
  if (!('customerId' in value) || value['customerId'] === undefined) return false;
118
149
  if (!('customerName' in value) || value['customerName'] === undefined) return false;
119
150
  if (!('description' in value) || value['description'] === undefined) return false;
151
+ if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
152
+ if (!('sourceId' in value) || value['sourceId'] === undefined) return false;
153
+ if (!('transactionAmount' in value) || value['transactionAmount'] === undefined) return false;
120
154
  if (!('entries' in value) || value['entries'] === undefined) return false;
121
155
  if (!('customFields' in value) || value['customFields'] === undefined) return false;
122
156
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
@@ -143,6 +177,9 @@ export function JournalEntryFromJSONTyped(json: any, ignoreDiscriminator: boolea
143
177
  'customerId': json['customerId'],
144
178
  'customerName': json['customerName'],
145
179
  'description': json['description'],
180
+ 'sourceType': json['sourceType'],
181
+ 'sourceId': json['sourceId'],
182
+ 'transactionAmount': json['transactionAmount'],
146
183
  'entries': ((json['entries'] as Array<any>).map(JournalEntryEntriesFromJSON)),
147
184
  'customFields': json['customFields'],
148
185
  'createdAt': json['createdAt'],
@@ -170,6 +207,9 @@ export function JournalEntryToJSONTyped(value?: JournalEntry | null, ignoreDiscr
170
207
  'customerId': value['customerId'],
171
208
  'customerName': value['customerName'],
172
209
  'description': value['description'],
210
+ 'sourceType': value['sourceType'],
211
+ 'sourceId': value['sourceId'],
212
+ 'transactionAmount': value['transactionAmount'],
173
213
  'entries': ((value['entries'] as Array<any>).map(JournalEntryEntriesToJSON)),
174
214
  'customFields': value['customFields'],
175
215
  'createdAt': value['createdAt'],
@@ -155,6 +155,12 @@ export interface Order {
155
155
  * @memberof Order
156
156
  */
157
157
  orderType: OrderType;
158
+ /**
159
+ * Idempotency key to prevent duplicate orders on retry
160
+ * @type {string}
161
+ * @memberof Order
162
+ */
163
+ idempotencyKey?: string;
158
164
  /**
159
165
  * Order ID
160
166
  * @type {string}
@@ -230,6 +236,7 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
230
236
  'assetId': json['assetId'] == null ? undefined : json['assetId'],
231
237
  'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
232
238
  'orderType': OrderTypeFromJSON(json['orderType']),
239
+ 'idempotencyKey': json['idempotencyKey'] == null ? undefined : json['idempotencyKey'],
233
240
  'id': json['id'],
234
241
  'customerName': json['customerName'],
235
242
  'separateInvoice': json['separateInvoice'],
@@ -268,6 +275,7 @@ export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: bool
268
275
  'assetId': value['assetId'],
269
276
  'subscriptionId': value['subscriptionId'],
270
277
  'orderType': OrderTypeToJSON(value['orderType']),
278
+ 'idempotencyKey': value['idempotencyKey'],
271
279
  'id': value['id'],
272
280
  'customerName': value['customerName'],
273
281
  'separateInvoice': value['separateInvoice'],
@@ -119,6 +119,12 @@ export interface ProductCustom {
119
119
  * @memberof ProductCustom
120
120
  */
121
121
  oneTimeCharge: boolean;
122
+ /**
123
+ * Product ID to use when writing off this product's charge
124
+ * @type {string}
125
+ * @memberof ProductCustom
126
+ */
127
+ writeOffProductId?: string;
122
128
  /**
123
129
  * Product ID
124
130
  * @type {string}
@@ -175,6 +181,7 @@ export function ProductCustomFromJSONTyped(json: any, ignoreDiscriminator: boole
175
181
  'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
176
182
  'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
177
183
  'oneTimeCharge': json['oneTimeCharge'],
184
+ 'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
178
185
  'id': json['id'],
179
186
  'msExternalId': json['msExternalId'],
180
187
  };
@@ -205,6 +212,7 @@ export function ProductCustomToJSONTyped(value?: ProductCustom | null, ignoreDis
205
212
  'incomeAccount': value['incomeAccount'],
206
213
  'productTaxGroupName': value['productTaxGroupName'],
207
214
  'oneTimeCharge': value['oneTimeCharge'],
215
+ 'writeOffProductId': value['writeOffProductId'],
208
216
  'id': value['id'],
209
217
  'msExternalId': value['msExternalId'],
210
218
  };
@@ -24,7 +24,10 @@ export const ProductType = {
24
24
  RENT_TREATMENT: 'RENT_TREATMENT',
25
25
  INSURANCE: 'INSURANCE',
26
26
  FEE: 'FEE',
27
- MERCHANDISE: 'MERCHANDISE'
27
+ MERCHANDISE: 'MERCHANDISE',
28
+ WRITE_OFF: 'WRITE_OFF',
29
+ CREDIT: 'CREDIT',
30
+ DISCOUNT: 'DISCOUNT'
28
31
  } as const;
29
32
  export type ProductType = typeof ProductType[keyof typeof ProductType];
30
33
 
@@ -44,6 +44,12 @@ export interface RefundInvoice {
44
44
  * @memberof RefundInvoice
45
45
  */
46
46
  refundType: string;
47
+ /**
48
+ * Originating payment ID for Electronic refunds on credit invoices
49
+ * @type {string}
50
+ * @memberof RefundInvoice
51
+ */
52
+ paymentId?: string;
47
53
  }
48
54
 
49
55
  /**
@@ -71,6 +77,7 @@ export function RefundInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boole
71
77
  'refundDate': json['refundDate'],
72
78
  'refundAmount': json['refundAmount'],
73
79
  'refundType': json['refundType'],
80
+ 'paymentId': json['paymentId'] == null ? undefined : json['paymentId'],
74
81
  };
75
82
  }
76
83
 
@@ -89,6 +96,7 @@ export function RefundInvoiceToJSONTyped(value?: RefundInvoice | null, ignoreDis
89
96
  'refundDate': value['refundDate'],
90
97
  'refundAmount': value['refundAmount'],
91
98
  'refundType': value['refundType'],
99
+ 'paymentId': value['paymentId'],
92
100
  };
93
101
  }
94
102