@juhuu/sdk-ts 1.2.112 → 1.2.114

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
+ description: LocaleString | null;
1758
1761
  };
1759
1762
  namespace Create {
1760
1763
  type Params = {
@@ -1839,7 +1842,7 @@ declare namespace JUHUU {
1839
1842
  export interface RegexLicenseTemplate extends Base {
1840
1843
  type: "regex";
1841
1844
  regex: string;
1842
- propertyId: string;
1845
+ propertyId: string | null;
1843
1846
  }
1844
1847
  export interface AutomaticLicenseTemplate extends Base {
1845
1848
  type: "automatic";
@@ -1857,7 +1860,6 @@ declare namespace JUHUU {
1857
1860
  export interface StripeIdentityLicenseTemplate extends Base {
1858
1861
  type: "stripeIdentity";
1859
1862
  url: string;
1860
- propertyId: string;
1861
1863
  }
1862
1864
  export type Object = AutomaticLicenseTemplate | RegexLicenseTemplate | UrlLicenseTemplate | StripeIdentityLicenseTemplate;
1863
1865
  export namespace Create {
@@ -1876,9 +1878,7 @@ declare namespace JUHUU {
1876
1878
  type Params = {
1877
1879
  licenseTemplateId: string;
1878
1880
  };
1879
- type Options = {
1880
- expand?: Array<"property">;
1881
- } & JUHUU.RequestOptions;
1881
+ type Options = JUHUU.RequestOptions;
1882
1882
  type Response = {
1883
1883
  licenseTemplate: JUHUU.LicenseTemplate.Object;
1884
1884
  property: JUHUU.Property.Object;
@@ -2207,7 +2207,16 @@ declare namespace JUHUU {
2207
2207
  type Params = {
2208
2208
  paymentId: string;
2209
2209
  };
2210
- 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;
2211
2220
  type Response = {
2212
2221
  payment: JUHUU.Payment.Object;
2213
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
+ description: LocaleString | null;
1758
1761
  };
1759
1762
  namespace Create {
1760
1763
  type Params = {
@@ -1839,7 +1842,7 @@ declare namespace JUHUU {
1839
1842
  export interface RegexLicenseTemplate extends Base {
1840
1843
  type: "regex";
1841
1844
  regex: string;
1842
- propertyId: string;
1845
+ propertyId: string | null;
1843
1846
  }
1844
1847
  export interface AutomaticLicenseTemplate extends Base {
1845
1848
  type: "automatic";
@@ -1857,7 +1860,6 @@ declare namespace JUHUU {
1857
1860
  export interface StripeIdentityLicenseTemplate extends Base {
1858
1861
  type: "stripeIdentity";
1859
1862
  url: string;
1860
- propertyId: string;
1861
1863
  }
1862
1864
  export type Object = AutomaticLicenseTemplate | RegexLicenseTemplate | UrlLicenseTemplate | StripeIdentityLicenseTemplate;
1863
1865
  export namespace Create {
@@ -1876,9 +1878,7 @@ declare namespace JUHUU {
1876
1878
  type Params = {
1877
1879
  licenseTemplateId: string;
1878
1880
  };
1879
- type Options = {
1880
- expand?: Array<"property">;
1881
- } & JUHUU.RequestOptions;
1881
+ type Options = JUHUU.RequestOptions;
1882
1882
  type Response = {
1883
1883
  licenseTemplate: JUHUU.LicenseTemplate.Object;
1884
1884
  property: JUHUU.Property.Object;
@@ -2207,7 +2207,16 @@ declare namespace JUHUU {
2207
2207
  type Params = {
2208
2208
  paymentId: string;
2209
2209
  };
2210
- 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;
2211
2220
  type Response = {
2212
2221
  payment: JUHUU.Payment.Object;
2213
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.112",
3
+ "version": "1.2.114",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",