@naturalpay/sdk 1.6.18 → 1.6.19
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/events/client/Client.js +4 -4
- package/dist/cjs/api/resources/events/client/requests/GetEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/events/client/requests/ListEventsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.d.ts +1 -1
- package/dist/cjs/api/resources/events/types/ListEventsRequestEventType.js +1 -1
- package/dist/cjs/api/resources/externalAccounts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/externalAccounts/client/Client.js +1 -1
- package/dist/cjs/api/resources/externalAccounts/client/requests/CreateFromProcessorTokenExternalAccountsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/paymentRequests/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/paymentRequests/client/Client.js +15 -8
- package/dist/cjs/api/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.d.ts +4 -1
- package/dist/cjs/api/resources/paymentRequests/client/requests/GetPaymentRequestsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/paymentRequests/client/requests/ListIncomingPaymentRequestsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/paymentRequests/client/requests/NewFulfilledReqParams.d.ts +2 -0
- package/dist/cjs/api/resources/payments/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/payments/client/Client.js +13 -6
- package/dist/cjs/api/resources/payments/client/requests/CancelPaymentsRequest.d.ts +4 -1
- package/dist/cjs/api/resources/payments/client/requests/GetPaymentsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/requests/ListPaymentsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/transactions/client/Client.js +2 -2
- package/dist/cjs/api/resources/transactions/client/requests/GetTransactionsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/transfers/client/Client.js +4 -4
- package/dist/cjs/api/resources/transfers/client/requests/GetTransfersRequest.d.ts +1 -1
- package/dist/cjs/api/resources/transfers/client/requests/InitiateInternalTransfersRequest.d.ts +1 -1
- package/dist/cjs/api/resources/transfers/client/requests/ListTransfersRequest.d.ts +1 -1
- package/dist/cjs/api/resources/transfers/client/requests/NewDepositParams.d.ts +1 -1
- package/dist/cjs/api/resources/transfers/client/requests/NewWithdrawalParams.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/client/Client.js +4 -4
- package/dist/cjs/api/resources/wallets/client/requests/CreateWalletsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/client/requests/GetWalletsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/client/requests/ListWalletsRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/externalAccounts/client/requests/CreateFromProcessorTokenExternalAccountsRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/externalAccounts/client/requests/CreateFromProcessorTokenExternalAccountsRequest.js +1 -1
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.js +41 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewFulfilledReqParams.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewFulfilledReqParams.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/payments/client/requests/CancelPaymentsRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/payments/client/requests/CancelPaymentsRequest.js +41 -0
- package/dist/cjs/serialization/resources/payments/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/payments/client/requests/index.js +3 -1
- package/dist/cjs/serialization/resources/transfers/client/requests/InitiateInternalTransfersRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/transfers/client/requests/InitiateInternalTransfersRequest.js +1 -1
- package/dist/cjs/serialization/resources/transfers/client/requests/NewDepositParams.d.ts +1 -1
- package/dist/cjs/serialization/resources/transfers/client/requests/NewDepositParams.js +1 -1
- package/dist/cjs/serialization/resources/transfers/client/requests/NewWithdrawalParams.d.ts +1 -1
- package/dist/cjs/serialization/resources/transfers/client/requests/NewWithdrawalParams.js +1 -1
- package/dist/cjs/serialization/resources/wallets/client/requests/CreateWalletsRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/wallets/client/requests/CreateWalletsRequest.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/events/client/Client.mjs +4 -4
- package/dist/esm/api/resources/events/client/requests/GetEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/events/client/requests/ListEventsRequest.d.mts +1 -1
- package/dist/esm/api/resources/events/types/ListEventsRequestEventType.d.mts +1 -1
- package/dist/esm/api/resources/events/types/ListEventsRequestEventType.mjs +1 -1
- package/dist/esm/api/resources/externalAccounts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/externalAccounts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/externalAccounts/client/requests/CreateFromProcessorTokenExternalAccountsRequest.d.mts +2 -2
- package/dist/esm/api/resources/paymentRequests/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/paymentRequests/client/Client.mjs +15 -8
- package/dist/esm/api/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.d.mts +4 -1
- package/dist/esm/api/resources/paymentRequests/client/requests/GetPaymentRequestsRequest.d.mts +1 -1
- package/dist/esm/api/resources/paymentRequests/client/requests/ListIncomingPaymentRequestsRequest.d.mts +1 -1
- package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts +1 -1
- package/dist/esm/api/resources/paymentRequests/client/requests/NewFulfilledReqParams.d.mts +2 -0
- package/dist/esm/api/resources/payments/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/payments/client/Client.mjs +13 -6
- package/dist/esm/api/resources/payments/client/requests/CancelPaymentsRequest.d.mts +4 -1
- package/dist/esm/api/resources/payments/client/requests/GetPaymentsRequest.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/requests/ListPaymentsRequest.d.mts +1 -1
- package/dist/esm/api/resources/transactions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/transactions/client/requests/GetTransactionsRequest.d.mts +1 -1
- package/dist/esm/api/resources/transfers/client/Client.mjs +4 -4
- package/dist/esm/api/resources/transfers/client/requests/GetTransfersRequest.d.mts +1 -1
- package/dist/esm/api/resources/transfers/client/requests/InitiateInternalTransfersRequest.d.mts +1 -1
- package/dist/esm/api/resources/transfers/client/requests/ListTransfersRequest.d.mts +1 -1
- package/dist/esm/api/resources/transfers/client/requests/NewDepositParams.d.mts +1 -1
- package/dist/esm/api/resources/transfers/client/requests/NewWithdrawalParams.d.mts +1 -1
- package/dist/esm/api/resources/wallets/client/Client.mjs +4 -4
- package/dist/esm/api/resources/wallets/client/requests/CreateWalletsRequest.d.mts +1 -1
- package/dist/esm/api/resources/wallets/client/requests/GetWalletsRequest.d.mts +1 -1
- package/dist/esm/api/resources/wallets/client/requests/ListWalletsRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/externalAccounts/client/requests/CreateFromProcessorTokenExternalAccountsRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/externalAccounts/client/requests/CreateFromProcessorTokenExternalAccountsRequest.mjs +1 -1
- package/dist/esm/serialization/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.mjs +5 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/NewFulfilledReqParams.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/NewFulfilledReqParams.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/payments/client/requests/CancelPaymentsRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/payments/client/requests/CancelPaymentsRequest.mjs +5 -0
- package/dist/esm/serialization/resources/payments/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/payments/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/transfers/client/requests/InitiateInternalTransfersRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/transfers/client/requests/InitiateInternalTransfersRequest.mjs +1 -1
- package/dist/esm/serialization/resources/transfers/client/requests/NewDepositParams.d.mts +1 -1
- package/dist/esm/serialization/resources/transfers/client/requests/NewDepositParams.mjs +1 -1
- package/dist/esm/serialization/resources/transfers/client/requests/NewWithdrawalParams.d.mts +1 -1
- package/dist/esm/serialization/resources/transfers/client/requests/NewWithdrawalParams.mjs +1 -1
- package/dist/esm/serialization/resources/wallets/client/requests/CreateWalletsRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/wallets/client/requests/CreateWalletsRequest.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +5 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Natural from "../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../index.js";
|
|
4
|
+
export declare const CancelPaymentsRequest: core.serialization.Schema<serializers.CancelPaymentsRequest.Raw, Omit<Natural.CancelPaymentsRequest, "paymentId" | "idempotencyKey">>;
|
|
5
|
+
export declare namespace CancelPaymentsRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
customerPartyId?: string | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.CancelPaymentsRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
exports.CancelPaymentsRequest = core.serialization.object({
|
|
40
|
+
customerPartyId: core.serialization.string().optional(),
|
|
41
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NewPaymentParams = void 0;
|
|
3
|
+
exports.NewPaymentParams = exports.CancelPaymentsRequest = void 0;
|
|
4
|
+
var CancelPaymentsRequest_js_1 = require("./CancelPaymentsRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "CancelPaymentsRequest", { enumerable: true, get: function () { return CancelPaymentsRequest_js_1.CancelPaymentsRequest; } });
|
|
4
6
|
var NewPaymentParams_js_1 = require("./NewPaymentParams.js");
|
|
5
7
|
Object.defineProperty(exports, "NewPaymentParams", { enumerable: true, get: function () { return NewPaymentParams_js_1.NewPaymentParams; } });
|
|
@@ -4,7 +4,7 @@ import type * as serializers from "../../../../index.js";
|
|
|
4
4
|
export declare const InitiateInternalTransfersRequest: core.serialization.Schema<serializers.InitiateInternalTransfersRequest.Raw, Omit<Natural.InitiateInternalTransfersRequest, "idempotencyKey">>;
|
|
5
5
|
export declare namespace InitiateInternalTransfersRequest {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
7
|
+
customerPartyId?: string | null;
|
|
8
8
|
amount: number;
|
|
9
9
|
sourceWalletId: string;
|
|
10
10
|
destWalletId: string;
|
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.InitiateInternalTransfersRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
39
|
exports.InitiateInternalTransfersRequest = core.serialization.object({
|
|
40
|
-
|
|
40
|
+
customerPartyId: core.serialization.string().optional(),
|
|
41
41
|
amount: core.serialization.number(),
|
|
42
42
|
sourceWalletId: core.serialization.string(),
|
|
43
43
|
destWalletId: core.serialization.string(),
|
|
@@ -5,7 +5,7 @@ import { InitiateDepositTransfersRequestCurrency } from "../../types/InitiateDep
|
|
|
5
5
|
export declare const NewDepositParams: core.serialization.Schema<serializers.NewDepositParams.Raw, Omit<Natural.NewDepositParams, "idempotencyKey">>;
|
|
6
6
|
export declare namespace NewDepositParams {
|
|
7
7
|
interface Raw {
|
|
8
|
-
|
|
8
|
+
customerPartyId?: string | null;
|
|
9
9
|
amount: number;
|
|
10
10
|
currency?: InitiateDepositTransfersRequestCurrency.Raw | null;
|
|
11
11
|
externalAccountId: string;
|
|
@@ -38,7 +38,7 @@ exports.NewDepositParams = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
39
|
const InitiateDepositTransfersRequestCurrency_js_1 = require("../../types/InitiateDepositTransfersRequestCurrency.js");
|
|
40
40
|
exports.NewDepositParams = core.serialization.object({
|
|
41
|
-
|
|
41
|
+
customerPartyId: core.serialization.string().optional(),
|
|
42
42
|
amount: core.serialization.number(),
|
|
43
43
|
currency: InitiateDepositTransfersRequestCurrency_js_1.InitiateDepositTransfersRequestCurrency.optional(),
|
|
44
44
|
externalAccountId: core.serialization.string(),
|
|
@@ -6,7 +6,7 @@ import { InitiateWithdrawalTransfersRequestMethod } from "../../types/InitiateWi
|
|
|
6
6
|
export declare const NewWithdrawalParams: core.serialization.Schema<serializers.NewWithdrawalParams.Raw, Omit<Natural.NewWithdrawalParams, "idempotencyKey">>;
|
|
7
7
|
export declare namespace NewWithdrawalParams {
|
|
8
8
|
interface Raw {
|
|
9
|
-
|
|
9
|
+
customerPartyId?: string | null;
|
|
10
10
|
amount: number;
|
|
11
11
|
currency?: InitiateWithdrawalTransfersRequestCurrency.Raw | null;
|
|
12
12
|
externalAccountId: string;
|
|
@@ -39,7 +39,7 @@ const core = __importStar(require("../../../../../core/index.js"));
|
|
|
39
39
|
const InitiateWithdrawalTransfersRequestCurrency_js_1 = require("../../types/InitiateWithdrawalTransfersRequestCurrency.js");
|
|
40
40
|
const InitiateWithdrawalTransfersRequestMethod_js_1 = require("../../types/InitiateWithdrawalTransfersRequestMethod.js");
|
|
41
41
|
exports.NewWithdrawalParams = core.serialization.object({
|
|
42
|
-
|
|
42
|
+
customerPartyId: core.serialization.string().optional(),
|
|
43
43
|
amount: core.serialization.number(),
|
|
44
44
|
currency: InitiateWithdrawalTransfersRequestCurrency_js_1.InitiateWithdrawalTransfersRequestCurrency.optional(),
|
|
45
45
|
externalAccountId: core.serialization.string(),
|
|
@@ -4,7 +4,7 @@ import type * as serializers from "../../../../index.js";
|
|
|
4
4
|
export declare const CreateWalletsRequest: core.serialization.Schema<serializers.CreateWalletsRequest.Raw, Omit<Natural.CreateWalletsRequest, "idempotencyKey">>;
|
|
5
5
|
export declare namespace CreateWalletsRequest {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
7
|
+
customerPartyId?: string | null;
|
|
8
8
|
displayName: string;
|
|
9
9
|
description?: (string | null | undefined) | null;
|
|
10
10
|
tags?: Record<string, string> | null;
|
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CreateWalletsRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
39
|
exports.CreateWalletsRequest = core.serialization.object({
|
|
40
|
-
|
|
40
|
+
customerPartyId: core.serialization.string().optional(),
|
|
41
41
|
displayName: core.serialization.string(),
|
|
42
42
|
description: core.serialization.string().optionalNullable(),
|
|
43
43
|
tags: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.19";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.6.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
9
|
+
"X-Fern-SDK-Version": "1.6.19",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.19",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
|
@@ -53,9 +53,9 @@ export class EventsClient {
|
|
|
53
53
|
__list() {
|
|
54
54
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
55
55
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
56
|
-
const {
|
|
56
|
+
const { customerPartyId, eventType, createdAfter, createdBefore, cursor, limit } = request;
|
|
57
57
|
const _queryParams = {
|
|
58
|
-
|
|
58
|
+
customerPartyId,
|
|
59
59
|
eventType: eventType != null
|
|
60
60
|
? serializers.ListEventsRequestEventType.jsonOrThrow(eventType, {
|
|
61
61
|
unrecognizedObjectKeys: "strip",
|
|
@@ -165,9 +165,9 @@ export class EventsClient {
|
|
|
165
165
|
__get(request, requestOptions) {
|
|
166
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
167
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
168
|
-
const { eventId,
|
|
168
|
+
const { eventId, customerPartyId } = request;
|
|
169
169
|
const _queryParams = {
|
|
170
|
-
|
|
170
|
+
customerPartyId,
|
|
171
171
|
};
|
|
172
172
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
173
173
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Filter by event type. Required when
|
|
1
|
+
/** Filter by event type. Required when customerPartyId names another party. */
|
|
2
2
|
export declare const ListEventsRequestEventType: {
|
|
3
3
|
readonly PartyUpdated: "party.updated";
|
|
4
4
|
readonly ComplianceCaseUpdated: "compliance_case.updated";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/** Filter by event type. Required when
|
|
2
|
+
/** Filter by event type. Required when customerPartyId names another party. */
|
|
3
3
|
export const ListEventsRequestEventType = {
|
|
4
4
|
PartyUpdated: "party.updated",
|
|
5
5
|
ComplianceCaseUpdated: "compliance_case.updated",
|
|
@@ -39,7 +39,7 @@ export declare class ExternalAccountsClient {
|
|
|
39
39
|
* @example
|
|
40
40
|
* await client.externalAccounts.createFromProcessorToken({
|
|
41
41
|
* idempotencyKey: "Idempotency-Key",
|
|
42
|
-
*
|
|
42
|
+
* customerPartyId: "pty_550e8400e29b41d4a716446655440000",
|
|
43
43
|
* processorToken: "processor-sandbox-abc123",
|
|
44
44
|
* institutionName: "Plaid Sandbox",
|
|
45
45
|
* tags: {
|
|
@@ -61,7 +61,7 @@ export class ExternalAccountsClient {
|
|
|
61
61
|
* @example
|
|
62
62
|
* await client.externalAccounts.createFromProcessorToken({
|
|
63
63
|
* idempotencyKey: "Idempotency-Key",
|
|
64
|
-
*
|
|
64
|
+
* customerPartyId: "pty_550e8400e29b41d4a716446655440000",
|
|
65
65
|
* processorToken: "processor-sandbox-abc123",
|
|
66
66
|
* institutionName: "Plaid Sandbox",
|
|
67
67
|
* tags: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* idempotencyKey: "Idempotency-Key",
|
|
5
|
-
*
|
|
5
|
+
* customerPartyId: "pty_550e8400e29b41d4a716446655440000",
|
|
6
6
|
* processorToken: "processor-sandbox-abc123",
|
|
7
7
|
* institutionName: "Plaid Sandbox",
|
|
8
8
|
* tags: {
|
|
@@ -14,7 +14,7 @@ export interface CreateFromProcessorTokenExternalAccountsRequest {
|
|
|
14
14
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
15
15
|
idempotencyKey: string;
|
|
16
16
|
/** Party that will own the account. */
|
|
17
|
-
|
|
17
|
+
customerPartyId: string;
|
|
18
18
|
/** Plaid processor token created for Natural and scoped to one account. */
|
|
19
19
|
processorToken: string;
|
|
20
20
|
/** Institution display name to store with the linked external account. */
|
|
@@ -219,7 +219,8 @@ export declare class PaymentRequestsClient {
|
|
|
219
219
|
* @example
|
|
220
220
|
* await client.paymentRequests.cancel({
|
|
221
221
|
* idempotencyKey: "Idempotency-Key",
|
|
222
|
-
* paymentRequestId: "paymentRequestId"
|
|
222
|
+
* paymentRequestId: "paymentRequestId",
|
|
223
|
+
* customerPartyId: "pty_019cd1798d627ad9bc302511c4f2c115"
|
|
223
224
|
* })
|
|
224
225
|
*/
|
|
225
226
|
cancel(request: Natural.CancelPaymentRequestsRequest, requestOptions?: PaymentRequestsClient.RequestOptions): core.HttpResponsePromise<Natural.CancelPaymentRequestsResponse>;
|
|
@@ -64,11 +64,11 @@ export class PaymentRequestsClient {
|
|
|
64
64
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
65
65
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
67
|
-
const { limit, cursor,
|
|
67
|
+
const { limit, cursor, customerPartyId, includeCompleted, includeCanceled, initiatedByAgent, addressedToAgent, } = request;
|
|
68
68
|
const _queryParams = {
|
|
69
69
|
limit,
|
|
70
70
|
cursor,
|
|
71
|
-
|
|
71
|
+
customerPartyId,
|
|
72
72
|
includeCompleted: Array.isArray(includeCompleted)
|
|
73
73
|
? includeCompleted.map((item) => (() => {
|
|
74
74
|
const mapped = serializers.ListPaymentRequestsRequestIncludeCompleted.jsonOrThrow(item, { unrecognizedObjectKeys: "strip", omitUndefined: true });
|
|
@@ -318,11 +318,11 @@ export class PaymentRequestsClient {
|
|
|
318
318
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
319
319
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
320
320
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
321
|
-
const { limit, cursor,
|
|
321
|
+
const { limit, cursor, customerPartyId, addressedToAgent } = request;
|
|
322
322
|
const _queryParams = {
|
|
323
323
|
limit,
|
|
324
324
|
cursor,
|
|
325
|
-
|
|
325
|
+
customerPartyId,
|
|
326
326
|
addressedToAgent,
|
|
327
327
|
};
|
|
328
328
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
@@ -438,9 +438,9 @@ export class PaymentRequestsClient {
|
|
|
438
438
|
__get(request, requestOptions) {
|
|
439
439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
440
440
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
441
|
-
const { paymentRequestId,
|
|
441
|
+
const { paymentRequestId, customerPartyId } = request;
|
|
442
442
|
const _queryParams = {
|
|
443
|
-
|
|
443
|
+
customerPartyId,
|
|
444
444
|
};
|
|
445
445
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
446
446
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -743,7 +743,8 @@ export class PaymentRequestsClient {
|
|
|
743
743
|
* @example
|
|
744
744
|
* await client.paymentRequests.cancel({
|
|
745
745
|
* idempotencyKey: "Idempotency-Key",
|
|
746
|
-
* paymentRequestId: "paymentRequestId"
|
|
746
|
+
* paymentRequestId: "paymentRequestId",
|
|
747
|
+
* customerPartyId: "pty_019cd1798d627ad9bc302511c4f2c115"
|
|
747
748
|
* })
|
|
748
749
|
*/
|
|
749
750
|
cancel(request, requestOptions) {
|
|
@@ -752,7 +753,7 @@ export class PaymentRequestsClient {
|
|
|
752
753
|
__cancel(request, requestOptions) {
|
|
753
754
|
return __awaiter(this, void 0, void 0, function* () {
|
|
754
755
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
755
|
-
const { paymentRequestId, idempotencyKey } = request;
|
|
756
|
+
const { paymentRequestId, idempotencyKey } = request, _body = __rest(request, ["paymentRequestId", "idempotencyKey"]);
|
|
756
757
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
757
758
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
758
759
|
"Idempotency-Key": idempotencyKey,
|
|
@@ -762,7 +763,13 @@ export class PaymentRequestsClient {
|
|
|
762
763
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `payment-requests/${core.url.encodePathParam(paymentRequestId)}/cancel`),
|
|
763
764
|
method: "POST",
|
|
764
765
|
headers: _headers,
|
|
766
|
+
contentType: "application/json",
|
|
765
767
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
768
|
+
requestType: "json",
|
|
769
|
+
body: mergeAdditionalBodyParameters(serializers.CancelPaymentRequestsRequest.jsonOrThrow(_body, {
|
|
770
|
+
unrecognizedObjectKeys: "strip",
|
|
771
|
+
omitUndefined: true,
|
|
772
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
766
773
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
767
774
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
768
775
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/esm/api/resources/paymentRequests/client/requests/CancelPaymentRequestsRequest.d.mts
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* idempotencyKey: "Idempotency-Key",
|
|
5
|
-
* paymentRequestId: "paymentRequestId"
|
|
5
|
+
* paymentRequestId: "paymentRequestId",
|
|
6
|
+
* customerPartyId: "pty_019cd1798d627ad9bc302511c4f2c115"
|
|
6
7
|
* }
|
|
7
8
|
*/
|
|
8
9
|
export interface CancelPaymentRequestsRequest {
|
|
9
10
|
paymentRequestId: string;
|
|
10
11
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
11
12
|
idempotencyKey: string;
|
|
13
|
+
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
14
|
+
customerPartyId?: string;
|
|
12
15
|
}
|
package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
6
6
|
export interface ListPaymentRequestsRequest {
|
|
7
7
|
limit?: number;
|
|
8
8
|
cursor?: string;
|
|
9
|
-
|
|
9
|
+
customerPartyId?: string;
|
|
10
10
|
includeCompleted?: Natural.ListPaymentRequestsRequestIncludeCompleted;
|
|
11
11
|
includeCanceled?: Natural.ListPaymentRequestsRequestIncludeCanceled;
|
|
12
12
|
initiatedByAgent?: string;
|
|
@@ -17,6 +17,8 @@ export interface NewFulfilledReqParams {
|
|
|
17
17
|
paymentRequestId: string;
|
|
18
18
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
19
19
|
idempotencyKey: string;
|
|
20
|
+
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
21
|
+
customerPartyId?: string;
|
|
20
22
|
/** Source of funds for the payment. */
|
|
21
23
|
paymentSource: Natural.FulfillPaymentRequestsRequestPaymentSource;
|
|
22
24
|
/** Key-value metadata stored on the resource. At most 30 keys; keys 1-128 characters, alphanumeric and underscores; values 1-256 characters. Visible to anyone who can read the resource; do not include sensitive data. */
|
|
@@ -128,7 +128,8 @@ export declare class PaymentsClient {
|
|
|
128
128
|
* @example
|
|
129
129
|
* await client.payments.cancel({
|
|
130
130
|
* idempotencyKey: "Idempotency-Key",
|
|
131
|
-
* paymentId: "paymentId"
|
|
131
|
+
* paymentId: "paymentId",
|
|
132
|
+
* customerPartyId: "pty_019cd1798d627ad9bc302511c4f2c115"
|
|
132
133
|
* })
|
|
133
134
|
*/
|
|
134
135
|
cancel(request: Natural.CancelPaymentsRequest, requestOptions?: PaymentsClient.RequestOptions): core.HttpResponsePromise<Natural.CancelledPmt>;
|
|
@@ -63,9 +63,9 @@ export class PaymentsClient {
|
|
|
63
63
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
64
64
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
66
|
-
const {
|
|
66
|
+
const { customerPartyId, limit, cursor } = request;
|
|
67
67
|
const _queryParams = {
|
|
68
|
-
|
|
68
|
+
customerPartyId,
|
|
69
69
|
limit,
|
|
70
70
|
cursor,
|
|
71
71
|
};
|
|
@@ -296,9 +296,9 @@ export class PaymentsClient {
|
|
|
296
296
|
__get(request, requestOptions) {
|
|
297
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
298
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
299
|
-
const { paymentId,
|
|
299
|
+
const { paymentId, customerPartyId } = request;
|
|
300
300
|
const _queryParams = {
|
|
301
|
-
|
|
301
|
+
customerPartyId,
|
|
302
302
|
};
|
|
303
303
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
304
304
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -390,7 +390,8 @@ export class PaymentsClient {
|
|
|
390
390
|
* @example
|
|
391
391
|
* await client.payments.cancel({
|
|
392
392
|
* idempotencyKey: "Idempotency-Key",
|
|
393
|
-
* paymentId: "paymentId"
|
|
393
|
+
* paymentId: "paymentId",
|
|
394
|
+
* customerPartyId: "pty_019cd1798d627ad9bc302511c4f2c115"
|
|
394
395
|
* })
|
|
395
396
|
*/
|
|
396
397
|
cancel(request, requestOptions) {
|
|
@@ -399,7 +400,7 @@ export class PaymentsClient {
|
|
|
399
400
|
__cancel(request, requestOptions) {
|
|
400
401
|
return __awaiter(this, void 0, void 0, function* () {
|
|
401
402
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
402
|
-
const { paymentId, idempotencyKey } = request;
|
|
403
|
+
const { paymentId, idempotencyKey } = request, _body = __rest(request, ["paymentId", "idempotencyKey"]);
|
|
403
404
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
404
405
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
405
406
|
"Idempotency-Key": idempotencyKey,
|
|
@@ -409,7 +410,13 @@ export class PaymentsClient {
|
|
|
409
410
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `payments/${core.url.encodePathParam(paymentId)}/cancel`),
|
|
410
411
|
method: "POST",
|
|
411
412
|
headers: _headers,
|
|
413
|
+
contentType: "application/json",
|
|
412
414
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
415
|
+
requestType: "json",
|
|
416
|
+
body: mergeAdditionalBodyParameters(serializers.CancelPaymentsRequest.jsonOrThrow(_body, {
|
|
417
|
+
unrecognizedObjectKeys: "strip",
|
|
418
|
+
omitUndefined: true,
|
|
419
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
413
420
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
414
421
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
415
422
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* idempotencyKey: "Idempotency-Key",
|
|
5
|
-
* paymentId: "paymentId"
|
|
5
|
+
* paymentId: "paymentId",
|
|
6
|
+
* customerPartyId: "pty_019cd1798d627ad9bc302511c4f2c115"
|
|
6
7
|
* }
|
|
7
8
|
*/
|
|
8
9
|
export interface CancelPaymentsRequest {
|
|
9
10
|
paymentId: string;
|
|
10
11
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
11
12
|
idempotencyKey: string;
|
|
13
|
+
/** Defaults to your party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
14
|
+
customerPartyId?: string;
|
|
12
15
|
}
|
|
@@ -179,9 +179,9 @@ export class TransactionsClient {
|
|
|
179
179
|
__get(request, requestOptions) {
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
181
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
182
|
-
const { transactionId,
|
|
182
|
+
const { transactionId, customerPartyId } = request;
|
|
183
183
|
const _queryParams = {
|
|
184
|
-
|
|
184
|
+
customerPartyId,
|
|
185
185
|
};
|
|
186
186
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
187
187
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -397,9 +397,9 @@ export class TransfersClient {
|
|
|
397
397
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
398
398
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
399
399
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
400
|
-
const {
|
|
400
|
+
const { customerPartyId, limit, cursor } = request;
|
|
401
401
|
const _queryParams = {
|
|
402
|
-
|
|
402
|
+
customerPartyId,
|
|
403
403
|
limit,
|
|
404
404
|
cursor,
|
|
405
405
|
};
|
|
@@ -516,9 +516,9 @@ export class TransfersClient {
|
|
|
516
516
|
__get(request, requestOptions) {
|
|
517
517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
518
518
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
519
|
-
const { transferId,
|
|
519
|
+
const { transferId, customerPartyId } = request;
|
|
520
520
|
const _queryParams = {
|
|
521
|
-
|
|
521
|
+
customerPartyId,
|
|
522
522
|
};
|
|
523
523
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
524
524
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
package/dist/esm/api/resources/transfers/client/requests/InitiateInternalTransfersRequest.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ export interface InitiateInternalTransfersRequest {
|
|
|
15
15
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
16
16
|
idempotencyKey: string;
|
|
17
17
|
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
18
|
-
|
|
18
|
+
customerPartyId?: string;
|
|
19
19
|
/** Amount in cents. */
|
|
20
20
|
amount: number;
|
|
21
21
|
/** Source wallet ID (wal_*). */
|
|
@@ -16,7 +16,7 @@ export interface NewDepositParams {
|
|
|
16
16
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
17
17
|
idempotencyKey: string;
|
|
18
18
|
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
19
|
-
|
|
19
|
+
customerPartyId?: string;
|
|
20
20
|
/** Amount in cents. */
|
|
21
21
|
amount: number;
|
|
22
22
|
/** Currency code. */
|
|
@@ -17,7 +17,7 @@ export interface NewWithdrawalParams {
|
|
|
17
17
|
/** Unique key for safely retrying a request without creating duplicates. */
|
|
18
18
|
idempotencyKey: string;
|
|
19
19
|
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
20
|
-
|
|
20
|
+
customerPartyId?: string;
|
|
21
21
|
/** Amount in cents. */
|
|
22
22
|
amount: number;
|
|
23
23
|
/** Currency code. */
|