@juhuu/sdk-ts 1.2.94 → 1.2.96

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
@@ -129,7 +129,7 @@ interface EnvironmentSettings {
129
129
  }
130
130
  type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
131
131
  type PaymentReason = "session";
132
- type RefundReason = "requestdByUser";
132
+ type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "fraudulent" | "duplicate" | "unknown";
133
133
  type SessionStatus = "waitingForPayment" | "ready" | "completed";
134
134
  type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
135
135
  type RefundStatus = "inTransitToUser" | "succeeded";
@@ -179,6 +179,7 @@ interface Party extends Person {
179
179
  }
180
180
  type VeloBrushDeviceDocumentUserManualStep = "prepareBike1" | "prepareBike2" | "chooseCycleType" | "openDoors1" | "extendBikeDrawer1" | "unfoldRamp1" | "placeBike1" | "fixBike1" | "fixBike2" | "retractBikeDrawer1" | "closeDoors1" | "selectWashProgram" | "waitForWashProgram" | "openDoors2" | "extendBikeDrawer2" | "dryBike1" | "dryBike2" | "releaseBike" | "unloadBike" | "retractBikeDrawer2" | "closeDoors2" | "lockDoors" | "error" | "emergencyStop" | "waitingForSession";
181
181
  type PaymentStatus = "waitingForConfirmation" | "waitingForAmountFinalization" | "waitingForCapture" | "waitingForTransitConfirmation" | "inTransitToProvider" | "captured" | "inTransitToProperty" | "payedOut";
182
+ type PaymentRefundStatus = "inTransitToUser" | "succeeded";
182
183
  type PaymentServiceProvider = "stripe";
183
184
  type PayoutStatus = "waitingForApproval" | "inTransitToProperty" | "payedOut";
184
185
  type BusinessType = "individual" | "company" | "non_profit" | "government_entity";
@@ -818,6 +819,13 @@ declare class TapkeyService extends Service {
818
819
  grantAccess(TapkeyGrantAccessParams: JUHUU.Tapkey.GrantAccess.Params, TapkeyGrantAccessOptions?: JUHUU.Tapkey.GrantAccess.Options): Promise<JUHUU.HttpResponse<JUHUU.Tapkey.GrantAccess.Response>>;
819
820
  }
820
821
 
822
+ declare class PaymentRefundsService extends Service {
823
+ constructor(config: JUHUU.SetupConfig);
824
+ list(PaymentRefundListParams: JUHUU.PaymentRefund.List.Params, PaymentRefundListOptions?: JUHUU.PaymentRefund.List.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.List.Response>>;
825
+ retrieve(PaymentRefundRetrieveParams: JUHUU.PaymentRefund.Retrieve.Params, PaymentRefundRetrieveOptions?: JUHUU.PaymentRefund.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.Retrieve.Response>>;
826
+ retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
827
+ }
828
+
821
829
  declare class Juhuu {
822
830
  constructor(config: JUHUU.SetupConfig);
823
831
  /**
@@ -827,6 +835,7 @@ declare class Juhuu {
827
835
  readonly links: LinkService;
828
836
  readonly users: UsersService;
829
837
  readonly payments: PaymentsService;
838
+ readonly paymentRefunds: PaymentRefundsService;
830
839
  readonly properties: PropertiesService;
831
840
  readonly points: PointsService;
832
841
  readonly devices: DevicesService;
@@ -2182,6 +2191,70 @@ declare namespace JUHUU {
2182
2191
  };
2183
2192
  }
2184
2193
  }
2194
+ namespace PaymentRefund {
2195
+ type Object = {
2196
+ id: string;
2197
+ version: number;
2198
+ provider: PaymentServiceProvider | null;
2199
+ status: PaymentRefundStatus;
2200
+ paymentId: string;
2201
+ propertyId: string;
2202
+ currencyCode: CurrencyCode;
2203
+ number: number;
2204
+ paymentNumberToRefund: number;
2205
+ createdAt: Date;
2206
+ userId: string;
2207
+ reason: PaymentRefundReason;
2208
+ transactionFee: number;
2209
+ serviceFee: number;
2210
+ billingAddress: DeepNullable<Address>;
2211
+ vat: string | null;
2212
+ accountingAreaId: string;
2213
+ estimatedArrivalAt: Date;
2214
+ postingRowArray: PostingRow[];
2215
+ amountToArriveAtUser: number;
2216
+ invoicePdfId: string;
2217
+ providerPaymentRefundId: string;
2218
+ paymentMethod: PaymentMethod | null;
2219
+ payoutId: string | null;
2220
+ };
2221
+ namespace Retrieve {
2222
+ type Params = {
2223
+ paymentRefundId: string;
2224
+ };
2225
+ type Options = {
2226
+ expand?: Array<"property">;
2227
+ } & JUHUU.RequestOptions;
2228
+ type Response = {
2229
+ paymentRefund: JUHUU.PaymentRefund.Object;
2230
+ property?: JUHUU.Property.Object;
2231
+ };
2232
+ }
2233
+ namespace List {
2234
+ type Params = {
2235
+ propertyId?: string;
2236
+ userId?: string;
2237
+ statusArray?: JUHUU.Payment.Object["status"][];
2238
+ createdAt?: {
2239
+ gte?: number;
2240
+ lte?: number;
2241
+ };
2242
+ limit?: number;
2243
+ skip?: number;
2244
+ };
2245
+ type Options = JUHUU.RequestOptions;
2246
+ type Response = JUHUU.PaymentRefund.Object[];
2247
+ }
2248
+ namespace RetrieveInvoiceUrl {
2249
+ type Params = {
2250
+ paymentRefundId: string;
2251
+ };
2252
+ type Options = {} & JUHUU.RequestOptions;
2253
+ type Response = {
2254
+ invoiceUrl: string;
2255
+ };
2256
+ }
2257
+ }
2185
2258
  namespace Location {
2186
2259
  type Base = {
2187
2260
  id: string;
@@ -2822,4 +2895,4 @@ declare namespace JUHUU {
2822
2895
  }
2823
2896
  }
2824
2897
 
2825
- export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
2898
+ export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.d.ts CHANGED
@@ -129,7 +129,7 @@ interface EnvironmentSettings {
129
129
  }
130
130
  type PaymentMethod = "card" | "stripe_account" | "klarna" | "bancontact" | "eps" | "giropay" | "ideal" | "p24" | "sofort" | "unknown";
131
131
  type PaymentReason = "session";
132
- type RefundReason = "requestdByUser";
132
+ type PaymentRefundReason = "requestedByUser" | "expiredUncapturedCharge" | "fraudulent" | "duplicate" | "unknown";
133
133
  type SessionStatus = "waitingForPayment" | "ready" | "completed";
134
134
  type AutoRenewMode = "off" | "optIn" | "optOut" | "on";
135
135
  type RefundStatus = "inTransitToUser" | "succeeded";
@@ -179,6 +179,7 @@ interface Party extends Person {
179
179
  }
180
180
  type VeloBrushDeviceDocumentUserManualStep = "prepareBike1" | "prepareBike2" | "chooseCycleType" | "openDoors1" | "extendBikeDrawer1" | "unfoldRamp1" | "placeBike1" | "fixBike1" | "fixBike2" | "retractBikeDrawer1" | "closeDoors1" | "selectWashProgram" | "waitForWashProgram" | "openDoors2" | "extendBikeDrawer2" | "dryBike1" | "dryBike2" | "releaseBike" | "unloadBike" | "retractBikeDrawer2" | "closeDoors2" | "lockDoors" | "error" | "emergencyStop" | "waitingForSession";
181
181
  type PaymentStatus = "waitingForConfirmation" | "waitingForAmountFinalization" | "waitingForCapture" | "waitingForTransitConfirmation" | "inTransitToProvider" | "captured" | "inTransitToProperty" | "payedOut";
182
+ type PaymentRefundStatus = "inTransitToUser" | "succeeded";
182
183
  type PaymentServiceProvider = "stripe";
183
184
  type PayoutStatus = "waitingForApproval" | "inTransitToProperty" | "payedOut";
184
185
  type BusinessType = "individual" | "company" | "non_profit" | "government_entity";
@@ -818,6 +819,13 @@ declare class TapkeyService extends Service {
818
819
  grantAccess(TapkeyGrantAccessParams: JUHUU.Tapkey.GrantAccess.Params, TapkeyGrantAccessOptions?: JUHUU.Tapkey.GrantAccess.Options): Promise<JUHUU.HttpResponse<JUHUU.Tapkey.GrantAccess.Response>>;
819
820
  }
820
821
 
822
+ declare class PaymentRefundsService extends Service {
823
+ constructor(config: JUHUU.SetupConfig);
824
+ list(PaymentRefundListParams: JUHUU.PaymentRefund.List.Params, PaymentRefundListOptions?: JUHUU.PaymentRefund.List.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.List.Response>>;
825
+ retrieve(PaymentRefundRetrieveParams: JUHUU.PaymentRefund.Retrieve.Params, PaymentRefundRetrieveOptions?: JUHUU.PaymentRefund.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.Retrieve.Response>>;
826
+ retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
827
+ }
828
+
821
829
  declare class Juhuu {
822
830
  constructor(config: JUHUU.SetupConfig);
823
831
  /**
@@ -827,6 +835,7 @@ declare class Juhuu {
827
835
  readonly links: LinkService;
828
836
  readonly users: UsersService;
829
837
  readonly payments: PaymentsService;
838
+ readonly paymentRefunds: PaymentRefundsService;
830
839
  readonly properties: PropertiesService;
831
840
  readonly points: PointsService;
832
841
  readonly devices: DevicesService;
@@ -2182,6 +2191,70 @@ declare namespace JUHUU {
2182
2191
  };
2183
2192
  }
2184
2193
  }
2194
+ namespace PaymentRefund {
2195
+ type Object = {
2196
+ id: string;
2197
+ version: number;
2198
+ provider: PaymentServiceProvider | null;
2199
+ status: PaymentRefundStatus;
2200
+ paymentId: string;
2201
+ propertyId: string;
2202
+ currencyCode: CurrencyCode;
2203
+ number: number;
2204
+ paymentNumberToRefund: number;
2205
+ createdAt: Date;
2206
+ userId: string;
2207
+ reason: PaymentRefundReason;
2208
+ transactionFee: number;
2209
+ serviceFee: number;
2210
+ billingAddress: DeepNullable<Address>;
2211
+ vat: string | null;
2212
+ accountingAreaId: string;
2213
+ estimatedArrivalAt: Date;
2214
+ postingRowArray: PostingRow[];
2215
+ amountToArriveAtUser: number;
2216
+ invoicePdfId: string;
2217
+ providerPaymentRefundId: string;
2218
+ paymentMethod: PaymentMethod | null;
2219
+ payoutId: string | null;
2220
+ };
2221
+ namespace Retrieve {
2222
+ type Params = {
2223
+ paymentRefundId: string;
2224
+ };
2225
+ type Options = {
2226
+ expand?: Array<"property">;
2227
+ } & JUHUU.RequestOptions;
2228
+ type Response = {
2229
+ paymentRefund: JUHUU.PaymentRefund.Object;
2230
+ property?: JUHUU.Property.Object;
2231
+ };
2232
+ }
2233
+ namespace List {
2234
+ type Params = {
2235
+ propertyId?: string;
2236
+ userId?: string;
2237
+ statusArray?: JUHUU.Payment.Object["status"][];
2238
+ createdAt?: {
2239
+ gte?: number;
2240
+ lte?: number;
2241
+ };
2242
+ limit?: number;
2243
+ skip?: number;
2244
+ };
2245
+ type Options = JUHUU.RequestOptions;
2246
+ type Response = JUHUU.PaymentRefund.Object[];
2247
+ }
2248
+ namespace RetrieveInvoiceUrl {
2249
+ type Params = {
2250
+ paymentRefundId: string;
2251
+ };
2252
+ type Options = {} & JUHUU.RequestOptions;
2253
+ type Response = {
2254
+ invoiceUrl: string;
2255
+ };
2256
+ }
2257
+ }
2185
2258
  namespace Location {
2186
2259
  type Base = {
2187
2260
  id: string;
@@ -2822,4 +2895,4 @@ declare namespace JUHUU {
2822
2895
  }
2823
2896
  }
2824
2897
 
2825
- export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundReason, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
2898
+ export { type AccessControlListElement, type Address, type AutoRenewMode, type BusinessType, type Category, type Circumstance, type Color, type ColorScheme, type Command, type Condition, ConditionType, type CountryCode, CountryCodeArray, type CurrencyCode, CurrencyCodeArray, type CustomClaims, type DeepNullable, type DevicePermission, type DeviceStatus, type DeviceType, type Environment, type EnvironmentSettings, type ExtractType, type Frontend, type FuelType, type GeneralSettings, type GeoPoint, type GraphNode, JUHUU, Juhuu, type LanguageCode, LanguageCodeArray, Layout, type LayoutBlock, type LicenseTariffIdMap, type LinkType, type LocaleString, type MapFilter, type Modality, type Offer, type OfferTime, type Parameter, type Party, type PaymentMethod, type PaymentReason, type PaymentRefundReason, type PaymentRefundStatus, type PaymentServiceProvider, type PaymentStatus, type PayoutSettings, type PayoutStatus, type PermissionTypes, type Person, type Platform, type PlatformUrl, type PostingRow, type Purpose, type PushToken, ReadonlyCategoryArray, ReadonlyModalityArray, ReadonlySectorArray, type RefundStatus, type Sector, type SessionCannotTerminateReason, type SessionSettings, type SessionStatus, type SessionTerminatedByType, type SessionType, Settings, type SimStatus, type StarRating, type TarifType, type TimeZone, type Unit, type UserGroup, type UserType, type Utilization, type VeloBrushDeviceDocumentUserManualStep, type Viewport, type ViewportPolygon, type VisualPriority, type hexColor };
package/dist/index.js CHANGED
@@ -997,6 +997,7 @@ var DevicesService = class extends Service {
997
997
  method: "PATCH",
998
998
  url: "devices/" + DeviceUpdateParams.deviceId,
999
999
  body: {
1000
+ status: DeviceUpdateParams.status,
1000
1001
  name: DeviceUpdateParams.name,
1001
1002
  description: DeviceUpdateParams.description,
1002
1003
  latitude: DeviceUpdateParams.latitude,
@@ -2427,6 +2428,77 @@ var TapkeyService = class extends Service {
2427
2428
  }
2428
2429
  };
2429
2430
 
2431
+ // src/paymentRefunds/paymentRefunds.service.ts
2432
+ var PaymentRefundsService = class extends Service {
2433
+ constructor(config) {
2434
+ super(config);
2435
+ }
2436
+ async list(PaymentRefundListParams, PaymentRefundListOptions) {
2437
+ const queryArray = [];
2438
+ if (PaymentRefundListParams.userId !== void 0) {
2439
+ queryArray.push("userId=" + PaymentRefundListParams.userId);
2440
+ }
2441
+ if (PaymentRefundListParams.propertyId !== void 0) {
2442
+ queryArray.push("propertyId=" + PaymentRefundListParams.propertyId);
2443
+ }
2444
+ if (PaymentRefundListParams.statusArray !== void 0) {
2445
+ queryArray.push(
2446
+ "statusArray=" + PaymentRefundListParams.statusArray.join(",")
2447
+ );
2448
+ }
2449
+ if (PaymentRefundListParams?.createdAt?.gte !== void 0) {
2450
+ queryArray.push(
2451
+ "createdAt[gte]=" + PaymentRefundListParams.createdAt.gte
2452
+ );
2453
+ }
2454
+ if (PaymentRefundListParams?.createdAt?.lte !== void 0) {
2455
+ queryArray.push(
2456
+ "createdAt[lte]=" + PaymentRefundListParams.createdAt.lte
2457
+ );
2458
+ }
2459
+ if (PaymentRefundListParams.limit !== void 0) {
2460
+ queryArray.push("limit=" + PaymentRefundListParams.limit);
2461
+ }
2462
+ if (PaymentRefundListParams.skip !== void 0) {
2463
+ queryArray.push("skip=" + PaymentRefundListParams.skip);
2464
+ }
2465
+ return await super.sendRequest(
2466
+ {
2467
+ method: "GET",
2468
+ url: "paymentRefunds?" + queryArray.join("&"),
2469
+ body: void 0,
2470
+ authenticationNotOptional: true
2471
+ },
2472
+ PaymentRefundListOptions
2473
+ );
2474
+ }
2475
+ async retrieve(PaymentRefundRetrieveParams, PaymentRefundRetrieveOptions) {
2476
+ const queryArray = [];
2477
+ if (PaymentRefundRetrieveOptions?.expand !== void 0) {
2478
+ queryArray.push(
2479
+ "expand=" + PaymentRefundRetrieveOptions.expand.join(",")
2480
+ );
2481
+ }
2482
+ return await super.sendRequest({
2483
+ method: "GET",
2484
+ url: "paymentRefunds/" + PaymentRefundRetrieveParams.paymentRefundId + "?" + queryArray.join("&"),
2485
+ body: void 0,
2486
+ authenticationNotOptional: true
2487
+ });
2488
+ }
2489
+ async retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams, PaymentRefundRetrieveInvoiceUrlOptions) {
2490
+ const queryArray = [];
2491
+ return await super.sendRequest(
2492
+ {
2493
+ method: "GET",
2494
+ url: "paymentRefunds/" + PaymentRefundRetrieveInvoiceUrlParams.paymentRefundId + "/invoiceUrl",
2495
+ body: void 0,
2496
+ authenticationNotOptional: true
2497
+ }
2498
+ );
2499
+ }
2500
+ };
2501
+
2430
2502
  // src/types/types.ts
2431
2503
  var LanguageCodeArray = [
2432
2504
  "en",
@@ -2580,6 +2652,7 @@ var Juhuu = class {
2580
2652
  this.links = new LinkService(config);
2581
2653
  this.users = new UsersService(config);
2582
2654
  this.payments = new PaymentsService(config);
2655
+ this.paymentRefunds = new PaymentRefundsService(config);
2583
2656
  this.properties = new PropertiesService(config);
2584
2657
  this.points = new PointsService(config);
2585
2658
  this.devices = new DevicesService(config);
@@ -2609,6 +2682,7 @@ var Juhuu = class {
2609
2682
  links;
2610
2683
  users;
2611
2684
  payments;
2685
+ paymentRefunds;
2612
2686
  properties;
2613
2687
  points;
2614
2688
  devices;
package/dist/index.mjs CHANGED
@@ -953,6 +953,7 @@ var DevicesService = class extends Service {
953
953
  method: "PATCH",
954
954
  url: "devices/" + DeviceUpdateParams.deviceId,
955
955
  body: {
956
+ status: DeviceUpdateParams.status,
956
957
  name: DeviceUpdateParams.name,
957
958
  description: DeviceUpdateParams.description,
958
959
  latitude: DeviceUpdateParams.latitude,
@@ -2383,6 +2384,77 @@ var TapkeyService = class extends Service {
2383
2384
  }
2384
2385
  };
2385
2386
 
2387
+ // src/paymentRefunds/paymentRefunds.service.ts
2388
+ var PaymentRefundsService = class extends Service {
2389
+ constructor(config) {
2390
+ super(config);
2391
+ }
2392
+ async list(PaymentRefundListParams, PaymentRefundListOptions) {
2393
+ const queryArray = [];
2394
+ if (PaymentRefundListParams.userId !== void 0) {
2395
+ queryArray.push("userId=" + PaymentRefundListParams.userId);
2396
+ }
2397
+ if (PaymentRefundListParams.propertyId !== void 0) {
2398
+ queryArray.push("propertyId=" + PaymentRefundListParams.propertyId);
2399
+ }
2400
+ if (PaymentRefundListParams.statusArray !== void 0) {
2401
+ queryArray.push(
2402
+ "statusArray=" + PaymentRefundListParams.statusArray.join(",")
2403
+ );
2404
+ }
2405
+ if (PaymentRefundListParams?.createdAt?.gte !== void 0) {
2406
+ queryArray.push(
2407
+ "createdAt[gte]=" + PaymentRefundListParams.createdAt.gte
2408
+ );
2409
+ }
2410
+ if (PaymentRefundListParams?.createdAt?.lte !== void 0) {
2411
+ queryArray.push(
2412
+ "createdAt[lte]=" + PaymentRefundListParams.createdAt.lte
2413
+ );
2414
+ }
2415
+ if (PaymentRefundListParams.limit !== void 0) {
2416
+ queryArray.push("limit=" + PaymentRefundListParams.limit);
2417
+ }
2418
+ if (PaymentRefundListParams.skip !== void 0) {
2419
+ queryArray.push("skip=" + PaymentRefundListParams.skip);
2420
+ }
2421
+ return await super.sendRequest(
2422
+ {
2423
+ method: "GET",
2424
+ url: "paymentRefunds?" + queryArray.join("&"),
2425
+ body: void 0,
2426
+ authenticationNotOptional: true
2427
+ },
2428
+ PaymentRefundListOptions
2429
+ );
2430
+ }
2431
+ async retrieve(PaymentRefundRetrieveParams, PaymentRefundRetrieveOptions) {
2432
+ const queryArray = [];
2433
+ if (PaymentRefundRetrieveOptions?.expand !== void 0) {
2434
+ queryArray.push(
2435
+ "expand=" + PaymentRefundRetrieveOptions.expand.join(",")
2436
+ );
2437
+ }
2438
+ return await super.sendRequest({
2439
+ method: "GET",
2440
+ url: "paymentRefunds/" + PaymentRefundRetrieveParams.paymentRefundId + "?" + queryArray.join("&"),
2441
+ body: void 0,
2442
+ authenticationNotOptional: true
2443
+ });
2444
+ }
2445
+ async retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams, PaymentRefundRetrieveInvoiceUrlOptions) {
2446
+ const queryArray = [];
2447
+ return await super.sendRequest(
2448
+ {
2449
+ method: "GET",
2450
+ url: "paymentRefunds/" + PaymentRefundRetrieveInvoiceUrlParams.paymentRefundId + "/invoiceUrl",
2451
+ body: void 0,
2452
+ authenticationNotOptional: true
2453
+ }
2454
+ );
2455
+ }
2456
+ };
2457
+
2386
2458
  // src/types/types.ts
2387
2459
  var LanguageCodeArray = [
2388
2460
  "en",
@@ -2536,6 +2608,7 @@ var Juhuu = class {
2536
2608
  this.links = new LinkService(config);
2537
2609
  this.users = new UsersService(config);
2538
2610
  this.payments = new PaymentsService(config);
2611
+ this.paymentRefunds = new PaymentRefundsService(config);
2539
2612
  this.properties = new PropertiesService(config);
2540
2613
  this.points = new PointsService(config);
2541
2614
  this.devices = new DevicesService(config);
@@ -2565,6 +2638,7 @@ var Juhuu = class {
2565
2638
  links;
2566
2639
  users;
2567
2640
  payments;
2641
+ paymentRefunds;
2568
2642
  properties;
2569
2643
  points;
2570
2644
  devices;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.94",
3
+ "version": "1.2.96",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",