@juhuu/sdk-ts 1.1.1 → 1.1.3
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 -1
- package/dist/index.d.ts +29 -1
- package/dist/index.js +31 -1
- package/dist/index.mjs +31 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -582,7 +582,8 @@ 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
|
+
stripeAccountUrl(PropertyStripeAccountUrlParams: JUHUU.Property.StripeAccountUrl.Params, PropertyStripeAccountUrlOptions?: JUHUU.Property.StripeAccountUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.StripeAccountUrl.Response>>;
|
586
587
|
delete(): Promise<void>;
|
587
588
|
terminate(): Promise<void>;
|
588
589
|
}
|
@@ -1132,6 +1133,33 @@ declare namespace JUHUU {
|
|
1132
1133
|
type Options = JUHUU.RequestOptions;
|
1133
1134
|
type Response = JUHUU.Property.Object[];
|
1134
1135
|
}
|
1136
|
+
export namespace StripeAccountUrl {
|
1137
|
+
type Params = {
|
1138
|
+
propertyId: string;
|
1139
|
+
};
|
1140
|
+
type Options = JUHUU.RequestOptions;
|
1141
|
+
type Response = {
|
1142
|
+
url: string;
|
1143
|
+
};
|
1144
|
+
}
|
1145
|
+
export namespace Update {
|
1146
|
+
type Params = {
|
1147
|
+
propertyId: string;
|
1148
|
+
name?: string;
|
1149
|
+
legalName?: string;
|
1150
|
+
billingAddress?: Partial<Address>;
|
1151
|
+
email?: string;
|
1152
|
+
website?: string;
|
1153
|
+
phone?: string;
|
1154
|
+
faqUrl?: string;
|
1155
|
+
colorScheme?: Partial<ColorScheme>;
|
1156
|
+
contactUrl?: string;
|
1157
|
+
};
|
1158
|
+
type Options = JUHUU.RequestOptions;
|
1159
|
+
type Response = {
|
1160
|
+
property: JUHUU.Property.Object;
|
1161
|
+
};
|
1162
|
+
}
|
1135
1163
|
export { };
|
1136
1164
|
}
|
1137
1165
|
namespace Point {
|
package/dist/index.d.ts
CHANGED
@@ -582,7 +582,8 @@ 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
|
+
stripeAccountUrl(PropertyStripeAccountUrlParams: JUHUU.Property.StripeAccountUrl.Params, PropertyStripeAccountUrlOptions?: JUHUU.Property.StripeAccountUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.StripeAccountUrl.Response>>;
|
586
587
|
delete(): Promise<void>;
|
587
588
|
terminate(): Promise<void>;
|
588
589
|
}
|
@@ -1132,6 +1133,33 @@ declare namespace JUHUU {
|
|
1132
1133
|
type Options = JUHUU.RequestOptions;
|
1133
1134
|
type Response = JUHUU.Property.Object[];
|
1134
1135
|
}
|
1136
|
+
export namespace StripeAccountUrl {
|
1137
|
+
type Params = {
|
1138
|
+
propertyId: string;
|
1139
|
+
};
|
1140
|
+
type Options = JUHUU.RequestOptions;
|
1141
|
+
type Response = {
|
1142
|
+
url: string;
|
1143
|
+
};
|
1144
|
+
}
|
1145
|
+
export namespace Update {
|
1146
|
+
type Params = {
|
1147
|
+
propertyId: string;
|
1148
|
+
name?: string;
|
1149
|
+
legalName?: string;
|
1150
|
+
billingAddress?: Partial<Address>;
|
1151
|
+
email?: string;
|
1152
|
+
website?: string;
|
1153
|
+
phone?: string;
|
1154
|
+
faqUrl?: string;
|
1155
|
+
colorScheme?: Partial<ColorScheme>;
|
1156
|
+
contactUrl?: string;
|
1157
|
+
};
|
1158
|
+
type Options = JUHUU.RequestOptions;
|
1159
|
+
type Response = {
|
1160
|
+
property: JUHUU.Property.Object;
|
1161
|
+
};
|
1162
|
+
}
|
1135
1163
|
export { };
|
1136
1164
|
}
|
1137
1165
|
namespace Point {
|
package/dist/index.js
CHANGED
@@ -667,7 +667,37 @@ var PropertiesService = class extends Service {
|
|
667
667
|
PropertyListOptions
|
668
668
|
);
|
669
669
|
}
|
670
|
-
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
|
+
);
|
690
|
+
}
|
691
|
+
async stripeAccountUrl(PropertyStripeAccountUrlParams, PropertyStripeAccountUrlOptions) {
|
692
|
+
return await super.sendRequest(
|
693
|
+
{
|
694
|
+
method: "GET",
|
695
|
+
url: "properties/" + PropertyStripeAccountUrlParams.propertyId + "/stripeAccountUrl",
|
696
|
+
body: void 0,
|
697
|
+
useAuthentication: true
|
698
|
+
},
|
699
|
+
PropertyStripeAccountUrlOptions
|
700
|
+
);
|
671
701
|
}
|
672
702
|
async delete() {
|
673
703
|
}
|
package/dist/index.mjs
CHANGED
@@ -622,7 +622,37 @@ var PropertiesService = class extends Service {
|
|
622
622
|
PropertyListOptions
|
623
623
|
);
|
624
624
|
}
|
625
|
-
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
|
+
);
|
645
|
+
}
|
646
|
+
async stripeAccountUrl(PropertyStripeAccountUrlParams, PropertyStripeAccountUrlOptions) {
|
647
|
+
return await super.sendRequest(
|
648
|
+
{
|
649
|
+
method: "GET",
|
650
|
+
url: "properties/" + PropertyStripeAccountUrlParams.propertyId + "/stripeAccountUrl",
|
651
|
+
body: void 0,
|
652
|
+
useAuthentication: true
|
653
|
+
},
|
654
|
+
PropertyStripeAccountUrlOptions
|
655
|
+
);
|
626
656
|
}
|
627
657
|
async delete() {
|
628
658
|
}
|