@gr4vy/sdk 0.18.17 → 0.18.18
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/README.md +13 -19
- package/bin/mcp-server.js +334 -334
- package/bin/mcp-server.js.map +15 -15
- package/docs/sdks/all/README.md +4 -4
- package/docs/sdks/gr4vyrefunds/README.md +199 -4
- package/funcs/transactionsRefundsAllCreate.d.ts +17 -0
- package/funcs/transactionsRefundsAllCreate.d.ts.map +1 -0
- package/funcs/{transactionRefundsAllCreate.js → transactionsRefundsAllCreate.js} +3 -3
- package/funcs/transactionsRefundsAllCreate.js.map +1 -0
- package/funcs/transactionsRefundsCreate.d.ts +17 -0
- package/funcs/transactionsRefundsCreate.d.ts.map +1 -0
- package/funcs/{transactionRefundsCreate.js → transactionsRefundsCreate.js} +3 -3
- package/funcs/{transactionRefundsAllCreate.js.map → transactionsRefundsCreate.js.map} +1 -1
- package/funcs/transactionsRefundsGet.d.ts +1 -1
- package/funcs/transactionsRefundsGet.d.ts.map +1 -1
- package/funcs/transactionsRefundsGet.js +3 -4
- package/funcs/transactionsRefundsGet.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +5 -5
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/{transactionRefundsAllCreate.d.ts → transactionsRefundsAllCreate.d.ts} +2 -2
- package/mcp-server/tools/transactionsRefundsAllCreate.d.ts.map +1 -0
- package/mcp-server/tools/{transactionRefundsAllCreate.js → transactionsRefundsAllCreate.js} +6 -6
- package/mcp-server/tools/transactionsRefundsAllCreate.js.map +1 -0
- package/mcp-server/tools/{transactionRefundsCreate.d.ts → transactionsRefundsCreate.d.ts} +2 -2
- package/mcp-server/tools/transactionsRefundsCreate.d.ts.map +1 -0
- package/mcp-server/tools/{transactionRefundsCreate.js → transactionsRefundsCreate.js} +6 -6
- package/mcp-server/tools/transactionsRefundsCreate.js.map +1 -0
- package/models/errors/gettransactionrefund.d.ts +31 -0
- package/models/errors/gettransactionrefund.d.ts.map +1 -0
- package/models/errors/gettransactionrefund.js +66 -0
- package/models/errors/gettransactionrefund.js.map +1 -0
- package/models/errors/index.d.ts +1 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/gettransactionrefund.d.ts +61 -0
- package/models/operations/gettransactionrefund.d.ts.map +1 -0
- package/models/operations/gettransactionrefund.js +101 -0
- package/models/operations/gettransactionrefund.js.map +1 -0
- package/models/operations/index.d.ts +1 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/all.js +2 -2
- package/sdk/all.js.map +1 -1
- package/sdk/gr4vyrefunds.d.ts +14 -0
- package/sdk/gr4vyrefunds.d.ts.map +1 -1
- package/sdk/gr4vyrefunds.js +22 -2
- package/sdk/gr4vyrefunds.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/sdk/transactions.d.ts +2 -2
- package/sdk/transactions.d.ts.map +1 -1
- package/sdk/transactions.js +2 -2
- package/sdk/transactions.js.map +1 -1
- package/src/funcs/{transactionRefundsAllCreate.ts → transactionsRefundsAllCreate.ts} +1 -1
- package/src/funcs/{transactionRefundsCreate.ts → transactionsRefundsCreate.ts} +1 -1
- package/src/funcs/transactionsRefundsGet.ts +7 -8
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -5
- package/src/mcp-server/tools/{transactionRefundsAllCreate.ts → transactionsRefundsAllCreate.ts} +4 -4
- package/src/mcp-server/tools/{transactionRefundsCreate.ts → transactionsRefundsCreate.ts} +4 -4
- package/src/models/errors/{gettreansactionrefund.ts → gettransactionrefund.ts} +23 -23
- package/src/models/errors/index.ts +1 -1
- package/src/models/operations/gettransactionrefund.ts +150 -0
- package/src/models/operations/index.ts +1 -1
- package/src/sdk/all.ts +2 -2
- package/src/sdk/gr4vyrefunds.ts +44 -2
- package/src/sdk/sdk.ts +0 -6
- package/src/sdk/transactions.ts +4 -4
- package/docs/sdks/gr4vytransactionsrefunds/README.md +0 -202
- package/docs/sdks/transaction/README.md +0 -6
- package/funcs/transactionRefundsAllCreate.d.ts +0 -17
- package/funcs/transactionRefundsAllCreate.d.ts.map +0 -1
- package/funcs/transactionRefundsCreate.d.ts +0 -17
- package/funcs/transactionRefundsCreate.d.ts.map +0 -1
- package/funcs/transactionRefundsCreate.js.map +0 -1
- package/mcp-server/tools/transactionRefundsAllCreate.d.ts.map +0 -1
- package/mcp-server/tools/transactionRefundsAllCreate.js.map +0 -1
- package/mcp-server/tools/transactionRefundsCreate.d.ts.map +0 -1
- package/mcp-server/tools/transactionRefundsCreate.js.map +0 -1
- package/models/errors/gettreansactionrefund.d.ts +0 -31
- package/models/errors/gettreansactionrefund.d.ts.map +0 -1
- package/models/errors/gettreansactionrefund.js +0 -66
- package/models/errors/gettreansactionrefund.js.map +0 -1
- package/models/operations/gettreansactionrefund.d.ts +0 -61
- package/models/operations/gettreansactionrefund.d.ts.map +0 -1
- package/models/operations/gettreansactionrefund.js +0 -101
- package/models/operations/gettreansactionrefund.js.map +0 -1
- package/sdk/gr4vytransactionsrefunds.d.ts +0 -19
- package/sdk/gr4vytransactionsrefunds.d.ts.map +0 -1
- package/sdk/gr4vytransactionsrefunds.js +0 -32
- package/sdk/gr4vytransactionsrefunds.js.map +0 -1
- package/sdk/transaction.d.ts +0 -7
- package/sdk/transaction.d.ts.map +0 -1
- package/sdk/transaction.js +0 -15
- package/sdk/transaction.js.map +0 -1
- package/src/models/operations/gettreansactionrefund.ts +0 -150
- package/src/sdk/gr4vytransactionsrefunds.ts +0 -51
- package/src/sdk/transaction.ts +0 -13
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.GetTreansactionRefundRequest$ = exports.GetTreansactionRefundRequest$outboundSchema = exports.GetTreansactionRefundRequest$inboundSchema = exports.GetTreansactionRefundGlobals$ = exports.GetTreansactionRefundGlobals$outboundSchema = exports.GetTreansactionRefundGlobals$inboundSchema = void 0;
|
|
30
|
-
exports.getTreansactionRefundGlobalsToJSON = getTreansactionRefundGlobalsToJSON;
|
|
31
|
-
exports.getTreansactionRefundGlobalsFromJSON = getTreansactionRefundGlobalsFromJSON;
|
|
32
|
-
exports.getTreansactionRefundRequestToJSON = getTreansactionRefundRequestToJSON;
|
|
33
|
-
exports.getTreansactionRefundRequestFromJSON = getTreansactionRefundRequestFromJSON;
|
|
34
|
-
const z = __importStar(require("zod"));
|
|
35
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
36
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
37
|
-
/** @internal */
|
|
38
|
-
exports.GetTreansactionRefundGlobals$inboundSchema = z.object({
|
|
39
|
-
merchantAccountId: z.string().optional(),
|
|
40
|
-
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.GetTreansactionRefundGlobals$outboundSchema = z.object({
|
|
43
|
-
merchantAccountId: z.string().optional(),
|
|
44
|
-
});
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
var GetTreansactionRefundGlobals$;
|
|
50
|
-
(function (GetTreansactionRefundGlobals$) {
|
|
51
|
-
/** @deprecated use `GetTreansactionRefundGlobals$inboundSchema` instead. */
|
|
52
|
-
GetTreansactionRefundGlobals$.inboundSchema = exports.GetTreansactionRefundGlobals$inboundSchema;
|
|
53
|
-
/** @deprecated use `GetTreansactionRefundGlobals$outboundSchema` instead. */
|
|
54
|
-
GetTreansactionRefundGlobals$.outboundSchema = exports.GetTreansactionRefundGlobals$outboundSchema;
|
|
55
|
-
})(GetTreansactionRefundGlobals$ || (exports.GetTreansactionRefundGlobals$ = GetTreansactionRefundGlobals$ = {}));
|
|
56
|
-
function getTreansactionRefundGlobalsToJSON(getTreansactionRefundGlobals) {
|
|
57
|
-
return JSON.stringify(exports.GetTreansactionRefundGlobals$outboundSchema.parse(getTreansactionRefundGlobals));
|
|
58
|
-
}
|
|
59
|
-
function getTreansactionRefundGlobalsFromJSON(jsonString) {
|
|
60
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetTreansactionRefundGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTreansactionRefundGlobals' from JSON`);
|
|
61
|
-
}
|
|
62
|
-
/** @internal */
|
|
63
|
-
exports.GetTreansactionRefundRequest$inboundSchema = z.object({
|
|
64
|
-
transaction_id: z.string(),
|
|
65
|
-
refund_id: z.string(),
|
|
66
|
-
merchantAccountId: z.nullable(z.string()).optional(),
|
|
67
|
-
}).transform((v) => {
|
|
68
|
-
return (0, primitives_js_1.remap)(v, {
|
|
69
|
-
"transaction_id": "transactionId",
|
|
70
|
-
"refund_id": "refundId",
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
/** @internal */
|
|
74
|
-
exports.GetTreansactionRefundRequest$outboundSchema = z.object({
|
|
75
|
-
transactionId: z.string(),
|
|
76
|
-
refundId: z.string(),
|
|
77
|
-
merchantAccountId: z.nullable(z.string()).optional(),
|
|
78
|
-
}).transform((v) => {
|
|
79
|
-
return (0, primitives_js_1.remap)(v, {
|
|
80
|
-
transactionId: "transaction_id",
|
|
81
|
-
refundId: "refund_id",
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
-
*/
|
|
88
|
-
var GetTreansactionRefundRequest$;
|
|
89
|
-
(function (GetTreansactionRefundRequest$) {
|
|
90
|
-
/** @deprecated use `GetTreansactionRefundRequest$inboundSchema` instead. */
|
|
91
|
-
GetTreansactionRefundRequest$.inboundSchema = exports.GetTreansactionRefundRequest$inboundSchema;
|
|
92
|
-
/** @deprecated use `GetTreansactionRefundRequest$outboundSchema` instead. */
|
|
93
|
-
GetTreansactionRefundRequest$.outboundSchema = exports.GetTreansactionRefundRequest$outboundSchema;
|
|
94
|
-
})(GetTreansactionRefundRequest$ || (exports.GetTreansactionRefundRequest$ = GetTreansactionRefundRequest$ = {}));
|
|
95
|
-
function getTreansactionRefundRequestToJSON(getTreansactionRefundRequest) {
|
|
96
|
-
return JSON.stringify(exports.GetTreansactionRefundRequest$outboundSchema.parse(getTreansactionRefundRequest));
|
|
97
|
-
}
|
|
98
|
-
function getTreansactionRefundRequestFromJSON(jsonString) {
|
|
99
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetTreansactionRefundRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTreansactionRefundRequest' from JSON`);
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=gettreansactionrefund.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gettreansactionrefund.js","sourceRoot":"","sources":["../../src/models/operations/gettreansactionrefund.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
export declare class Gr4vyTransactionsRefunds extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* List transaction refunds
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* List refunds for a transaction.
|
|
9
|
-
*/
|
|
10
|
-
list(transactionId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.CollectionRefund>;
|
|
11
|
-
/**
|
|
12
|
-
* Get transaction refund
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Fetch refund for a transaction.
|
|
16
|
-
*/
|
|
17
|
-
get(transactionId: string, refundId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.Refund>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=gr4vytransactionsrefunds.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gr4vytransactionsrefunds.d.ts","sourceRoot":"","sources":["../src/sdk/gr4vytransactionsrefunds.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,wBAAyB,SAAQ,SAAS;IACrD;;;;;OAKG;IACG,IAAI,CACR,aAAa,EAAE,MAAM,EACrB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC;IASvC;;;;;OAKG;IACG,GAAG,CACP,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;CAS9B"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Gr4vyTransactionsRefunds = void 0;
|
|
7
|
-
const transactionsRefundsGet_js_1 = require("../funcs/transactionsRefundsGet.js");
|
|
8
|
-
const transactionsRefundsList_js_1 = require("../funcs/transactionsRefundsList.js");
|
|
9
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
|
-
const fp_js_1 = require("../types/fp.js");
|
|
11
|
-
class Gr4vyTransactionsRefunds extends sdks_js_1.ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* List transaction refunds
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* List refunds for a transaction.
|
|
17
|
-
*/
|
|
18
|
-
async list(transactionId, merchantAccountId, options) {
|
|
19
|
-
return (0, fp_js_1.unwrapAsync)((0, transactionsRefundsList_js_1.transactionsRefundsList)(this, transactionId, merchantAccountId, options));
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get transaction refund
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* Fetch refund for a transaction.
|
|
26
|
-
*/
|
|
27
|
-
async get(transactionId, refundId, merchantAccountId, options) {
|
|
28
|
-
return (0, fp_js_1.unwrapAsync)((0, transactionsRefundsGet_js_1.transactionsRefundsGet)(this, transactionId, refundId, merchantAccountId, options));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.Gr4vyTransactionsRefunds = Gr4vyTransactionsRefunds;
|
|
32
|
-
//# sourceMappingURL=gr4vytransactionsrefunds.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gr4vytransactionsrefunds.js","sourceRoot":"","sources":["../src/sdk/gr4vytransactionsrefunds.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kFAA4E;AAC5E,oFAA8E;AAC9E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,wBAAyB,SAAQ,mBAAS;IACrD;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,aAAqB,EACrB,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,aAAqB,EACrB,QAAgB,EAChB,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAxCD,4DAwCC"}
|
package/sdk/transaction.d.ts
DELETED
package/sdk/transaction.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../src/sdk/transaction.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,CAAe;IAChC,IAAI,OAAO,IAAI,YAAY,CAE1B;CACF"}
|
package/sdk/transaction.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Transaction = void 0;
|
|
7
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
8
|
-
const gr4vyrefunds_js_1 = require("./gr4vyrefunds.js");
|
|
9
|
-
class Transaction extends sdks_js_1.ClientSDK {
|
|
10
|
-
get refunds() {
|
|
11
|
-
return (this._refunds ?? (this._refunds = new gr4vyrefunds_js_1.Gr4vyRefunds(this._options)));
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.Transaction = Transaction;
|
|
15
|
-
//# sourceMappingURL=transaction.js.map
|
package/sdk/transaction.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../src/sdk/transaction.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,mBAAS;IAExC,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,8BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC7D,CAAC;CACF;AALD,kCAKC"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type GetTreansactionRefundGlobals = {
|
|
12
|
-
merchantAccountId?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type GetTreansactionRefundRequest = {
|
|
16
|
-
transactionId: string;
|
|
17
|
-
refundId: string;
|
|
18
|
-
/**
|
|
19
|
-
* The ID of the merchant account to use for this request.
|
|
20
|
-
*/
|
|
21
|
-
merchantAccountId?: string | null | undefined;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const GetTreansactionRefundGlobals$inboundSchema: z.ZodType<
|
|
26
|
-
GetTreansactionRefundGlobals,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({
|
|
30
|
-
merchantAccountId: z.string().optional(),
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type GetTreansactionRefundGlobals$Outbound = {
|
|
35
|
-
merchantAccountId?: string | undefined;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const GetTreansactionRefundGlobals$outboundSchema: z.ZodType<
|
|
40
|
-
GetTreansactionRefundGlobals$Outbound,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
GetTreansactionRefundGlobals
|
|
43
|
-
> = z.object({
|
|
44
|
-
merchantAccountId: z.string().optional(),
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace GetTreansactionRefundGlobals$ {
|
|
52
|
-
/** @deprecated use `GetTreansactionRefundGlobals$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = GetTreansactionRefundGlobals$inboundSchema;
|
|
54
|
-
/** @deprecated use `GetTreansactionRefundGlobals$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = GetTreansactionRefundGlobals$outboundSchema;
|
|
56
|
-
/** @deprecated use `GetTreansactionRefundGlobals$Outbound` instead. */
|
|
57
|
-
export type Outbound = GetTreansactionRefundGlobals$Outbound;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function getTreansactionRefundGlobalsToJSON(
|
|
61
|
-
getTreansactionRefundGlobals: GetTreansactionRefundGlobals,
|
|
62
|
-
): string {
|
|
63
|
-
return JSON.stringify(
|
|
64
|
-
GetTreansactionRefundGlobals$outboundSchema.parse(
|
|
65
|
-
getTreansactionRefundGlobals,
|
|
66
|
-
),
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function getTreansactionRefundGlobalsFromJSON(
|
|
71
|
-
jsonString: string,
|
|
72
|
-
): SafeParseResult<GetTreansactionRefundGlobals, SDKValidationError> {
|
|
73
|
-
return safeParse(
|
|
74
|
-
jsonString,
|
|
75
|
-
(x) => GetTreansactionRefundGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
-
`Failed to parse 'GetTreansactionRefundGlobals' from JSON`,
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const GetTreansactionRefundRequest$inboundSchema: z.ZodType<
|
|
82
|
-
GetTreansactionRefundRequest,
|
|
83
|
-
z.ZodTypeDef,
|
|
84
|
-
unknown
|
|
85
|
-
> = z.object({
|
|
86
|
-
transaction_id: z.string(),
|
|
87
|
-
refund_id: z.string(),
|
|
88
|
-
merchantAccountId: z.nullable(z.string()).optional(),
|
|
89
|
-
}).transform((v) => {
|
|
90
|
-
return remap$(v, {
|
|
91
|
-
"transaction_id": "transactionId",
|
|
92
|
-
"refund_id": "refundId",
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export type GetTreansactionRefundRequest$Outbound = {
|
|
98
|
-
transaction_id: string;
|
|
99
|
-
refund_id: string;
|
|
100
|
-
merchantAccountId?: string | null | undefined;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const GetTreansactionRefundRequest$outboundSchema: z.ZodType<
|
|
105
|
-
GetTreansactionRefundRequest$Outbound,
|
|
106
|
-
z.ZodTypeDef,
|
|
107
|
-
GetTreansactionRefundRequest
|
|
108
|
-
> = z.object({
|
|
109
|
-
transactionId: z.string(),
|
|
110
|
-
refundId: z.string(),
|
|
111
|
-
merchantAccountId: z.nullable(z.string()).optional(),
|
|
112
|
-
}).transform((v) => {
|
|
113
|
-
return remap$(v, {
|
|
114
|
-
transactionId: "transaction_id",
|
|
115
|
-
refundId: "refund_id",
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
122
|
-
*/
|
|
123
|
-
export namespace GetTreansactionRefundRequest$ {
|
|
124
|
-
/** @deprecated use `GetTreansactionRefundRequest$inboundSchema` instead. */
|
|
125
|
-
export const inboundSchema = GetTreansactionRefundRequest$inboundSchema;
|
|
126
|
-
/** @deprecated use `GetTreansactionRefundRequest$outboundSchema` instead. */
|
|
127
|
-
export const outboundSchema = GetTreansactionRefundRequest$outboundSchema;
|
|
128
|
-
/** @deprecated use `GetTreansactionRefundRequest$Outbound` instead. */
|
|
129
|
-
export type Outbound = GetTreansactionRefundRequest$Outbound;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export function getTreansactionRefundRequestToJSON(
|
|
133
|
-
getTreansactionRefundRequest: GetTreansactionRefundRequest,
|
|
134
|
-
): string {
|
|
135
|
-
return JSON.stringify(
|
|
136
|
-
GetTreansactionRefundRequest$outboundSchema.parse(
|
|
137
|
-
getTreansactionRefundRequest,
|
|
138
|
-
),
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function getTreansactionRefundRequestFromJSON(
|
|
143
|
-
jsonString: string,
|
|
144
|
-
): SafeParseResult<GetTreansactionRefundRequest, SDKValidationError> {
|
|
145
|
-
return safeParse(
|
|
146
|
-
jsonString,
|
|
147
|
-
(x) => GetTreansactionRefundRequest$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
-
`Failed to parse 'GetTreansactionRefundRequest' from JSON`,
|
|
149
|
-
);
|
|
150
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { transactionsRefundsGet } from "../funcs/transactionsRefundsGet.js";
|
|
6
|
-
import { transactionsRefundsList } from "../funcs/transactionsRefundsList.js";
|
|
7
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import * as components from "../models/components/index.js";
|
|
9
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
-
|
|
11
|
-
export class Gr4vyTransactionsRefunds extends ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* List transaction refunds
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* List refunds for a transaction.
|
|
17
|
-
*/
|
|
18
|
-
async list(
|
|
19
|
-
transactionId: string,
|
|
20
|
-
merchantAccountId?: string | null | undefined,
|
|
21
|
-
options?: RequestOptions,
|
|
22
|
-
): Promise<components.CollectionRefund> {
|
|
23
|
-
return unwrapAsync(transactionsRefundsList(
|
|
24
|
-
this,
|
|
25
|
-
transactionId,
|
|
26
|
-
merchantAccountId,
|
|
27
|
-
options,
|
|
28
|
-
));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Get transaction refund
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Fetch refund for a transaction.
|
|
36
|
-
*/
|
|
37
|
-
async get(
|
|
38
|
-
transactionId: string,
|
|
39
|
-
refundId: string,
|
|
40
|
-
merchantAccountId?: string | null | undefined,
|
|
41
|
-
options?: RequestOptions,
|
|
42
|
-
): Promise<components.Refund> {
|
|
43
|
-
return unwrapAsync(transactionsRefundsGet(
|
|
44
|
-
this,
|
|
45
|
-
transactionId,
|
|
46
|
-
refundId,
|
|
47
|
-
merchantAccountId,
|
|
48
|
-
options,
|
|
49
|
-
));
|
|
50
|
-
}
|
|
51
|
-
}
|
package/src/sdk/transaction.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
-
import { Gr4vyRefunds } from "./gr4vyrefunds.js";
|
|
7
|
-
|
|
8
|
-
export class Transaction extends ClientSDK {
|
|
9
|
-
private _refunds?: Gr4vyRefunds;
|
|
10
|
-
get refunds(): Gr4vyRefunds {
|
|
11
|
-
return (this._refunds ??= new Gr4vyRefunds(this._options));
|
|
12
|
-
}
|
|
13
|
-
}
|