@juhuu/sdk-ts 1.1.0 → 1.1.2
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 +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.js +40 -2
- package/dist/index.mjs +40 -2
- 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>;
|
@@ -582,7 +582,7 @@ declare class PropertiesService extends Service {
|
|
582
582
|
create(PropertyCreateParams: JUHUU.Property.Create.Params, PropertyCreateOptions?: JUHUU.Property.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Create.Response>>;
|
583
583
|
retrieve(PropertyRetrieveParams: JUHUU.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU.Property.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Retrieve.Response>>;
|
584
584
|
list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
|
585
|
-
update(): Promise<
|
585
|
+
update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
|
586
586
|
delete(): Promise<void>;
|
587
587
|
terminate(): Promise<void>;
|
588
588
|
}
|
@@ -1132,6 +1132,24 @@ declare namespace JUHUU {
|
|
1132
1132
|
type Options = JUHUU.RequestOptions;
|
1133
1133
|
type Response = JUHUU.Property.Object[];
|
1134
1134
|
}
|
1135
|
+
export namespace Update {
|
1136
|
+
type Params = {
|
1137
|
+
propertyId: string;
|
1138
|
+
name?: string;
|
1139
|
+
legalName?: string;
|
1140
|
+
billingAddress?: Partial<Address>;
|
1141
|
+
email?: string;
|
1142
|
+
website?: string;
|
1143
|
+
phone?: string;
|
1144
|
+
faqUrl?: string;
|
1145
|
+
colorScheme?: ColorScheme;
|
1146
|
+
contactUrl?: string;
|
1147
|
+
};
|
1148
|
+
type Options = JUHUU.RequestOptions;
|
1149
|
+
type Response = {
|
1150
|
+
property: JUHUU.Property.Object;
|
1151
|
+
};
|
1152
|
+
}
|
1135
1153
|
export { };
|
1136
1154
|
}
|
1137
1155
|
namespace Point {
|
@@ -1250,6 +1268,15 @@ declare namespace JUHUU {
|
|
1250
1268
|
property?: JUHUU.Property.Object;
|
1251
1269
|
};
|
1252
1270
|
}
|
1271
|
+
namespace List {
|
1272
|
+
type Params = {
|
1273
|
+
propertyId?: string;
|
1274
|
+
userId?: string;
|
1275
|
+
statusArray?: JUHUU.Payment.Object["status"][];
|
1276
|
+
};
|
1277
|
+
type Options = JUHUU.RequestOptions;
|
1278
|
+
type Response = JUHUU.Payment.Object[];
|
1279
|
+
}
|
1253
1280
|
namespace RetrieveInvoiceUrl {
|
1254
1281
|
type Params = {
|
1255
1282
|
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>;
|
@@ -582,7 +582,7 @@ declare class PropertiesService extends Service {
|
|
582
582
|
create(PropertyCreateParams: JUHUU.Property.Create.Params, PropertyCreateOptions?: JUHUU.Property.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Create.Response>>;
|
583
583
|
retrieve(PropertyRetrieveParams: JUHUU.Property.Retrieve.Params, PropertyRetrieveOptions?: JUHUU.Property.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Retrieve.Response>>;
|
584
584
|
list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
|
585
|
-
update(): Promise<
|
585
|
+
update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
|
586
586
|
delete(): Promise<void>;
|
587
587
|
terminate(): Promise<void>;
|
588
588
|
}
|
@@ -1132,6 +1132,24 @@ declare namespace JUHUU {
|
|
1132
1132
|
type Options = JUHUU.RequestOptions;
|
1133
1133
|
type Response = JUHUU.Property.Object[];
|
1134
1134
|
}
|
1135
|
+
export namespace Update {
|
1136
|
+
type Params = {
|
1137
|
+
propertyId: string;
|
1138
|
+
name?: string;
|
1139
|
+
legalName?: string;
|
1140
|
+
billingAddress?: Partial<Address>;
|
1141
|
+
email?: string;
|
1142
|
+
website?: string;
|
1143
|
+
phone?: string;
|
1144
|
+
faqUrl?: string;
|
1145
|
+
colorScheme?: ColorScheme;
|
1146
|
+
contactUrl?: string;
|
1147
|
+
};
|
1148
|
+
type Options = JUHUU.RequestOptions;
|
1149
|
+
type Response = {
|
1150
|
+
property: JUHUU.Property.Object;
|
1151
|
+
};
|
1152
|
+
}
|
1135
1153
|
export { };
|
1136
1154
|
}
|
1137
1155
|
namespace Point {
|
@@ -1250,6 +1268,15 @@ declare namespace JUHUU {
|
|
1250
1268
|
property?: JUHUU.Property.Object;
|
1251
1269
|
};
|
1252
1270
|
}
|
1271
|
+
namespace List {
|
1272
|
+
type Params = {
|
1273
|
+
propertyId?: string;
|
1274
|
+
userId?: string;
|
1275
|
+
statusArray?: JUHUU.Payment.Object["status"][];
|
1276
|
+
};
|
1277
|
+
type Options = JUHUU.RequestOptions;
|
1278
|
+
type Response = JUHUU.Payment.Object[];
|
1279
|
+
}
|
1253
1280
|
namespace RetrieveInvoiceUrl {
|
1254
1281
|
type Params = {
|
1255
1282
|
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 = [];
|
@@ -648,7 +667,26 @@ var PropertiesService = class extends Service {
|
|
648
667
|
PropertyListOptions
|
649
668
|
);
|
650
669
|
}
|
651
|
-
async update() {
|
670
|
+
async update(PropertyUpdateParams, PropertyUpdateOptions) {
|
671
|
+
return await super.sendRequest(
|
672
|
+
{
|
673
|
+
method: "PATCH",
|
674
|
+
url: "properties/" + PropertyUpdateParams.propertyId,
|
675
|
+
body: {
|
676
|
+
name: PropertyUpdateParams.name,
|
677
|
+
legalName: PropertyUpdateParams.legalName,
|
678
|
+
billingAddress: PropertyUpdateParams.billingAddress,
|
679
|
+
email: PropertyUpdateParams.email,
|
680
|
+
website: PropertyUpdateParams.website,
|
681
|
+
phone: PropertyUpdateParams.phone,
|
682
|
+
faqUrl: PropertyUpdateParams.faqUrl,
|
683
|
+
colorScheme: PropertyUpdateParams.colorScheme,
|
684
|
+
contactUrl: PropertyUpdateParams.contactUrl
|
685
|
+
},
|
686
|
+
useAuthentication: true
|
687
|
+
},
|
688
|
+
PropertyUpdateOptions
|
689
|
+
);
|
652
690
|
}
|
653
691
|
async delete() {
|
654
692
|
}
|
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 = [];
|
@@ -603,7 +622,26 @@ var PropertiesService = class extends Service {
|
|
603
622
|
PropertyListOptions
|
604
623
|
);
|
605
624
|
}
|
606
|
-
async update() {
|
625
|
+
async update(PropertyUpdateParams, PropertyUpdateOptions) {
|
626
|
+
return await super.sendRequest(
|
627
|
+
{
|
628
|
+
method: "PATCH",
|
629
|
+
url: "properties/" + PropertyUpdateParams.propertyId,
|
630
|
+
body: {
|
631
|
+
name: PropertyUpdateParams.name,
|
632
|
+
legalName: PropertyUpdateParams.legalName,
|
633
|
+
billingAddress: PropertyUpdateParams.billingAddress,
|
634
|
+
email: PropertyUpdateParams.email,
|
635
|
+
website: PropertyUpdateParams.website,
|
636
|
+
phone: PropertyUpdateParams.phone,
|
637
|
+
faqUrl: PropertyUpdateParams.faqUrl,
|
638
|
+
colorScheme: PropertyUpdateParams.colorScheme,
|
639
|
+
contactUrl: PropertyUpdateParams.contactUrl
|
640
|
+
},
|
641
|
+
useAuthentication: true
|
642
|
+
},
|
643
|
+
PropertyUpdateOptions
|
644
|
+
);
|
607
645
|
}
|
608
646
|
async delete() {
|
609
647
|
}
|