@juhuu/sdk-ts 1.2.123 → 1.2.125
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 +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +14 -3
- package/dist/index.mjs +14 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -615,8 +615,9 @@ declare class PropertiesService extends Service {
|
|
615
615
|
list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
|
616
616
|
update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
|
617
617
|
onboarding(PropertyOnboardingParams: JUHUU.Property.Onboarding.Params, PropertyOnboardingOptions?: JUHUU.Property.Onboarding.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Onboarding.Response>>;
|
618
|
-
|
618
|
+
retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams: JUHUU.Property.RetrieveStripeConnectPortalUrl.Params, PropertyRetrieveStripeConnectPortalUrlOptions?: JUHUU.Property.RetrieveStripeConnectPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeConnectPortalUrl.Response>>;
|
619
619
|
retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
|
620
|
+
retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
|
620
621
|
}
|
621
622
|
|
622
623
|
declare class PointsService extends Service {
|
@@ -1932,6 +1933,19 @@ declare namespace JUHUU {
|
|
1932
1933
|
* Email only used for Stripe
|
1933
1934
|
*/
|
1934
1935
|
stripeEmail: string | null;
|
1936
|
+
/**
|
1937
|
+
* Timestamp of the next subscription update
|
1938
|
+
* A subscription update retrieves all the information of
|
1939
|
+
* a property that it will be charged for and then updates
|
1940
|
+
* the stripe subscription with the new information.
|
1941
|
+
*/
|
1942
|
+
nextSubscriptionUpdateAt: Date | null;
|
1943
|
+
/**
|
1944
|
+
* ID of the subscription from stripe
|
1945
|
+
* If null, the property is not subscribed to a plan
|
1946
|
+
*/
|
1947
|
+
stripeSubscriptionId: string | null;
|
1948
|
+
subscriptionStatus: "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
|
1935
1949
|
}
|
1936
1950
|
export interface External extends Base {
|
1937
1951
|
type: "external";
|
@@ -1964,7 +1978,7 @@ declare namespace JUHUU {
|
|
1964
1978
|
type Options = JUHUU.RequestOptions;
|
1965
1979
|
type Response = JUHUU.Property.Object[];
|
1966
1980
|
}
|
1967
|
-
export namespace
|
1981
|
+
export namespace RetrieveStripeConnectPortalUrl {
|
1968
1982
|
type Params = {
|
1969
1983
|
propertyId: string;
|
1970
1984
|
};
|
@@ -1982,6 +1996,15 @@ declare namespace JUHUU {
|
|
1982
1996
|
url: string;
|
1983
1997
|
};
|
1984
1998
|
}
|
1999
|
+
export namespace RetrieveStripeSubscriptionStartUrl {
|
2000
|
+
type Params = {
|
2001
|
+
propertyId: string;
|
2002
|
+
};
|
2003
|
+
type Options = JUHUU.RequestOptions;
|
2004
|
+
type Response = {
|
2005
|
+
url: string;
|
2006
|
+
};
|
2007
|
+
}
|
1985
2008
|
export namespace Update {
|
1986
2009
|
type Params = {
|
1987
2010
|
propertyId: string;
|
package/dist/index.d.ts
CHANGED
@@ -615,8 +615,9 @@ declare class PropertiesService extends Service {
|
|
615
615
|
list(PropertyListParams: JUHUU.Property.List.Params, PropertyListOptions?: JUHUU.Property.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.List.Response>>;
|
616
616
|
update(PropertyUpdateParams: JUHUU.Property.Update.Params, PropertyUpdateOptions?: JUHUU.Property.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Update.Response>>;
|
617
617
|
onboarding(PropertyOnboardingParams: JUHUU.Property.Onboarding.Params, PropertyOnboardingOptions?: JUHUU.Property.Onboarding.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.Onboarding.Response>>;
|
618
|
-
|
618
|
+
retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams: JUHUU.Property.RetrieveStripeConnectPortalUrl.Params, PropertyRetrieveStripeConnectPortalUrlOptions?: JUHUU.Property.RetrieveStripeConnectPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeConnectPortalUrl.Response>>;
|
619
619
|
retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Params, PropertyRetrieveStripeCustomerPortalUrlOptions?: JUHUU.Property.RetrieveStripeCustomerPortalUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeCustomerPortalUrl.Response>>;
|
620
|
+
retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Params, PropertyRetrieveStripeSubscriptionStartUrlOptions?: JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Property.RetrieveStripeSubscriptionStartUrl.Response>>;
|
620
621
|
}
|
621
622
|
|
622
623
|
declare class PointsService extends Service {
|
@@ -1932,6 +1933,19 @@ declare namespace JUHUU {
|
|
1932
1933
|
* Email only used for Stripe
|
1933
1934
|
*/
|
1934
1935
|
stripeEmail: string | null;
|
1936
|
+
/**
|
1937
|
+
* Timestamp of the next subscription update
|
1938
|
+
* A subscription update retrieves all the information of
|
1939
|
+
* a property that it will be charged for and then updates
|
1940
|
+
* the stripe subscription with the new information.
|
1941
|
+
*/
|
1942
|
+
nextSubscriptionUpdateAt: Date | null;
|
1943
|
+
/**
|
1944
|
+
* ID of the subscription from stripe
|
1945
|
+
* If null, the property is not subscribed to a plan
|
1946
|
+
*/
|
1947
|
+
stripeSubscriptionId: string | null;
|
1948
|
+
subscriptionStatus: "inactive" | "waitingForActivationConfirmation" | "active" | "waitingForExpiry";
|
1935
1949
|
}
|
1936
1950
|
export interface External extends Base {
|
1937
1951
|
type: "external";
|
@@ -1964,7 +1978,7 @@ declare namespace JUHUU {
|
|
1964
1978
|
type Options = JUHUU.RequestOptions;
|
1965
1979
|
type Response = JUHUU.Property.Object[];
|
1966
1980
|
}
|
1967
|
-
export namespace
|
1981
|
+
export namespace RetrieveStripeConnectPortalUrl {
|
1968
1982
|
type Params = {
|
1969
1983
|
propertyId: string;
|
1970
1984
|
};
|
@@ -1982,6 +1996,15 @@ declare namespace JUHUU {
|
|
1982
1996
|
url: string;
|
1983
1997
|
};
|
1984
1998
|
}
|
1999
|
+
export namespace RetrieveStripeSubscriptionStartUrl {
|
2000
|
+
type Params = {
|
2001
|
+
propertyId: string;
|
2002
|
+
};
|
2003
|
+
type Options = JUHUU.RequestOptions;
|
2004
|
+
type Response = {
|
2005
|
+
url: string;
|
2006
|
+
};
|
2007
|
+
}
|
1985
2008
|
export namespace Update {
|
1986
2009
|
type Params = {
|
1987
2010
|
propertyId: string;
|
package/dist/index.js
CHANGED
@@ -885,15 +885,15 @@ var PropertiesService = class extends Service {
|
|
885
885
|
PropertyOnboardingOptions
|
886
886
|
);
|
887
887
|
}
|
888
|
-
async
|
888
|
+
async retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams, PropertyRetrieveStripeConnectPortalUrlOptions) {
|
889
889
|
return await super.sendRequest(
|
890
890
|
{
|
891
891
|
method: "GET",
|
892
|
-
url: "properties/" +
|
892
|
+
url: "properties/" + PropertyRetrieveStripeConnectPortalUrlParams.propertyId + "/retrieveStripeConnectPortalUrl",
|
893
893
|
body: void 0,
|
894
894
|
authenticationNotOptional: true
|
895
895
|
},
|
896
|
-
|
896
|
+
PropertyRetrieveStripeConnectPortalUrlOptions
|
897
897
|
);
|
898
898
|
}
|
899
899
|
async retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams, PropertyRetrieveStripeCustomerPortalUrlOptions) {
|
@@ -907,6 +907,17 @@ var PropertiesService = class extends Service {
|
|
907
907
|
PropertyRetrieveStripeCustomerPortalUrlOptions
|
908
908
|
);
|
909
909
|
}
|
910
|
+
async retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams, PropertyRetrieveStripeSubscriptionStartUrlOptions) {
|
911
|
+
return await super.sendRequest(
|
912
|
+
{
|
913
|
+
method: "GET",
|
914
|
+
url: "properties/" + PropertyRetrieveStripeSubscriptionStartUrlParams.propertyId + "/retrieveStripeSubscriptionStartUrl",
|
915
|
+
body: void 0,
|
916
|
+
authenticationNotOptional: true
|
917
|
+
},
|
918
|
+
PropertyRetrieveStripeSubscriptionStartUrlOptions
|
919
|
+
);
|
920
|
+
}
|
910
921
|
};
|
911
922
|
|
912
923
|
// src/points/points.service.ts
|
package/dist/index.mjs
CHANGED
@@ -841,15 +841,15 @@ var PropertiesService = class extends Service {
|
|
841
841
|
PropertyOnboardingOptions
|
842
842
|
);
|
843
843
|
}
|
844
|
-
async
|
844
|
+
async retrieveStripeConnectPortalUrl(PropertyRetrieveStripeConnectPortalUrlParams, PropertyRetrieveStripeConnectPortalUrlOptions) {
|
845
845
|
return await super.sendRequest(
|
846
846
|
{
|
847
847
|
method: "GET",
|
848
|
-
url: "properties/" +
|
848
|
+
url: "properties/" + PropertyRetrieveStripeConnectPortalUrlParams.propertyId + "/retrieveStripeConnectPortalUrl",
|
849
849
|
body: void 0,
|
850
850
|
authenticationNotOptional: true
|
851
851
|
},
|
852
|
-
|
852
|
+
PropertyRetrieveStripeConnectPortalUrlOptions
|
853
853
|
);
|
854
854
|
}
|
855
855
|
async retrieveStripeCustomerPortalUrl(PropertyRetrieveStripeCustomerPortalUrlParams, PropertyRetrieveStripeCustomerPortalUrlOptions) {
|
@@ -863,6 +863,17 @@ var PropertiesService = class extends Service {
|
|
863
863
|
PropertyRetrieveStripeCustomerPortalUrlOptions
|
864
864
|
);
|
865
865
|
}
|
866
|
+
async retrieveStripeSubscriptionStartUrl(PropertyRetrieveStripeSubscriptionStartUrlParams, PropertyRetrieveStripeSubscriptionStartUrlOptions) {
|
867
|
+
return await super.sendRequest(
|
868
|
+
{
|
869
|
+
method: "GET",
|
870
|
+
url: "properties/" + PropertyRetrieveStripeSubscriptionStartUrlParams.propertyId + "/retrieveStripeSubscriptionStartUrl",
|
871
|
+
body: void 0,
|
872
|
+
authenticationNotOptional: true
|
873
|
+
},
|
874
|
+
PropertyRetrieveStripeSubscriptionStartUrlOptions
|
875
|
+
);
|
876
|
+
}
|
866
877
|
};
|
867
878
|
|
868
879
|
// src/points/points.service.ts
|