@juhuu/sdk-ts 1.3.49 → 1.3.51
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 +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3276,6 +3276,7 @@ declare namespace JUHUU {
|
|
|
3276
3276
|
export namespace PaymentMethodTokens {
|
|
3277
3277
|
type Params = {
|
|
3278
3278
|
userId: string;
|
|
3279
|
+
tariffId?: string;
|
|
3279
3280
|
};
|
|
3280
3281
|
type Options = JUHUU.RequestOptions;
|
|
3281
3282
|
type Response = {
|
|
@@ -7908,6 +7909,8 @@ declare namespace JUHUU {
|
|
|
7908
7909
|
expoProjectId: string;
|
|
7909
7910
|
homescreenName: string;
|
|
7910
7911
|
slug: string;
|
|
7912
|
+
termsUrl: string | null;
|
|
7913
|
+
copyright: string | null;
|
|
7911
7914
|
};
|
|
7912
7915
|
namespace Create {
|
|
7913
7916
|
type Params = {
|
|
@@ -7969,6 +7972,8 @@ declare namespace JUHUU {
|
|
|
7969
7972
|
expoProjectId?: string;
|
|
7970
7973
|
homescreenName?: string;
|
|
7971
7974
|
slug?: string;
|
|
7975
|
+
termsUrl?: string | null;
|
|
7976
|
+
copyright?: string | null;
|
|
7972
7977
|
};
|
|
7973
7978
|
type Options = JUHUU.RequestOptions;
|
|
7974
7979
|
type Response = {
|
package/dist/index.d.ts
CHANGED
|
@@ -3276,6 +3276,7 @@ declare namespace JUHUU {
|
|
|
3276
3276
|
export namespace PaymentMethodTokens {
|
|
3277
3277
|
type Params = {
|
|
3278
3278
|
userId: string;
|
|
3279
|
+
tariffId?: string;
|
|
3279
3280
|
};
|
|
3280
3281
|
type Options = JUHUU.RequestOptions;
|
|
3281
3282
|
type Response = {
|
|
@@ -7908,6 +7909,8 @@ declare namespace JUHUU {
|
|
|
7908
7909
|
expoProjectId: string;
|
|
7909
7910
|
homescreenName: string;
|
|
7910
7911
|
slug: string;
|
|
7912
|
+
termsUrl: string | null;
|
|
7913
|
+
copyright: string | null;
|
|
7911
7914
|
};
|
|
7912
7915
|
namespace Create {
|
|
7913
7916
|
type Params = {
|
|
@@ -7969,6 +7972,8 @@ declare namespace JUHUU {
|
|
|
7969
7972
|
expoProjectId?: string;
|
|
7970
7973
|
homescreenName?: string;
|
|
7971
7974
|
slug?: string;
|
|
7975
|
+
termsUrl?: string | null;
|
|
7976
|
+
copyright?: string | null;
|
|
7972
7977
|
};
|
|
7973
7978
|
type Options = JUHUU.RequestOptions;
|
|
7974
7979
|
type Response = {
|
package/dist/index.js
CHANGED
|
@@ -1173,10 +1173,14 @@ var UsersService = class extends Service {
|
|
|
1173
1173
|
);
|
|
1174
1174
|
}
|
|
1175
1175
|
async paymentMethodTokens(UserPaymentMethodTokensParams, UserPaymentMethodTokensOptions) {
|
|
1176
|
+
const queryArray = [];
|
|
1177
|
+
if (UserPaymentMethodTokensParams?.tariffId !== void 0) {
|
|
1178
|
+
queryArray.push("tariffId=" + UserPaymentMethodTokensParams.tariffId);
|
|
1179
|
+
}
|
|
1176
1180
|
return await super.sendRequest(
|
|
1177
1181
|
{
|
|
1178
1182
|
method: "GET",
|
|
1179
|
-
url: "users/" + UserPaymentMethodTokensParams.userId + "/paymentMethodTokens",
|
|
1183
|
+
url: "users/" + UserPaymentMethodTokensParams.userId + "/paymentMethodTokens?" + queryArray.join("&"),
|
|
1180
1184
|
body: void 0,
|
|
1181
1185
|
authenticationNotOptional: true
|
|
1182
1186
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1129,10 +1129,14 @@ var UsersService = class extends Service {
|
|
|
1129
1129
|
);
|
|
1130
1130
|
}
|
|
1131
1131
|
async paymentMethodTokens(UserPaymentMethodTokensParams, UserPaymentMethodTokensOptions) {
|
|
1132
|
+
const queryArray = [];
|
|
1133
|
+
if (UserPaymentMethodTokensParams?.tariffId !== void 0) {
|
|
1134
|
+
queryArray.push("tariffId=" + UserPaymentMethodTokensParams.tariffId);
|
|
1135
|
+
}
|
|
1132
1136
|
return await super.sendRequest(
|
|
1133
1137
|
{
|
|
1134
1138
|
method: "GET",
|
|
1135
|
-
url: "users/" + UserPaymentMethodTokensParams.userId + "/paymentMethodTokens",
|
|
1139
|
+
url: "users/" + UserPaymentMethodTokensParams.userId + "/paymentMethodTokens?" + queryArray.join("&"),
|
|
1136
1140
|
body: void 0,
|
|
1137
1141
|
authenticationNotOptional: true
|
|
1138
1142
|
},
|