@juhuu/sdk-ts 1.1.0 → 1.1.1
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/dist/index.d.mts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +20 -1
- package/dist/index.mjs +20 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -569,7 +569,7 @@ declare class UsersService extends Service {
|
|
569
569
|
|
570
570
|
declare class PaymentsService extends Service {
|
571
571
|
constructor(config: JUHUU.SetupConfig);
|
572
|
-
|
572
|
+
list(PaymentListParams: JUHUU.Payment.List.Params, PaymentListOptions?: JUHUU.Payment.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.List.Response>>;
|
573
573
|
retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
|
574
574
|
tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
|
575
575
|
update(): Promise<void>;
|
@@ -1250,6 +1250,15 @@ declare namespace JUHUU {
|
|
1250
1250
|
property?: JUHUU.Property.Object;
|
1251
1251
|
};
|
1252
1252
|
}
|
1253
|
+
namespace List {
|
1254
|
+
type Params = {
|
1255
|
+
propertyId?: string;
|
1256
|
+
userId?: string;
|
1257
|
+
statusArray?: JUHUU.Payment.Object["status"][];
|
1258
|
+
};
|
1259
|
+
type Options = JUHUU.RequestOptions;
|
1260
|
+
type Response = JUHUU.Payment.Object[];
|
1261
|
+
}
|
1253
1262
|
namespace RetrieveInvoiceUrl {
|
1254
1263
|
type Params = {
|
1255
1264
|
paymentId: string;
|
package/dist/index.d.ts
CHANGED
@@ -569,7 +569,7 @@ declare class UsersService extends Service {
|
|
569
569
|
|
570
570
|
declare class PaymentsService extends Service {
|
571
571
|
constructor(config: JUHUU.SetupConfig);
|
572
|
-
|
572
|
+
list(PaymentListParams: JUHUU.Payment.List.Params, PaymentListOptions?: JUHUU.Payment.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.List.Response>>;
|
573
573
|
retrieve(PaymentRetrieveParams: JUHUU.Payment.Retrieve.Params, PaymentRetrieveOptions?: JUHUU.Payment.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Retrieve.Response>>;
|
574
574
|
tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
|
575
575
|
update(): Promise<void>;
|
@@ -1250,6 +1250,15 @@ declare namespace JUHUU {
|
|
1250
1250
|
property?: JUHUU.Property.Object;
|
1251
1251
|
};
|
1252
1252
|
}
|
1253
|
+
namespace List {
|
1254
|
+
type Params = {
|
1255
|
+
propertyId?: string;
|
1256
|
+
userId?: string;
|
1257
|
+
statusArray?: JUHUU.Payment.Object["status"][];
|
1258
|
+
};
|
1259
|
+
type Options = JUHUU.RequestOptions;
|
1260
|
+
type Response = JUHUU.Payment.Object[];
|
1261
|
+
}
|
1253
1262
|
namespace RetrieveInvoiceUrl {
|
1254
1263
|
type Params = {
|
1255
1264
|
paymentId: string;
|
package/dist/index.js
CHANGED
@@ -569,7 +569,26 @@ var PaymentsService = class extends Service {
|
|
569
569
|
constructor(config) {
|
570
570
|
super(config);
|
571
571
|
}
|
572
|
-
async
|
572
|
+
async list(PaymentListParams, PaymentListOptions) {
|
573
|
+
const queryArray = [];
|
574
|
+
if (PaymentListParams.userId !== void 0) {
|
575
|
+
queryArray.push("userId=" + PaymentListParams.userId);
|
576
|
+
}
|
577
|
+
if (PaymentListParams.propertyId !== void 0) {
|
578
|
+
queryArray.push("propertyId=" + PaymentListParams.propertyId);
|
579
|
+
}
|
580
|
+
if (PaymentListParams.statusArray !== void 0) {
|
581
|
+
queryArray.push("statusArray=" + PaymentListParams.statusArray.join(","));
|
582
|
+
}
|
583
|
+
return await super.sendRequest(
|
584
|
+
{
|
585
|
+
method: "GET",
|
586
|
+
url: "payments?" + queryArray.join("&"),
|
587
|
+
body: void 0,
|
588
|
+
useAuthentication: true
|
589
|
+
},
|
590
|
+
PaymentListOptions
|
591
|
+
);
|
573
592
|
}
|
574
593
|
async retrieve(PaymentRetrieveParams, PaymentRetrieveOptions) {
|
575
594
|
const queryArray = [];
|
package/dist/index.mjs
CHANGED
@@ -524,7 +524,26 @@ var PaymentsService = class extends Service {
|
|
524
524
|
constructor(config) {
|
525
525
|
super(config);
|
526
526
|
}
|
527
|
-
async
|
527
|
+
async list(PaymentListParams, PaymentListOptions) {
|
528
|
+
const queryArray = [];
|
529
|
+
if (PaymentListParams.userId !== void 0) {
|
530
|
+
queryArray.push("userId=" + PaymentListParams.userId);
|
531
|
+
}
|
532
|
+
if (PaymentListParams.propertyId !== void 0) {
|
533
|
+
queryArray.push("propertyId=" + PaymentListParams.propertyId);
|
534
|
+
}
|
535
|
+
if (PaymentListParams.statusArray !== void 0) {
|
536
|
+
queryArray.push("statusArray=" + PaymentListParams.statusArray.join(","));
|
537
|
+
}
|
538
|
+
return await super.sendRequest(
|
539
|
+
{
|
540
|
+
method: "GET",
|
541
|
+
url: "payments?" + queryArray.join("&"),
|
542
|
+
body: void 0,
|
543
|
+
useAuthentication: true
|
544
|
+
},
|
545
|
+
PaymentListOptions
|
546
|
+
);
|
528
547
|
}
|
529
548
|
async retrieve(PaymentRetrieveParams, PaymentRetrieveOptions) {
|
530
549
|
const queryArray = [];
|