@figuredev/payments-sdk
Advanced tools
Comparing version 0.25.1 to 0.25.2
@@ -46,2 +46,3 @@ "use strict"; | ||
} | ||
// amount is target amount: payment + tip | ||
adjust(ctx, id, referenceId, amount) { | ||
@@ -64,2 +65,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
// amount is difference amount: amount to refund or null for full refund | ||
refund(ctx, id, referenceId, amount) { | ||
@@ -82,2 +84,3 @@ return __awaiter(this, void 0, void 0, function* () { | ||
} | ||
// amount is target amount to capture | ||
capture(ctx, id, referenceId, amount) { | ||
@@ -84,0 +87,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -38,3 +38,4 @@ import { Maybe } from "fgr-lib-backend/lib/types"; | ||
Declined = "Declined", | ||
Error = "Error" | ||
GatewayError = "GatewayError", | ||
ServerError = "ServerError" | ||
} | ||
@@ -41,0 +42,0 @@ export declare type PaymentRequestDTO = { |
@@ -34,3 +34,4 @@ "use strict"; | ||
PaymentStatusDTO["Declined"] = "Declined"; | ||
PaymentStatusDTO["Error"] = "Error"; | ||
PaymentStatusDTO["GatewayError"] = "GatewayError"; | ||
PaymentStatusDTO["ServerError"] = "ServerError"; | ||
})(PaymentStatusDTO = exports.PaymentStatusDTO || (exports.PaymentStatusDTO = {})); | ||
@@ -37,0 +38,0 @@ var PaymentDeclineCode; |
{ | ||
"name": "@figuredev/payments-sdk", | ||
"version": "0.25.1", | ||
"version": "0.25.2", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27869
491