@juhuu/sdk-ts 1.2.113 → 1.2.115

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
@@ -452,14 +452,14 @@ type GraphNode = {
452
452
  id: string;
453
453
  type: "property.notify";
454
454
  nodeIdArray: string[];
455
- subject: string;
456
- message: string;
455
+ subject: LocaleString;
456
+ message: LocaleString;
457
457
  } | {
458
458
  id: string;
459
459
  type: "user.notify";
460
460
  nodeIdArray: string[];
461
- subject: string;
462
- message: string;
461
+ subject: LocaleString;
462
+ message: LocaleString;
463
463
  } | {
464
464
  id: string;
465
465
  type: "parameter.set";
@@ -632,6 +632,7 @@ declare class PaymentsService extends Service {
632
632
  tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
633
633
  retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
634
634
  capture(PaymentCaptureParams: JUHUU.Payment.Capture.Params, PaymentCaptureOptions?: JUHUU.Payment.Capture.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Capture.Response>>;
635
+ cancel(PaymentCancelParams: JUHUU.Payment.Cancel.Params, PaymentCancelOptions?: JUHUU.Payment.Cancel.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Cancel.Response>>;
635
636
  }
636
637
 
637
638
  declare class PropertiesService extends Service {
@@ -1755,6 +1756,8 @@ declare namespace JUHUU {
1755
1756
  serviceFeePercentage: number;
1756
1757
  serviceFeeMin: number;
1757
1758
  serviceFeeMax: number;
1759
+ previewDescription: LocaleString | null;
1760
+ longDescription: LocaleString | null;
1758
1761
  };
1759
1762
  namespace Create {
1760
1763
  type Params = {
@@ -1875,9 +1878,7 @@ declare namespace JUHUU {
1875
1878
  type Params = {
1876
1879
  licenseTemplateId: string;
1877
1880
  };
1878
- type Options = {
1879
- expand?: Array<"property">;
1880
- } & JUHUU.RequestOptions;
1881
+ type Options = JUHUU.RequestOptions;
1881
1882
  type Response = {
1882
1883
  licenseTemplate: JUHUU.LicenseTemplate.Object;
1883
1884
  property: JUHUU.Property.Object;
@@ -2206,7 +2207,16 @@ declare namespace JUHUU {
2206
2207
  type Params = {
2207
2208
  paymentId: string;
2208
2209
  };
2209
- type Options = {} & JUHUU.RequestOptions;
2210
+ type Options = JUHUU.RequestOptions;
2211
+ type Response = {
2212
+ payment: JUHUU.Payment.Object;
2213
+ };
2214
+ }
2215
+ namespace Cancel {
2216
+ type Params = {
2217
+ paymentId: string;
2218
+ };
2219
+ type Options = JUHUU.RequestOptions;
2210
2220
  type Response = {
2211
2221
  payment: JUHUU.Payment.Object;
2212
2222
  };
package/dist/index.d.ts CHANGED
@@ -452,14 +452,14 @@ type GraphNode = {
452
452
  id: string;
453
453
  type: "property.notify";
454
454
  nodeIdArray: string[];
455
- subject: string;
456
- message: string;
455
+ subject: LocaleString;
456
+ message: LocaleString;
457
457
  } | {
458
458
  id: string;
459
459
  type: "user.notify";
460
460
  nodeIdArray: string[];
461
- subject: string;
462
- message: string;
461
+ subject: LocaleString;
462
+ message: LocaleString;
463
463
  } | {
464
464
  id: string;
465
465
  type: "parameter.set";
@@ -632,6 +632,7 @@ declare class PaymentsService extends Service {
632
632
  tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
633
633
  retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
634
634
  capture(PaymentCaptureParams: JUHUU.Payment.Capture.Params, PaymentCaptureOptions?: JUHUU.Payment.Capture.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Capture.Response>>;
635
+ cancel(PaymentCancelParams: JUHUU.Payment.Cancel.Params, PaymentCancelOptions?: JUHUU.Payment.Cancel.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Cancel.Response>>;
635
636
  }
636
637
 
637
638
  declare class PropertiesService extends Service {
@@ -1755,6 +1756,8 @@ declare namespace JUHUU {
1755
1756
  serviceFeePercentage: number;
1756
1757
  serviceFeeMin: number;
1757
1758
  serviceFeeMax: number;
1759
+ previewDescription: LocaleString | null;
1760
+ longDescription: LocaleString | null;
1758
1761
  };
1759
1762
  namespace Create {
1760
1763
  type Params = {
@@ -1875,9 +1878,7 @@ declare namespace JUHUU {
1875
1878
  type Params = {
1876
1879
  licenseTemplateId: string;
1877
1880
  };
1878
- type Options = {
1879
- expand?: Array<"property">;
1880
- } & JUHUU.RequestOptions;
1881
+ type Options = JUHUU.RequestOptions;
1881
1882
  type Response = {
1882
1883
  licenseTemplate: JUHUU.LicenseTemplate.Object;
1883
1884
  property: JUHUU.Property.Object;
@@ -2206,7 +2207,16 @@ declare namespace JUHUU {
2206
2207
  type Params = {
2207
2208
  paymentId: string;
2208
2209
  };
2209
- type Options = {} & JUHUU.RequestOptions;
2210
+ type Options = JUHUU.RequestOptions;
2211
+ type Response = {
2212
+ payment: JUHUU.Payment.Object;
2213
+ };
2214
+ }
2215
+ namespace Cancel {
2216
+ type Params = {
2217
+ paymentId: string;
2218
+ };
2219
+ type Options = JUHUU.RequestOptions;
2210
2220
  type Response = {
2211
2221
  payment: JUHUU.Payment.Object;
2212
2222
  };
package/dist/index.js CHANGED
@@ -790,6 +790,17 @@ var PaymentsService = class extends Service {
790
790
  PaymentCaptureOptions
791
791
  );
792
792
  }
793
+ async cancel(PaymentCancelParams, PaymentCancelOptions) {
794
+ return await super.sendRequest(
795
+ {
796
+ method: "PATCH",
797
+ url: "payments/" + PaymentCancelParams.paymentId + "/cancel",
798
+ body: void 0,
799
+ authenticationNotOptional: true
800
+ },
801
+ PaymentCancelOptions
802
+ );
803
+ }
793
804
  };
794
805
 
795
806
  // src/properties/properties.service.ts
@@ -2004,11 +2015,6 @@ var LicenseTemplatesService = class extends Service {
2004
2015
  }
2005
2016
  async retrieve(LicenseTemplateRetrieveParams, LicenseTemplateRetrieveOptions) {
2006
2017
  const queryArray = [];
2007
- if (LicenseTemplateRetrieveOptions?.expand !== void 0) {
2008
- queryArray.push(
2009
- "expand=" + LicenseTemplateRetrieveOptions.expand.join(",")
2010
- );
2011
- }
2012
2018
  return await super.sendRequest({
2013
2019
  method: "GET",
2014
2020
  url: "licenseTemplates/" + LicenseTemplateRetrieveParams.licenseTemplateId + "?" + queryArray.join("&"),
package/dist/index.mjs CHANGED
@@ -746,6 +746,17 @@ var PaymentsService = class extends Service {
746
746
  PaymentCaptureOptions
747
747
  );
748
748
  }
749
+ async cancel(PaymentCancelParams, PaymentCancelOptions) {
750
+ return await super.sendRequest(
751
+ {
752
+ method: "PATCH",
753
+ url: "payments/" + PaymentCancelParams.paymentId + "/cancel",
754
+ body: void 0,
755
+ authenticationNotOptional: true
756
+ },
757
+ PaymentCancelOptions
758
+ );
759
+ }
749
760
  };
750
761
 
751
762
  // src/properties/properties.service.ts
@@ -1960,11 +1971,6 @@ var LicenseTemplatesService = class extends Service {
1960
1971
  }
1961
1972
  async retrieve(LicenseTemplateRetrieveParams, LicenseTemplateRetrieveOptions) {
1962
1973
  const queryArray = [];
1963
- if (LicenseTemplateRetrieveOptions?.expand !== void 0) {
1964
- queryArray.push(
1965
- "expand=" + LicenseTemplateRetrieveOptions.expand.join(",")
1966
- );
1967
- }
1968
1974
  return await super.sendRequest({
1969
1975
  method: "GET",
1970
1976
  url: "licenseTemplates/" + LicenseTemplateRetrieveParams.licenseTemplateId + "?" + queryArray.join("&"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.113",
3
+ "version": "1.2.115",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",