@juhuu/sdk-ts 1.2.213 → 1.2.215
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -2733,6 +2733,8 @@ declare namespace JUHUU {
|
|
2733
2733
|
namespace Capture {
|
2734
2734
|
type Params = {
|
2735
2735
|
paymentId: string;
|
2736
|
+
customAmount?: number;
|
2737
|
+
mode?: "captureAmountFinal" | "captureCustomAmount";
|
2736
2738
|
};
|
2737
2739
|
type Options = JUHUU.RequestOptions;
|
2738
2740
|
type Response = {
|
package/dist/index.d.ts
CHANGED
@@ -2733,6 +2733,8 @@ declare namespace JUHUU {
|
|
2733
2733
|
namespace Capture {
|
2734
2734
|
type Params = {
|
2735
2735
|
paymentId: string;
|
2736
|
+
customAmount?: number;
|
2737
|
+
mode?: "captureAmountFinal" | "captureCustomAmount";
|
2736
2738
|
};
|
2737
2739
|
type Options = JUHUU.RequestOptions;
|
2738
2740
|
type Response = {
|
package/dist/index.js
CHANGED
@@ -940,7 +940,10 @@ var PaymentsService = class extends Service {
|
|
940
940
|
{
|
941
941
|
method: "PATCH",
|
942
942
|
url: "payments/" + PaymentCaptureParams.paymentId + "/capture",
|
943
|
-
body:
|
943
|
+
body: {
|
944
|
+
customAmount: PaymentCaptureParams.customAmount,
|
945
|
+
mode: PaymentCaptureParams.mode
|
946
|
+
},
|
944
947
|
authenticationNotOptional: true
|
945
948
|
},
|
946
949
|
PaymentCaptureOptions
|
package/dist/index.mjs
CHANGED
@@ -896,7 +896,10 @@ var PaymentsService = class extends Service {
|
|
896
896
|
{
|
897
897
|
method: "PATCH",
|
898
898
|
url: "payments/" + PaymentCaptureParams.paymentId + "/capture",
|
899
|
-
body:
|
899
|
+
body: {
|
900
|
+
customAmount: PaymentCaptureParams.customAmount,
|
901
|
+
mode: PaymentCaptureParams.mode
|
902
|
+
},
|
900
903
|
authenticationNotOptional: true
|
901
904
|
},
|
902
905
|
PaymentCaptureOptions
|