@juhuu/sdk-ts 1.2.103 → 1.2.105

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
@@ -621,6 +621,7 @@ declare class PaymentsService extends Service {
621
621
  search(PaymentSearchParams: JUHUU.Payment.Search.Params, PaymentSearchOptions?: JUHUU.Payment.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Search.Response>>;
622
622
  tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
623
623
  retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
624
+ capture(PaymentCaptureParams: JUHUU.Payment.Capture.Params, PaymentCaptureOptions?: JUHUU.Payment.Capture.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Capture.Response>>;
624
625
  }
625
626
 
626
627
  declare class PropertiesService extends Service {
@@ -2178,6 +2179,15 @@ declare namespace JUHUU {
2178
2179
  invoiceUrl: string;
2179
2180
  };
2180
2181
  }
2182
+ namespace Capture {
2183
+ type Params = {
2184
+ paymentId: string;
2185
+ };
2186
+ type Options = {} & JUHUU.RequestOptions;
2187
+ type Response = {
2188
+ payment: JUHUU.Payment.Object;
2189
+ };
2190
+ }
2181
2191
  namespace Tokens {
2182
2192
  type Params = {
2183
2193
  paymentId: string;
package/dist/index.d.ts CHANGED
@@ -621,6 +621,7 @@ declare class PaymentsService extends Service {
621
621
  search(PaymentSearchParams: JUHUU.Payment.Search.Params, PaymentSearchOptions?: JUHUU.Payment.Search.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Search.Response>>;
622
622
  tokens(PaymentTokensParams: JUHUU.Payment.Tokens.Params, PaymentTokensOptions?: JUHUU.Payment.Tokens.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Tokens.Response>>;
623
623
  retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams: JUHUU.Payment.RetrieveInvoiceUrl.Params, PaymentRetrieveInvoiceUrlOptions?: JUHUU.Payment.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.RetrieveInvoiceUrl.Response>>;
624
+ capture(PaymentCaptureParams: JUHUU.Payment.Capture.Params, PaymentCaptureOptions?: JUHUU.Payment.Capture.Options): Promise<JUHUU.HttpResponse<JUHUU.Payment.Capture.Response>>;
624
625
  }
625
626
 
626
627
  declare class PropertiesService extends Service {
@@ -2178,6 +2179,15 @@ declare namespace JUHUU {
2178
2179
  invoiceUrl: string;
2179
2180
  };
2180
2181
  }
2182
+ namespace Capture {
2183
+ type Params = {
2184
+ paymentId: string;
2185
+ };
2186
+ type Options = {} & JUHUU.RequestOptions;
2187
+ type Response = {
2188
+ payment: JUHUU.Payment.Object;
2189
+ };
2190
+ }
2181
2191
  namespace Tokens {
2182
2192
  type Params = {
2183
2193
  paymentId: string;
package/dist/index.js CHANGED
@@ -754,12 +754,26 @@ var PaymentsService = class extends Service {
754
754
  }
755
755
  async retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams, PaymentRetrieveInvoiceUrlOptions) {
756
756
  const queryArray = [];
757
- return await super.sendRequest({
758
- method: "GET",
759
- url: "payments/" + PaymentRetrieveInvoiceUrlParams.paymentId + "/invoiceUrl",
760
- body: void 0,
761
- authenticationNotOptional: true
762
- });
757
+ return await super.sendRequest(
758
+ {
759
+ method: "GET",
760
+ url: "payments/" + PaymentRetrieveInvoiceUrlParams.paymentId + "/invoiceUrl",
761
+ body: void 0,
762
+ authenticationNotOptional: true
763
+ },
764
+ PaymentRetrieveInvoiceUrlOptions
765
+ );
766
+ }
767
+ async capture(PaymentCaptureParams, PaymentCaptureOptions) {
768
+ return await super.sendRequest(
769
+ {
770
+ method: "PATCH",
771
+ url: "payments/" + PaymentCaptureParams.paymentId + "/capture",
772
+ body: void 0,
773
+ authenticationNotOptional: true
774
+ },
775
+ PaymentCaptureOptions
776
+ );
763
777
  }
764
778
  };
765
779
 
package/dist/index.mjs CHANGED
@@ -710,12 +710,26 @@ var PaymentsService = class extends Service {
710
710
  }
711
711
  async retrieveInvoiceUrl(PaymentRetrieveInvoiceUrlParams, PaymentRetrieveInvoiceUrlOptions) {
712
712
  const queryArray = [];
713
- return await super.sendRequest({
714
- method: "GET",
715
- url: "payments/" + PaymentRetrieveInvoiceUrlParams.paymentId + "/invoiceUrl",
716
- body: void 0,
717
- authenticationNotOptional: true
718
- });
713
+ return await super.sendRequest(
714
+ {
715
+ method: "GET",
716
+ url: "payments/" + PaymentRetrieveInvoiceUrlParams.paymentId + "/invoiceUrl",
717
+ body: void 0,
718
+ authenticationNotOptional: true
719
+ },
720
+ PaymentRetrieveInvoiceUrlOptions
721
+ );
722
+ }
723
+ async capture(PaymentCaptureParams, PaymentCaptureOptions) {
724
+ return await super.sendRequest(
725
+ {
726
+ method: "PATCH",
727
+ url: "payments/" + PaymentCaptureParams.paymentId + "/capture",
728
+ body: void 0,
729
+ authenticationNotOptional: true
730
+ },
731
+ PaymentCaptureOptions
732
+ );
719
733
  }
720
734
  };
721
735
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.103",
3
+ "version": "1.2.105",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",