@managespace/sdk 0.0.198 → 0.0.200

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.198",
3
+ "version": "0.0.200",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -346,7 +346,10 @@ export namespace Billing {
346
346
 
347
347
  export class GetPaymentMethods implements ExtPlugin {
348
348
  responseType!: PaymentMethod[];
349
- payload!: BasePaginationQuery & { customerId: string };
349
+ payload!: BasePaginationQuery & {
350
+ customerId: string;
351
+ isDefault?: boolean;
352
+ };
350
353
  }
351
354
 
352
355
  export class GetPaymentMethod implements ExtPlugin {
@@ -888,6 +888,7 @@ export interface GetPaymentMethodsRequest {
888
888
  offset?: number;
889
889
  limit?: number;
890
890
  paymentType?: string;
891
+ _default?: boolean;
891
892
  }
892
893
 
893
894
  export interface GetPaymentRunRequest {
@@ -943,6 +944,10 @@ export interface GetProductsRequest {
943
944
  isDefault?: string;
944
945
  }
945
946
 
947
+ export interface GetRentRollRequest {
948
+ siteId: string;
949
+ }
950
+
946
951
  export interface GetRevenueRuleRequest {
947
952
  revenueRuleId: string;
948
953
  }
@@ -5029,6 +5034,10 @@ export class DefaultApi extends runtime.BaseAPI {
5029
5034
  queryParameters['paymentType'] = requestParameters['paymentType'];
5030
5035
  }
5031
5036
 
5037
+ if (requestParameters['_default'] != null) {
5038
+ queryParameters['default'] = requestParameters['_default'];
5039
+ }
5040
+
5032
5041
  const headerParameters: runtime.HTTPHeaders = {};
5033
5042
 
5034
5043
  if (this.configuration && this.configuration.accessToken) {
@@ -5469,6 +5478,45 @@ export class DefaultApi extends runtime.BaseAPI {
5469
5478
  return await response.value();
5470
5479
  }
5471
5480
 
5481
+ /**
5482
+ */
5483
+ async getRentRollRaw(requestParameters: GetRentRollRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Success>> {
5484
+ if (requestParameters['siteId'] == null) {
5485
+ throw new runtime.RequiredError(
5486
+ 'siteId',
5487
+ 'Required parameter "siteId" was null or undefined when calling getRentRoll().'
5488
+ );
5489
+ }
5490
+
5491
+ const queryParameters: any = {};
5492
+
5493
+ const headerParameters: runtime.HTTPHeaders = {};
5494
+
5495
+ if (this.configuration && this.configuration.accessToken) {
5496
+ const token = this.configuration.accessToken;
5497
+ const tokenString = await token("bearer", []);
5498
+
5499
+ if (tokenString) {
5500
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5501
+ }
5502
+ }
5503
+ const response = await this.request({
5504
+ path: `/api/sites/{siteId}/rent-roll`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
5505
+ method: 'GET',
5506
+ headers: headerParameters,
5507
+ query: queryParameters,
5508
+ }, initOverrides);
5509
+
5510
+ return new runtime.JSONApiResponse(response, (jsonValue) => SuccessFromJSON(jsonValue));
5511
+ }
5512
+
5513
+ /**
5514
+ */
5515
+ async getRentRoll(requestParameters: GetRentRollRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Success> {
5516
+ const response = await this.getRentRollRaw(requestParameters, initOverrides);
5517
+ return await response.value();
5518
+ }
5519
+
5472
5520
  /**
5473
5521
  */
5474
5522
  async getRevenueRuleRaw(requestParameters: GetRevenueRuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevenueRule>> {
@@ -57,7 +57,7 @@ export interface CreatePayment {
57
57
  * @type {string}
58
58
  * @memberof CreatePayment
59
59
  */
60
- status?: string;
60
+ status: string;
61
61
  /**
62
62
  * Total amount of payment
63
63
  * @type {string}
@@ -171,7 +171,7 @@ export interface CreatePayment {
171
171
  * @type {string}
172
172
  * @memberof CreatePayment
173
173
  */
174
- glAccount?: string;
174
+ glAccount: string;
175
175
  /**
176
176
  * Number of retry attempts made
177
177
  * @type {number}
@@ -204,10 +204,12 @@ export interface CreatePayment {
204
204
  export function instanceOfCreatePayment(value: object): value is CreatePayment {
205
205
  if (!('customerId' in value) || value['customerId'] === undefined) return false;
206
206
  if (!('paymentDate' in value) || value['paymentDate'] === undefined) return false;
207
+ if (!('status' in value) || value['status'] === undefined) return false;
207
208
  if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
208
209
  if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
209
210
  if (!('currency' in value) || value['currency'] === undefined) return false;
210
211
  if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
212
+ if (!('glAccount' in value) || value['glAccount'] === undefined) return false;
211
213
  return true;
212
214
  }
213
215
 
@@ -224,7 +226,7 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
224
226
  'customerId': json['customerId'],
225
227
  'paymentDate': json['paymentDate'],
226
228
  'notes': json['notes'] == null ? undefined : json['notes'],
227
- 'status': json['status'] == null ? undefined : json['status'],
229
+ 'status': json['status'],
228
230
  'paymentAmount': json['paymentAmount'],
229
231
  'feeAmount': json['feeAmount'] == null ? undefined : json['feeAmount'],
230
232
  'appliedAmount': json['appliedAmount'] == null ? undefined : json['appliedAmount'],
@@ -243,7 +245,7 @@ export function CreatePaymentFromJSONTyped(json: any, ignoreDiscriminator: boole
243
245
  'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
244
246
  'invoices': json['invoices'] == null ? undefined : ((json['invoices'] as Array<any>).map(CreatePaymentInvoiceFromJSON)),
245
247
  'refunds': json['refunds'] == null ? undefined : ((json['refunds'] as Array<any>).map(CreatePaymentRefundFromJSON)),
246
- 'glAccount': json['glAccount'] == null ? undefined : json['glAccount'],
248
+ 'glAccount': json['glAccount'],
247
249
  'retriedAttempts': json['retriedAttempts'] == null ? undefined : json['retriedAttempts'],
248
250
  'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
249
251
  'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],
@@ -57,7 +57,7 @@ export interface Payment {
57
57
  * @type {string}
58
58
  * @memberof Payment
59
59
  */
60
- status?: string;
60
+ status: string;
61
61
  /**
62
62
  * Total amount of payment
63
63
  * @type {string}
@@ -171,7 +171,7 @@ export interface Payment {
171
171
  * @type {string}
172
172
  * @memberof Payment
173
173
  */
174
- glAccount?: string;
174
+ glAccount: string;
175
175
  /**
176
176
  * Number of retry attempts made
177
177
  * @type {number}
@@ -252,10 +252,12 @@ export interface Payment {
252
252
  export function instanceOfPayment(value: object): value is Payment {
253
253
  if (!('customerId' in value) || value['customerId'] === undefined) return false;
254
254
  if (!('paymentDate' in value) || value['paymentDate'] === undefined) return false;
255
+ if (!('status' in value) || value['status'] === undefined) return false;
255
256
  if (!('paymentAmount' in value) || value['paymentAmount'] === undefined) return false;
256
257
  if (!('paymentType' in value) || value['paymentType'] === undefined) return false;
257
258
  if (!('currency' in value) || value['currency'] === undefined) return false;
258
259
  if (!('autoApply' in value) || value['autoApply'] === undefined) return false;
260
+ if (!('glAccount' in value) || value['glAccount'] === undefined) return false;
259
261
  if (!('id' in value) || value['id'] === undefined) return false;
260
262
  if (!('customerName' in value) || value['customerName'] === undefined) return false;
261
263
  if (!('conversionRate' in value) || value['conversionRate'] === undefined) return false;
@@ -280,7 +282,7 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
280
282
  'customerId': json['customerId'],
281
283
  'paymentDate': json['paymentDate'],
282
284
  'notes': json['notes'] == null ? undefined : json['notes'],
283
- 'status': json['status'] == null ? undefined : json['status'],
285
+ 'status': json['status'],
284
286
  'paymentAmount': json['paymentAmount'],
285
287
  'feeAmount': json['feeAmount'] == null ? undefined : json['feeAmount'],
286
288
  'appliedAmount': json['appliedAmount'] == null ? undefined : json['appliedAmount'],
@@ -299,7 +301,7 @@ export function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
299
301
  'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
300
302
  'invoices': json['invoices'] == null ? undefined : ((json['invoices'] as Array<any>).map(CreatePaymentInvoiceFromJSON)),
301
303
  'refunds': json['refunds'] == null ? undefined : ((json['refunds'] as Array<any>).map(CreatePaymentRefundFromJSON)),
302
- 'glAccount': json['glAccount'] == null ? undefined : json['glAccount'],
304
+ 'glAccount': json['glAccount'],
303
305
  'retriedAttempts': json['retriedAttempts'] == null ? undefined : json['retriedAttempts'],
304
306
  'gatewayName': json['gatewayName'] == null ? undefined : json['gatewayName'],
305
307
  'emailStatus': json['emailStatus'] == null ? undefined : json['emailStatus'],