@naturalpay/sdk 1.6.21 → 1.6.22
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/externalAccounts/client/Client.js +11 -3
- package/dist/cjs/api/resources/externalAccounts/client/requests/GetExternalAccountsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/externalAccounts/client/requests/ListExternalAccountsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/client/Client.js +7 -1
- package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/IncomingReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.ts +7 -0
- package/dist/cjs/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.js +10 -0
- package/dist/cjs/api/resources/paymentRequests/types/NewPayReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/PayReqAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.js +1 -0
- package/dist/cjs/api/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.ts +7 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.js +39 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.js +1 -0
- 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/externalAccounts/client/Client.mjs +11 -3
- package/dist/esm/api/resources/externalAccounts/client/requests/GetExternalAccountsRequest.d.mts +1 -0
- package/dist/esm/api/resources/externalAccounts/client/requests/ListExternalAccountsRequest.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/client/Client.mjs +7 -1
- package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/IncomingReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.mts +7 -0
- package/dist/esm/api/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.mjs +7 -0
- package/dist/esm/api/resources/paymentRequests/types/NewPayReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/PayReqAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/index.d.mts +1 -0
- package/dist/esm/api/resources/paymentRequests/types/index.mjs +1 -0
- package/dist/esm/api/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.mts +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.mjs +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/DeclinePaymentRequestSimulationsResponseDataAttributes.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.6.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
46
|
+
"X-Fern-SDK-Version": "1.6.22",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.22",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
|
@@ -211,10 +211,11 @@ class ExternalAccountsClient {
|
|
|
211
211
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
212
212
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
213
213
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
214
|
-
const { cursor, limit } = request;
|
|
214
|
+
const { cursor, limit, customerPartyId } = request;
|
|
215
215
|
const _queryParams = {
|
|
216
216
|
cursor,
|
|
217
217
|
limit,
|
|
218
|
+
customerPartyId,
|
|
218
219
|
};
|
|
219
220
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
220
221
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
@@ -329,14 +330,21 @@ class ExternalAccountsClient {
|
|
|
329
330
|
__get(request, requestOptions) {
|
|
330
331
|
return __awaiter(this, void 0, void 0, function* () {
|
|
331
332
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
332
|
-
const { externalAccountId } = request;
|
|
333
|
+
const { externalAccountId, customerPartyId } = request;
|
|
334
|
+
const _queryParams = {
|
|
335
|
+
customerPartyId,
|
|
336
|
+
};
|
|
333
337
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
334
338
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.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);
|
|
335
339
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
336
340
|
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, `external-accounts/${core.url.encodePathParam(externalAccountId)}`),
|
|
337
341
|
method: "GET",
|
|
338
342
|
headers: _headers,
|
|
339
|
-
queryString: core.url
|
|
343
|
+
queryString: core.url
|
|
344
|
+
.queryBuilder()
|
|
345
|
+
.addMany(_queryParams)
|
|
346
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
347
|
+
.build(),
|
|
340
348
|
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,
|
|
341
349
|
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,
|
|
342
350
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -100,7 +100,7 @@ class PaymentRequestsClient {
|
|
|
100
100
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
101
101
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
103
|
-
const { limit, cursor, customerPartyId, includeCompleted, includeCanceled, initiatedByAgent, addressedToAgent, } = request;
|
|
103
|
+
const { limit, cursor, customerPartyId, includeCompleted, includeCanceled, group, initiatedByAgent, addressedToAgent, } = request;
|
|
104
104
|
const _queryParams = {
|
|
105
105
|
limit,
|
|
106
106
|
cursor,
|
|
@@ -127,6 +127,12 @@ class PaymentRequestsClient {
|
|
|
127
127
|
return typeof mapped === "string" ? mapped : (0, json_js_1.toJson)(mapped);
|
|
128
128
|
})()
|
|
129
129
|
: undefined,
|
|
130
|
+
group: group != null
|
|
131
|
+
? serializers.ListPaymentRequestsRequestGroup.jsonOrThrow(group, {
|
|
132
|
+
unrecognizedObjectKeys: "strip",
|
|
133
|
+
omitUndefined: true,
|
|
134
|
+
})
|
|
135
|
+
: undefined,
|
|
130
136
|
initiatedByAgent,
|
|
131
137
|
addressedToAgent,
|
|
132
138
|
};
|
package/dist/cjs/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface ListPaymentRequestsRequest {
|
|
|
9
9
|
customerPartyId?: string;
|
|
10
10
|
includeCompleted?: Natural.ListPaymentRequestsRequestIncludeCompleted;
|
|
11
11
|
includeCanceled?: Natural.ListPaymentRequestsRequestIncludeCanceled;
|
|
12
|
+
group?: Natural.ListPaymentRequestsRequestGroup;
|
|
12
13
|
initiatedByAgent?: string;
|
|
13
14
|
addressedToAgent?: string;
|
|
14
15
|
}
|
|
@@ -50,6 +50,8 @@ export interface CancelPaymentRequestsResponseDataAttributes {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface DeclinedReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface IncomingReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Limit the list to one outgoing group. Open is still waiting on the payer. Completed is in flight or settled and not returned. Closed is failed, declined, canceled, expired, and returned. When set, this replaces includeCompleted and includeCanceled. */
|
|
2
|
+
export declare const ListPaymentRequestsRequestGroup: {
|
|
3
|
+
readonly Open: "open";
|
|
4
|
+
readonly Completed: "completed";
|
|
5
|
+
readonly Closed: "closed";
|
|
6
|
+
};
|
|
7
|
+
export type ListPaymentRequestsRequestGroup = (typeof ListPaymentRequestsRequestGroup)[keyof typeof ListPaymentRequestsRequestGroup];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ListPaymentRequestsRequestGroup = void 0;
|
|
5
|
+
/** Limit the list to one outgoing group. Open is still waiting on the payer. Completed is in flight or settled and not returned. Closed is failed, declined, canceled, expired, and returned. When set, this replaces includeCompleted and includeCanceled. */
|
|
6
|
+
exports.ListPaymentRequestsRequestGroup = {
|
|
7
|
+
Open: "open",
|
|
8
|
+
Completed: "completed",
|
|
9
|
+
Closed: "closed",
|
|
10
|
+
};
|
|
@@ -50,6 +50,8 @@ export interface NewPayReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface PayReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface PayReqDetailAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.js";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.js";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.js";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.js";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.js";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.js";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.js";
|
|
@@ -165,6 +165,7 @@ __exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationships
|
|
|
165
165
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.js"), exports);
|
|
166
166
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.js"), exports);
|
|
167
167
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.js"), exports);
|
|
168
|
+
__exportStar(require("./ListPaymentRequestsRequestGroup.js"), exports);
|
|
168
169
|
__exportStar(require("./ListPaymentRequestsResponseDataItem.js"), exports);
|
|
169
170
|
__exportStar(require("./ListPaymentRequestsResponseDataItemAttributesFee.js"), exports);
|
|
170
171
|
__exportStar(require("./ListPaymentRequestsResponseDataItemAttributesFeeApplied.js"), exports);
|
|
@@ -50,6 +50,8 @@ export interface DeclinePaymentRequestSimulationsResponseDataAttributes {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -34,6 +34,7 @@ export declare namespace CancelPaymentRequestsResponseDataAttributes {
|
|
|
34
34
|
initiatorAgent?: CancelPaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.CancelPaymentRequestsResponseDataAttributes = core.serialization.object(
|
|
|
67
67
|
initiatorAgent: CancelPaymentRequestsResponseDataAttributesInitiatorAgent_js_1.CancelPaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace DeclinedReqAttrs {
|
|
|
34
34
|
initiatorAgent?: DeclinePaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.DeclinedReqAttrs = core.serialization.object({
|
|
|
67
67
|
initiatorAgent: DeclinePaymentRequestsResponseDataAttributesInitiatorAgent_js_1.DeclinePaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace IncomingReqAttrs {
|
|
|
34
34
|
initiatorAgent?: ListIncomingPaymentRequestsResponseDataItemAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.IncomingReqAttrs = core.serialization.object({
|
|
|
67
67
|
initiatorAgent: ListIncomingPaymentRequestsResponseDataItemAttributesInitiatorAgent_js_1.ListIncomingPaymentRequestsResponseDataItemAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
package/dist/cjs/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
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 ListPaymentRequestsRequestGroup: core.serialization.Schema<serializers.ListPaymentRequestsRequestGroup.Raw, Natural.ListPaymentRequestsRequestGroup>;
|
|
5
|
+
export declare namespace ListPaymentRequestsRequestGroup {
|
|
6
|
+
type Raw = "open" | "completed" | "closed";
|
|
7
|
+
}
|
package/dist/cjs/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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.ListPaymentRequestsRequestGroup = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.ListPaymentRequestsRequestGroup = core.serialization.enum_(["open", "completed", "closed"]);
|
|
@@ -34,6 +34,7 @@ export declare namespace NewPayReqAttrs {
|
|
|
34
34
|
initiatorAgent?: CreatePaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.NewPayReqAttrs = core.serialization.object({
|
|
|
67
67
|
initiatorAgent: CreatePaymentRequestsResponseDataAttributesInitiatorAgent_js_1.CreatePaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace PayReqAttrs {
|
|
|
34
34
|
initiatorAgent?: ListPaymentRequestsResponseDataItemAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.PayReqAttrs = core.serialization.object({
|
|
|
67
67
|
initiatorAgent: ListPaymentRequestsResponseDataItemAttributesInitiatorAgent_js_1.ListPaymentRequestsResponseDataItemAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace PayReqDetailAttrs {
|
|
|
34
34
|
initiatorAgent?: GetPaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.PayReqDetailAttrs = core.serialization.object({
|
|
|
67
67
|
initiatorAgent: GetPaymentRequestsResponseDataAttributesInitiatorAgent_js_1.GetPaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.js";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.js";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.js";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.js";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.js";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.js";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.js";
|
|
@@ -165,6 +165,7 @@ __exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationships
|
|
|
165
165
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.js"), exports);
|
|
166
166
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.js"), exports);
|
|
167
167
|
__exportStar(require("./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.js"), exports);
|
|
168
|
+
__exportStar(require("./ListPaymentRequestsRequestGroup.js"), exports);
|
|
168
169
|
__exportStar(require("./ListPaymentRequestsResponseDataItem.js"), exports);
|
|
169
170
|
__exportStar(require("./ListPaymentRequestsResponseDataItemAttributesFee.js"), exports);
|
|
170
171
|
__exportStar(require("./ListPaymentRequestsResponseDataItemAttributesFeeApplied.js"), exports);
|
|
@@ -34,6 +34,7 @@ export declare namespace DeclinePaymentRequestSimulationsResponseDataAttributes
|
|
|
34
34
|
initiatorAgent?: DeclinePaymentRequestSimulationsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -67,6 +67,7 @@ exports.DeclinePaymentRequestSimulationsResponseDataAttributes = core.serializat
|
|
|
67
67
|
initiatorAgent: DeclinePaymentRequestSimulationsResponseDataAttributesInitiatorAgent_js_1.DeclinePaymentRequestSimulationsResponseDataAttributesInitiatorAgent.nullable(),
|
|
68
68
|
paymentLinkUrl: core.serialization.string(),
|
|
69
69
|
transactionId: core.serialization.string().nullable(),
|
|
70
|
+
expiresAt: core.serialization.string().nullable(),
|
|
70
71
|
createdAt: core.serialization.string(),
|
|
71
72
|
updatedAt: core.serialization.string(),
|
|
72
73
|
});
|
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.22";
|
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.22",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.22",
|
|
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,
|
|
@@ -175,10 +175,11 @@ export class ExternalAccountsClient {
|
|
|
175
175
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
176
176
|
const list = core.HttpResponsePromise.interceptFunction((request) => __awaiter(this, void 0, void 0, function* () {
|
|
177
177
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
178
|
-
const { cursor, limit } = request;
|
|
178
|
+
const { cursor, limit, customerPartyId } = request;
|
|
179
179
|
const _queryParams = {
|
|
180
180
|
cursor,
|
|
181
181
|
limit,
|
|
182
|
+
customerPartyId,
|
|
182
183
|
};
|
|
183
184
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
184
185
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
|
|
@@ -293,14 +294,21 @@ export class ExternalAccountsClient {
|
|
|
293
294
|
__get(request, requestOptions) {
|
|
294
295
|
return __awaiter(this, void 0, void 0, function* () {
|
|
295
296
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
296
|
-
const { externalAccountId } = request;
|
|
297
|
+
const { externalAccountId, customerPartyId } = request;
|
|
298
|
+
const _queryParams = {
|
|
299
|
+
customerPartyId,
|
|
300
|
+
};
|
|
297
301
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
298
302
|
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);
|
|
299
303
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
300
304
|
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, `external-accounts/${core.url.encodePathParam(externalAccountId)}`),
|
|
301
305
|
method: "GET",
|
|
302
306
|
headers: _headers,
|
|
303
|
-
queryString: core.url
|
|
307
|
+
queryString: core.url
|
|
308
|
+
.queryBuilder()
|
|
309
|
+
.addMany(_queryParams)
|
|
310
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
311
|
+
.build(),
|
|
304
312
|
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,
|
|
305
313
|
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,
|
|
306
314
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -64,7 +64,7 @@ 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, customerPartyId, includeCompleted, includeCanceled, initiatedByAgent, addressedToAgent, } = request;
|
|
67
|
+
const { limit, cursor, customerPartyId, includeCompleted, includeCanceled, group, initiatedByAgent, addressedToAgent, } = request;
|
|
68
68
|
const _queryParams = {
|
|
69
69
|
limit,
|
|
70
70
|
cursor,
|
|
@@ -91,6 +91,12 @@ export class PaymentRequestsClient {
|
|
|
91
91
|
return typeof mapped === "string" ? mapped : toJson(mapped);
|
|
92
92
|
})()
|
|
93
93
|
: undefined,
|
|
94
|
+
group: group != null
|
|
95
|
+
? serializers.ListPaymentRequestsRequestGroup.jsonOrThrow(group, {
|
|
96
|
+
unrecognizedObjectKeys: "strip",
|
|
97
|
+
omitUndefined: true,
|
|
98
|
+
})
|
|
99
|
+
: undefined,
|
|
94
100
|
initiatedByAgent,
|
|
95
101
|
addressedToAgent,
|
|
96
102
|
};
|
package/dist/esm/api/resources/paymentRequests/client/requests/ListPaymentRequestsRequest.d.mts
CHANGED
|
@@ -9,6 +9,7 @@ export interface ListPaymentRequestsRequest {
|
|
|
9
9
|
customerPartyId?: string;
|
|
10
10
|
includeCompleted?: Natural.ListPaymentRequestsRequestIncludeCompleted;
|
|
11
11
|
includeCanceled?: Natural.ListPaymentRequestsRequestIncludeCanceled;
|
|
12
|
+
group?: Natural.ListPaymentRequestsRequestGroup;
|
|
12
13
|
initiatedByAgent?: string;
|
|
13
14
|
addressedToAgent?: string;
|
|
14
15
|
}
|
|
@@ -50,6 +50,8 @@ export interface CancelPaymentRequestsResponseDataAttributes {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface DeclinedReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface IncomingReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Limit the list to one outgoing group. Open is still waiting on the payer. Completed is in flight or settled and not returned. Closed is failed, declined, canceled, expired, and returned. When set, this replaces includeCompleted and includeCanceled. */
|
|
2
|
+
export declare const ListPaymentRequestsRequestGroup: {
|
|
3
|
+
readonly Open: "open";
|
|
4
|
+
readonly Completed: "completed";
|
|
5
|
+
readonly Closed: "closed";
|
|
6
|
+
};
|
|
7
|
+
export type ListPaymentRequestsRequestGroup = (typeof ListPaymentRequestsRequestGroup)[keyof typeof ListPaymentRequestsRequestGroup];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Limit the list to one outgoing group. Open is still waiting on the payer. Completed is in flight or settled and not returned. Closed is failed, declined, canceled, expired, and returned. When set, this replaces includeCompleted and includeCanceled. */
|
|
3
|
+
export const ListPaymentRequestsRequestGroup = {
|
|
4
|
+
Open: "open",
|
|
5
|
+
Completed: "completed",
|
|
6
|
+
Closed: "closed",
|
|
7
|
+
};
|
|
@@ -50,6 +50,8 @@ export interface NewPayReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface PayReqAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -50,6 +50,8 @@ export interface PayReqDetailAttrs {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.mjs";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.mjs";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.mjs";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.mjs";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.mjs";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.mjs";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.mjs";
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.mjs";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.mjs";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.mjs";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.mjs";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.mjs";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.mjs";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.mjs";
|
|
@@ -50,6 +50,8 @@ export interface DeclinePaymentRequestSimulationsResponseDataAttributes {
|
|
|
50
50
|
paymentLinkUrl: string;
|
|
51
51
|
/** Transaction (txn_*) created by the most recent payment attempt, or null when none has been made. */
|
|
52
52
|
transactionId: string | null;
|
|
53
|
+
/** RFC 3339 timestamp when this payment request expires, or null when it does not expire. */
|
|
54
|
+
expiresAt: string | null;
|
|
53
55
|
/** RFC 3339 timestamp when the payment request was created. */
|
|
54
56
|
createdAt: string;
|
|
55
57
|
/** RFC 3339 timestamp when the payment request was last updated. */
|
|
@@ -34,6 +34,7 @@ export declare namespace CancelPaymentRequestsResponseDataAttributes {
|
|
|
34
34
|
initiatorAgent?: CancelPaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const CancelPaymentRequestsResponseDataAttributes = core.serialization.ob
|
|
|
31
31
|
initiatorAgent: CancelPaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace DeclinedReqAttrs {
|
|
|
34
34
|
initiatorAgent?: DeclinePaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const DeclinedReqAttrs = core.serialization.object({
|
|
|
31
31
|
initiatorAgent: DeclinePaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace IncomingReqAttrs {
|
|
|
34
34
|
initiatorAgent?: ListIncomingPaymentRequestsResponseDataItemAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const IncomingReqAttrs = core.serialization.object({
|
|
|
31
31
|
initiatorAgent: ListIncomingPaymentRequestsResponseDataItemAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
package/dist/esm/serialization/resources/paymentRequests/types/ListPaymentRequestsRequestGroup.d.mts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const ListPaymentRequestsRequestGroup: core.serialization.Schema<serializers.ListPaymentRequestsRequestGroup.Raw, Natural.ListPaymentRequestsRequestGroup>;
|
|
5
|
+
export declare namespace ListPaymentRequestsRequestGroup {
|
|
6
|
+
type Raw = "open" | "completed" | "closed";
|
|
7
|
+
}
|
|
@@ -34,6 +34,7 @@ export declare namespace NewPayReqAttrs {
|
|
|
34
34
|
initiatorAgent?: CreatePaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const NewPayReqAttrs = core.serialization.object({
|
|
|
31
31
|
initiatorAgent: CreatePaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace PayReqAttrs {
|
|
|
34
34
|
initiatorAgent?: ListPaymentRequestsResponseDataItemAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const PayReqAttrs = core.serialization.object({
|
|
|
31
31
|
initiatorAgent: ListPaymentRequestsResponseDataItemAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
|
@@ -34,6 +34,7 @@ export declare namespace PayReqDetailAttrs {
|
|
|
34
34
|
initiatorAgent?: GetPaymentRequestsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const PayReqDetailAttrs = core.serialization.object({
|
|
|
31
31
|
initiatorAgent: GetPaymentRequestsResponseDataAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.mjs";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.mjs";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.mjs";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.mjs";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.mjs";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.mjs";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.mjs";
|
|
@@ -149,6 +149,7 @@ export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPa
|
|
|
149
149
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPayerPartyDataType.mjs";
|
|
150
150
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentData.mjs";
|
|
151
151
|
export * from "./ListIncomingPaymentRequestsResponseDataItemRelationshipsPaymentDataType.mjs";
|
|
152
|
+
export * from "./ListPaymentRequestsRequestGroup.mjs";
|
|
152
153
|
export * from "./ListPaymentRequestsResponseDataItem.mjs";
|
|
153
154
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFee.mjs";
|
|
154
155
|
export * from "./ListPaymentRequestsResponseDataItemAttributesFeeApplied.mjs";
|
|
@@ -34,6 +34,7 @@ export declare namespace DeclinePaymentRequestSimulationsResponseDataAttributes
|
|
|
34
34
|
initiatorAgent?: DeclinePaymentRequestSimulationsResponseDataAttributesInitiatorAgent.Raw | null;
|
|
35
35
|
paymentLinkUrl: string;
|
|
36
36
|
transactionId?: string | null;
|
|
37
|
+
expiresAt?: string | null;
|
|
37
38
|
createdAt: string;
|
|
38
39
|
updatedAt: string;
|
|
39
40
|
}
|
|
@@ -31,6 +31,7 @@ export const DeclinePaymentRequestSimulationsResponseDataAttributes = core.seria
|
|
|
31
31
|
initiatorAgent: DeclinePaymentRequestSimulationsResponseDataAttributesInitiatorAgent.nullable(),
|
|
32
32
|
paymentLinkUrl: core.serialization.string(),
|
|
33
33
|
transactionId: core.serialization.string().nullable(),
|
|
34
|
+
expiresAt: core.serialization.string().nullable(),
|
|
34
35
|
createdAt: core.serialization.string(),
|
|
35
36
|
updatedAt: core.serialization.string(),
|
|
36
37
|
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.22";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.22";
|