@juhuu/sdk-ts 1.2.12 → 1.2.14

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 CHANGED
@@ -640,9 +640,7 @@ declare class TariffsService extends Service {
640
640
  create(): Promise<void>;
641
641
  retrieve(TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params, TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>>;
642
642
  list(TariffListParams: JUHUU.Tariff.List.Params, TariffListOptions?: JUHUU.Tariff.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>>;
643
- update(): Promise<void>;
644
- delete(): Promise<void>;
645
- terminate(): Promise<void>;
643
+ update(TariffUpdateParams: JUHUU.Tariff.Update.Params, TariffUpdateOptions?: JUHUU.Tariff.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Update.Response>>;
646
644
  /**
647
645
  * Checks if the tariff is free
648
646
  */
@@ -1159,6 +1157,26 @@ declare namespace JUHUU {
1159
1157
  type Options = JUHUU.RequestOptions;
1160
1158
  type Response = JUHUU.Tariff.Object[];
1161
1159
  }
1160
+ namespace Update {
1161
+ type Params = {
1162
+ tariffId: string;
1163
+ reminderEnabled?: boolean;
1164
+ reminderPercentage?: number;
1165
+ currencyCode?: CurrencyCode;
1166
+ amount?: number[];
1167
+ continue?: number;
1168
+ interval?: number;
1169
+ duration?: number;
1170
+ autoRenewMode?: AutoRenewMode;
1171
+ roundToMidnight?: boolean;
1172
+ autoRenewManualEnabled?: boolean;
1173
+ manualTerminationEnabled?: boolean;
1174
+ };
1175
+ type Options = JUHUU.RequestOptions;
1176
+ type Response = {
1177
+ tariff: JUHUU.Tariff.Object;
1178
+ };
1179
+ }
1162
1180
  }
1163
1181
  namespace Survey {
1164
1182
  type Object = {
@@ -1536,7 +1554,7 @@ declare namespace JUHUU {
1536
1554
  };
1537
1555
  type Options = JUHUU.RequestOptions;
1538
1556
  type Response = {
1539
- property: JUHUU.Property.Object;
1557
+ location: JUHUU.Location.Object;
1540
1558
  };
1541
1559
  }
1542
1560
  export { };
package/dist/index.d.ts CHANGED
@@ -640,9 +640,7 @@ declare class TariffsService extends Service {
640
640
  create(): Promise<void>;
641
641
  retrieve(TariffRetrieveParams: JUHUU.Tariff.Retrieve.Params, TariffRetrieveOptions?: JUHUU.Tariff.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Retrieve.Response>>;
642
642
  list(TariffListParams: JUHUU.Tariff.List.Params, TariffListOptions?: JUHUU.Tariff.List.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.List.Response>>;
643
- update(): Promise<void>;
644
- delete(): Promise<void>;
645
- terminate(): Promise<void>;
643
+ update(TariffUpdateParams: JUHUU.Tariff.Update.Params, TariffUpdateOptions?: JUHUU.Tariff.Update.Options): Promise<JUHUU.HttpResponse<JUHUU.Tariff.Update.Response>>;
646
644
  /**
647
645
  * Checks if the tariff is free
648
646
  */
@@ -1159,6 +1157,26 @@ declare namespace JUHUU {
1159
1157
  type Options = JUHUU.RequestOptions;
1160
1158
  type Response = JUHUU.Tariff.Object[];
1161
1159
  }
1160
+ namespace Update {
1161
+ type Params = {
1162
+ tariffId: string;
1163
+ reminderEnabled?: boolean;
1164
+ reminderPercentage?: number;
1165
+ currencyCode?: CurrencyCode;
1166
+ amount?: number[];
1167
+ continue?: number;
1168
+ interval?: number;
1169
+ duration?: number;
1170
+ autoRenewMode?: AutoRenewMode;
1171
+ roundToMidnight?: boolean;
1172
+ autoRenewManualEnabled?: boolean;
1173
+ manualTerminationEnabled?: boolean;
1174
+ };
1175
+ type Options = JUHUU.RequestOptions;
1176
+ type Response = {
1177
+ tariff: JUHUU.Tariff.Object;
1178
+ };
1179
+ }
1162
1180
  }
1163
1181
  namespace Survey {
1164
1182
  type Object = {
@@ -1536,7 +1554,7 @@ declare namespace JUHUU {
1536
1554
  };
1537
1555
  type Options = JUHUU.RequestOptions;
1538
1556
  type Response = {
1539
- property: JUHUU.Property.Object;
1557
+ location: JUHUU.Location.Object;
1540
1558
  };
1541
1559
  }
1542
1560
  export { };
package/dist/index.js CHANGED
@@ -972,26 +972,6 @@ var LocationsService = class extends Service {
972
972
  LocationListOptions
973
973
  );
974
974
  }
975
- /*
976
- export type Params = {
977
- locationId: string;
978
- name?: string;
979
- address?: Partial<Address>;
980
- deviceIdArray?: string[];
981
- deviceId?: string;
982
- maximumConcurrentSessions?: number;
983
- surveyEnabled?: boolean;
984
- accountingAreaId?: string;
985
- logoLight?: string | null;
986
- logoDark?: string | null;
987
- location?: GeoPoint;
988
- purposeArray?: Purpose[];
989
- circumstanceArray?: Circumstance[];
990
- rentOfferArray?: Offer[];
991
- reservationOfferArray?: Offer[];
992
- iconLight?: string | null;
993
- iconDark?: string | null;
994
- };*/
995
975
  async update(LocationUpdateParams, LocationUpdateOptions) {
996
976
  return await super.sendRequest(
997
977
  {
@@ -1109,11 +1089,28 @@ var TariffsService = class extends Service {
1109
1089
  TariffListOptions
1110
1090
  );
1111
1091
  }
1112
- async update() {
1113
- }
1114
- async delete() {
1115
- }
1116
- async terminate() {
1092
+ async update(TariffUpdateParams, TariffUpdateOptions) {
1093
+ return await super.sendRequest(
1094
+ {
1095
+ method: "PATCH",
1096
+ url: "tariffs/" + TariffUpdateParams.tariffId,
1097
+ body: {
1098
+ reminderEnabled: TariffUpdateParams.reminderEnabled,
1099
+ reminderPercentage: TariffUpdateParams.reminderPercentage,
1100
+ currencyCode: TariffUpdateParams.currencyCode,
1101
+ amount: TariffUpdateParams.amount,
1102
+ continue: TariffUpdateParams.continue,
1103
+ interval: TariffUpdateParams.interval,
1104
+ duration: TariffUpdateParams.duration,
1105
+ autoRenewMode: TariffUpdateParams.autoRenewMode,
1106
+ roundToMidnight: TariffUpdateParams.roundToMidnight,
1107
+ autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
1108
+ manualTerminationEnabled: TariffUpdateParams.manualTerminationEnabled
1109
+ },
1110
+ useAuthentication: true
1111
+ },
1112
+ TariffUpdateOptions
1113
+ );
1117
1114
  }
1118
1115
  /**
1119
1116
  * Checks if the tariff is free
package/dist/index.mjs CHANGED
@@ -927,26 +927,6 @@ var LocationsService = class extends Service {
927
927
  LocationListOptions
928
928
  );
929
929
  }
930
- /*
931
- export type Params = {
932
- locationId: string;
933
- name?: string;
934
- address?: Partial<Address>;
935
- deviceIdArray?: string[];
936
- deviceId?: string;
937
- maximumConcurrentSessions?: number;
938
- surveyEnabled?: boolean;
939
- accountingAreaId?: string;
940
- logoLight?: string | null;
941
- logoDark?: string | null;
942
- location?: GeoPoint;
943
- purposeArray?: Purpose[];
944
- circumstanceArray?: Circumstance[];
945
- rentOfferArray?: Offer[];
946
- reservationOfferArray?: Offer[];
947
- iconLight?: string | null;
948
- iconDark?: string | null;
949
- };*/
950
930
  async update(LocationUpdateParams, LocationUpdateOptions) {
951
931
  return await super.sendRequest(
952
932
  {
@@ -1064,11 +1044,28 @@ var TariffsService = class extends Service {
1064
1044
  TariffListOptions
1065
1045
  );
1066
1046
  }
1067
- async update() {
1068
- }
1069
- async delete() {
1070
- }
1071
- async terminate() {
1047
+ async update(TariffUpdateParams, TariffUpdateOptions) {
1048
+ return await super.sendRequest(
1049
+ {
1050
+ method: "PATCH",
1051
+ url: "tariffs/" + TariffUpdateParams.tariffId,
1052
+ body: {
1053
+ reminderEnabled: TariffUpdateParams.reminderEnabled,
1054
+ reminderPercentage: TariffUpdateParams.reminderPercentage,
1055
+ currencyCode: TariffUpdateParams.currencyCode,
1056
+ amount: TariffUpdateParams.amount,
1057
+ continue: TariffUpdateParams.continue,
1058
+ interval: TariffUpdateParams.interval,
1059
+ duration: TariffUpdateParams.duration,
1060
+ autoRenewMode: TariffUpdateParams.autoRenewMode,
1061
+ roundToMidnight: TariffUpdateParams.roundToMidnight,
1062
+ autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
1063
+ manualTerminationEnabled: TariffUpdateParams.manualTerminationEnabled
1064
+ },
1065
+ useAuthentication: true
1066
+ },
1067
+ TariffUpdateOptions
1068
+ );
1072
1069
  }
1073
1070
  /**
1074
1071
  * Checks if the tariff is free
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",