@naturalpay/sdk 1.0.2 → 1.1.0
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/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.ts +4 -0
- package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.js +7 -0
- package/dist/cjs/api/resources/customers/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customers/types/index.js +1 -0
- package/dist/cjs/api/resources/paymentRequests/client/requests/NewPayReqParams.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.js +7 -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/payments/client/requests/NewPaymentParams.d.ts +2 -0
- package/dist/cjs/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.ts +4 -0
- package/dist/cjs/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.js +7 -0
- package/dist/cjs/api/resources/payments/types/NewPaymentAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/payments/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/payments/types/index.js +1 -0
- package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.js +2 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.js +39 -0
- package/dist/cjs/serialization/resources/customers/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/index.js +1 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewPayReqParams.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewPayReqParams.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.js +39 -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/payments/client/requests/NewPaymentParams.d.ts +2 -0
- package/dist/cjs/serialization/resources/payments/client/requests/NewPaymentParams.js +2 -0
- package/dist/cjs/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.ts +7 -0
- package/dist/cjs/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.js +39 -0
- package/dist/cjs/serialization/resources/payments/types/NewPaymentAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/payments/types/NewPaymentAttrs.js +1 -0
- package/dist/cjs/serialization/resources/payments/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/payments/types/index.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/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.mts +4 -0
- package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.mjs +4 -0
- package/dist/esm/api/resources/customers/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customers/types/index.mjs +1 -0
- package/dist/esm/api/resources/paymentRequests/client/requests/NewPayReqParams.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.mjs +4 -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/payments/client/requests/NewPaymentParams.d.mts +2 -0
- package/dist/esm/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.mts +4 -0
- package/dist/esm/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.mjs +4 -0
- package/dist/esm/api/resources/payments/types/NewPaymentAttrs.d.mts +2 -0
- package/dist/esm/api/resources/payments/types/index.d.mts +1 -0
- package/dist/esm/api/resources/payments/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.mjs +2 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.mjs +3 -0
- package/dist/esm/serialization/resources/customers/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/NewPayReqParams.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/client/requests/NewPayReqParams.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.mjs +3 -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/payments/client/requests/NewPaymentParams.d.mts +2 -0
- package/dist/esm/serialization/resources/payments/client/requests/NewPaymentParams.mjs +2 -0
- package/dist/esm/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.mts +7 -0
- package/dist/esm/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.mjs +3 -0
- package/dist/esm/serialization/resources/payments/types/NewPaymentAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/payments/types/NewPaymentAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/payments/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/payments/types/index.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.0
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.0
|
|
46
|
+
"X-Fern-SDK-Version": "1.1.0",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.1.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Agent-ID": options === null || options === void 0 ? void 0 : options.agentId,
|
package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts
CHANGED
|
@@ -28,4 +28,6 @@ export interface CreateInvitationsCustomersRequest {
|
|
|
28
28
|
expiresAt?: Date;
|
|
29
29
|
/** Tags applied to each invitation. */
|
|
30
30
|
tags?: Record<string, string>;
|
|
31
|
+
/** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
|
|
32
|
+
disableNotifications?: Natural.CreateInvitationsCustomersRequestDisableNotificationsItem[];
|
|
31
33
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreateInvitationsCustomersRequestDisableNotificationsItem: {
|
|
2
|
+
readonly Recipient: "recipient";
|
|
3
|
+
};
|
|
4
|
+
export type CreateInvitationsCustomersRequestDisableNotificationsItem = (typeof CreateInvitationsCustomersRequestDisableNotificationsItem)[keyof typeof CreateInvitationsCustomersRequestDisableNotificationsItem];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreateInvitationsCustomersRequestDisableNotificationsItem = void 0;
|
|
5
|
+
exports.CreateInvitationsCustomersRequestDisableNotificationsItem = {
|
|
6
|
+
Recipient: "recipient",
|
|
7
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.js";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.js";
|
|
3
3
|
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.js";
|
|
4
5
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.js";
|
|
5
6
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.js";
|
|
6
7
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemPartyId.js";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CreateInvitationsCustomersRequestAgentsItem.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateInvitationsCustomersRequestAgentsItemLimits.js"), exports);
|
|
19
19
|
__exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js"), exports);
|
|
20
|
+
__exportStar(require("./CreateInvitationsCustomersRequestDisableNotificationsItem.js"), exports);
|
|
20
21
|
__exportStar(require("./CreateInvitationsCustomersRequestRecipientsItem.js"), exports);
|
|
21
22
|
__exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmail.js"), exports);
|
|
22
23
|
__exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemPartyId.js"), exports);
|
|
@@ -30,4 +30,6 @@ export interface NewPayReqParams {
|
|
|
30
30
|
payerName?: string;
|
|
31
31
|
/** Who pays: exactly one typed email, phone, party ID, agent ID, or handle value. */
|
|
32
32
|
payer: Natural.CreatePaymentRequestsRequestPayer;
|
|
33
|
+
/** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
|
|
34
|
+
disableNotifications?: Natural.CreatePaymentRequestsRequestDisableNotificationsItem[];
|
|
33
35
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentRequestsRequestDisableNotificationsItem: {
|
|
2
|
+
readonly Recipient: "recipient";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentRequestsRequestDisableNotificationsItem = (typeof CreatePaymentRequestsRequestDisableNotificationsItem)[keyof typeof CreatePaymentRequestsRequestDisableNotificationsItem];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreatePaymentRequestsRequestDisableNotificationsItem = void 0;
|
|
5
|
+
exports.CreatePaymentRequestsRequestDisableNotificationsItem = {
|
|
6
|
+
Recipient: "recipient",
|
|
7
|
+
};
|
|
@@ -22,6 +22,7 @@ export * from "./CancelPaymentRequestsResponseDataRelationshipsWallet.js";
|
|
|
22
22
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletData.js";
|
|
23
23
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.js";
|
|
24
24
|
export * from "./CancelPaymentRequestsResponseDataType.js";
|
|
25
|
+
export * from "./CreatePaymentRequestsRequestDisableNotificationsItem.js";
|
|
25
26
|
export * from "./CreatePaymentRequestsRequestPayer.js";
|
|
26
27
|
export * from "./CreatePaymentRequestsRequestPayerAgentId.js";
|
|
27
28
|
export * from "./CreatePaymentRequestsRequestPayerEmail.js";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./CancelPaymentRequestsResponseDataRelationshipsWallet.js"
|
|
|
38
38
|
__exportStar(require("./CancelPaymentRequestsResponseDataRelationshipsWalletData.js"), exports);
|
|
39
39
|
__exportStar(require("./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.js"), exports);
|
|
40
40
|
__exportStar(require("./CancelPaymentRequestsResponseDataType.js"), exports);
|
|
41
|
+
__exportStar(require("./CreatePaymentRequestsRequestDisableNotificationsItem.js"), exports);
|
|
41
42
|
__exportStar(require("./CreatePaymentRequestsRequestPayer.js"), exports);
|
|
42
43
|
__exportStar(require("./CreatePaymentRequestsRequestPayerAgentId.js"), exports);
|
|
43
44
|
__exportStar(require("./CreatePaymentRequestsRequestPayerEmail.js"), exports);
|
|
@@ -28,4 +28,6 @@ export interface NewPaymentParams {
|
|
|
28
28
|
description?: string;
|
|
29
29
|
/** Source wallet ID (wal_*). Omit to pay from the sender party's default wallet. */
|
|
30
30
|
walletId?: string;
|
|
31
|
+
/** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
|
|
32
|
+
disableNotifications?: Natural.CreatePaymentsRequestDisableNotificationsItem[];
|
|
31
33
|
}
|
package/dist/cjs/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentsRequestDisableNotificationsItem: {
|
|
2
|
+
readonly Recipient: "recipient";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentsRequestDisableNotificationsItem = (typeof CreatePaymentsRequestDisableNotificationsItem)[keyof typeof CreatePaymentsRequestDisableNotificationsItem];
|
package/dist/cjs/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreatePaymentsRequestDisableNotificationsItem = void 0;
|
|
5
|
+
exports.CreatePaymentsRequestDisableNotificationsItem = {
|
|
6
|
+
Recipient: "recipient",
|
|
7
|
+
};
|
|
@@ -12,4 +12,6 @@ export interface NewPaymentAttrs {
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
/** When this payment was last updated. */
|
|
14
14
|
updatedAt: string | null;
|
|
15
|
+
/** Link an off-platform recipient uses to claim this payment, or null when the recipient is already on Natural. Returned only here, when the payment is created — the token behind it is never stored, so it cannot be fetched later. It stays valid even if the payment goes through approval. Treat it as a secret: anyone holding the link can claim the funds. */
|
|
16
|
+
claimLink?: string | null;
|
|
15
17
|
}
|
|
@@ -28,6 +28,7 @@ export * from "./CreatePaymentsRequestCounterpartyEmail.js";
|
|
|
28
28
|
export * from "./CreatePaymentsRequestCounterpartyHandle.js";
|
|
29
29
|
export * from "./CreatePaymentsRequestCounterpartyPartyId.js";
|
|
30
30
|
export * from "./CreatePaymentsRequestCounterpartyPhone.js";
|
|
31
|
+
export * from "./CreatePaymentsRequestDisableNotificationsItem.js";
|
|
31
32
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestData.js";
|
|
32
33
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.js";
|
|
33
34
|
export * from "./CreatePaymentsResponseDataRelationshipsRecipientAgent.js";
|
|
@@ -44,6 +44,7 @@ __exportStar(require("./CreatePaymentsRequestCounterpartyEmail.js"), exports);
|
|
|
44
44
|
__exportStar(require("./CreatePaymentsRequestCounterpartyHandle.js"), exports);
|
|
45
45
|
__exportStar(require("./CreatePaymentsRequestCounterpartyPartyId.js"), exports);
|
|
46
46
|
__exportStar(require("./CreatePaymentsRequestCounterpartyPhone.js"), exports);
|
|
47
|
+
__exportStar(require("./CreatePaymentsRequestDisableNotificationsItem.js"), exports);
|
|
47
48
|
__exportStar(require("./CreatePaymentsResponseDataRelationshipsPaymentRequestData.js"), exports);
|
|
48
49
|
__exportStar(require("./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.js"), exports);
|
|
49
50
|
__exportStar(require("./CreatePaymentsResponseDataRelationshipsRecipientAgent.js"), exports);
|
|
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
4
|
import { CreateInvitationsCustomersRequestAgentsItem } from "../../types/CreateInvitationsCustomersRequestAgentsItem.js";
|
|
5
|
+
import { CreateInvitationsCustomersRequestDisableNotificationsItem } from "../../types/CreateInvitationsCustomersRequestDisableNotificationsItem.js";
|
|
5
6
|
import { CreateInvitationsCustomersRequestRecipientsItem } from "../../types/CreateInvitationsCustomersRequestRecipientsItem.js";
|
|
6
7
|
export declare const CreateInvitationsCustomersRequest: core.serialization.Schema<serializers.CreateInvitationsCustomersRequest.Raw, Natural.CreateInvitationsCustomersRequest>;
|
|
7
8
|
export declare namespace CreateInvitationsCustomersRequest {
|
|
@@ -10,5 +11,6 @@ export declare namespace CreateInvitationsCustomersRequest {
|
|
|
10
11
|
agents: CreateInvitationsCustomersRequestAgentsItem.Raw[];
|
|
11
12
|
expiresAt?: string | null;
|
|
12
13
|
tags?: Record<string, string> | null;
|
|
14
|
+
disableNotifications?: CreateInvitationsCustomersRequestDisableNotificationsItem.Raw[] | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.CreateInvitationsCustomersRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
39
|
const CreateInvitationsCustomersRequestAgentsItem_js_1 = require("../../types/CreateInvitationsCustomersRequestAgentsItem.js");
|
|
40
|
+
const CreateInvitationsCustomersRequestDisableNotificationsItem_js_1 = require("../../types/CreateInvitationsCustomersRequestDisableNotificationsItem.js");
|
|
40
41
|
const CreateInvitationsCustomersRequestRecipientsItem_js_1 = require("../../types/CreateInvitationsCustomersRequestRecipientsItem.js");
|
|
41
42
|
exports.CreateInvitationsCustomersRequest = core.serialization.object({
|
|
42
43
|
recipients: core.serialization.list(CreateInvitationsCustomersRequestRecipientsItem_js_1.CreateInvitationsCustomersRequestRecipientsItem),
|
|
43
44
|
agents: core.serialization.list(CreateInvitationsCustomersRequestAgentsItem_js_1.CreateInvitationsCustomersRequestAgentsItem),
|
|
44
45
|
expiresAt: core.serialization.date().optional(),
|
|
45
46
|
tags: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
47
|
+
disableNotifications: core.serialization.list(CreateInvitationsCustomersRequestDisableNotificationsItem_js_1.CreateInvitationsCustomersRequestDisableNotificationsItem).optional(),
|
|
46
48
|
});
|
|
@@ -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 CreateInvitationsCustomersRequestDisableNotificationsItem: core.serialization.Schema<serializers.CreateInvitationsCustomersRequestDisableNotificationsItem.Raw, Natural.CreateInvitationsCustomersRequestDisableNotificationsItem>;
|
|
5
|
+
export declare namespace CreateInvitationsCustomersRequestDisableNotificationsItem {
|
|
6
|
+
type Raw = "recipient";
|
|
7
|
+
}
|
|
@@ -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.CreateInvitationsCustomersRequestDisableNotificationsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreateInvitationsCustomersRequestDisableNotificationsItem = core.serialization.enum_(["recipient"]);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.js";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.js";
|
|
3
3
|
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.js";
|
|
4
5
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.js";
|
|
5
6
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.js";
|
|
6
7
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemPartyId.js";
|
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./CreateInvitationsCustomersRequestAgentsItem.js"), exports);
|
|
18
18
|
__exportStar(require("./CreateInvitationsCustomersRequestAgentsItemLimits.js"), exports);
|
|
19
19
|
__exportStar(require("./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.js"), exports);
|
|
20
|
+
__exportStar(require("./CreateInvitationsCustomersRequestDisableNotificationsItem.js"), exports);
|
|
20
21
|
__exportStar(require("./CreateInvitationsCustomersRequestRecipientsItem.js"), exports);
|
|
21
22
|
__exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemEmail.js"), exports);
|
|
22
23
|
__exportStar(require("./CreateInvitationsCustomersRequestRecipientsItemPartyId.js"), exports);
|
package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewPayReqParams.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Natural from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { CreatePaymentRequestsRequestDisableNotificationsItem } from "../../types/CreatePaymentRequestsRequestDisableNotificationsItem.js";
|
|
4
5
|
import { CreatePaymentRequestsRequestPayer } from "../../types/CreatePaymentRequestsRequestPayer.js";
|
|
5
6
|
import { NewPayReqCurrency } from "../../types/NewPayReqCurrency.js";
|
|
6
7
|
export declare const NewPayReqParams: core.serialization.Schema<serializers.NewPayReqParams.Raw, Omit<Natural.NewPayReqParams, "idempotencyKey">>;
|
|
@@ -13,5 +14,6 @@ export declare namespace NewPayReqParams {
|
|
|
13
14
|
description?: string | null;
|
|
14
15
|
payerName?: string | null;
|
|
15
16
|
payer: CreatePaymentRequestsRequestPayer.Raw;
|
|
17
|
+
disableNotifications?: CreatePaymentRequestsRequestDisableNotificationsItem.Raw[] | null;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.NewPayReqParams = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const CreatePaymentRequestsRequestDisableNotificationsItem_js_1 = require("../../types/CreatePaymentRequestsRequestDisableNotificationsItem.js");
|
|
39
40
|
const CreatePaymentRequestsRequestPayer_js_1 = require("../../types/CreatePaymentRequestsRequestPayer.js");
|
|
40
41
|
const NewPayReqCurrency_js_1 = require("../../types/NewPayReqCurrency.js");
|
|
41
42
|
exports.NewPayReqParams = core.serialization.object({
|
|
@@ -46,4 +47,5 @@ exports.NewPayReqParams = core.serialization.object({
|
|
|
46
47
|
description: core.serialization.string().optional(),
|
|
47
48
|
payerName: core.serialization.string().optional(),
|
|
48
49
|
payer: CreatePaymentRequestsRequestPayer_js_1.CreatePaymentRequestsRequestPayer,
|
|
50
|
+
disableNotifications: core.serialization.list(CreatePaymentRequestsRequestDisableNotificationsItem_js_1.CreatePaymentRequestsRequestDisableNotificationsItem).optional(),
|
|
49
51
|
});
|
|
@@ -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 CreatePaymentRequestsRequestDisableNotificationsItem: core.serialization.Schema<serializers.CreatePaymentRequestsRequestDisableNotificationsItem.Raw, Natural.CreatePaymentRequestsRequestDisableNotificationsItem>;
|
|
5
|
+
export declare namespace CreatePaymentRequestsRequestDisableNotificationsItem {
|
|
6
|
+
type Raw = "recipient";
|
|
7
|
+
}
|
|
@@ -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.CreatePaymentRequestsRequestDisableNotificationsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreatePaymentRequestsRequestDisableNotificationsItem = core.serialization.enum_(["recipient"]);
|
|
@@ -22,6 +22,7 @@ export * from "./CancelPaymentRequestsResponseDataRelationshipsWallet.js";
|
|
|
22
22
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletData.js";
|
|
23
23
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.js";
|
|
24
24
|
export * from "./CancelPaymentRequestsResponseDataType.js";
|
|
25
|
+
export * from "./CreatePaymentRequestsRequestDisableNotificationsItem.js";
|
|
25
26
|
export * from "./CreatePaymentRequestsRequestPayer.js";
|
|
26
27
|
export * from "./CreatePaymentRequestsRequestPayerAgentId.js";
|
|
27
28
|
export * from "./CreatePaymentRequestsRequestPayerEmail.js";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./CancelPaymentRequestsResponseDataRelationshipsWallet.js"
|
|
|
38
38
|
__exportStar(require("./CancelPaymentRequestsResponseDataRelationshipsWalletData.js"), exports);
|
|
39
39
|
__exportStar(require("./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.js"), exports);
|
|
40
40
|
__exportStar(require("./CancelPaymentRequestsResponseDataType.js"), exports);
|
|
41
|
+
__exportStar(require("./CreatePaymentRequestsRequestDisableNotificationsItem.js"), exports);
|
|
41
42
|
__exportStar(require("./CreatePaymentRequestsRequestPayer.js"), exports);
|
|
42
43
|
__exportStar(require("./CreatePaymentRequestsRequestPayerAgentId.js"), exports);
|
|
43
44
|
__exportStar(require("./CreatePaymentRequestsRequestPayerEmail.js"), exports);
|
|
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
4
|
import { CreatePaymentsRequestCounterparty } from "../../types/CreatePaymentsRequestCounterparty.js";
|
|
5
|
+
import { CreatePaymentsRequestDisableNotificationsItem } from "../../types/CreatePaymentsRequestDisableNotificationsItem.js";
|
|
5
6
|
import { NewPaymentCurrency } from "../../types/NewPaymentCurrency.js";
|
|
6
7
|
export declare const NewPaymentParams: core.serialization.Schema<serializers.NewPaymentParams.Raw, Omit<Natural.NewPaymentParams, "idempotencyKey">>;
|
|
7
8
|
export declare namespace NewPaymentParams {
|
|
@@ -12,5 +13,6 @@ export declare namespace NewPaymentParams {
|
|
|
12
13
|
currency?: NewPaymentCurrency.Raw | null;
|
|
13
14
|
description?: string | null;
|
|
14
15
|
walletId?: string | null;
|
|
16
|
+
disableNotifications?: CreatePaymentsRequestDisableNotificationsItem.Raw[] | null;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -37,6 +37,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.NewPaymentParams = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
39
|
const CreatePaymentsRequestCounterparty_js_1 = require("../../types/CreatePaymentsRequestCounterparty.js");
|
|
40
|
+
const CreatePaymentsRequestDisableNotificationsItem_js_1 = require("../../types/CreatePaymentsRequestDisableNotificationsItem.js");
|
|
40
41
|
const NewPaymentCurrency_js_1 = require("../../types/NewPaymentCurrency.js");
|
|
41
42
|
exports.NewPaymentParams = core.serialization.object({
|
|
42
43
|
amount: core.serialization.number(),
|
|
@@ -45,4 +46,5 @@ exports.NewPaymentParams = core.serialization.object({
|
|
|
45
46
|
currency: NewPaymentCurrency_js_1.NewPaymentCurrency.optional(),
|
|
46
47
|
description: core.serialization.string().optional(),
|
|
47
48
|
walletId: core.serialization.string().optional(),
|
|
49
|
+
disableNotifications: core.serialization.list(CreatePaymentsRequestDisableNotificationsItem_js_1.CreatePaymentsRequestDisableNotificationsItem).optional(),
|
|
48
50
|
});
|
|
@@ -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 CreatePaymentsRequestDisableNotificationsItem: core.serialization.Schema<serializers.CreatePaymentsRequestDisableNotificationsItem.Raw, Natural.CreatePaymentsRequestDisableNotificationsItem>;
|
|
5
|
+
export declare namespace CreatePaymentsRequestDisableNotificationsItem {
|
|
6
|
+
type Raw = "recipient";
|
|
7
|
+
}
|
|
@@ -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.CreatePaymentsRequestDisableNotificationsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreatePaymentsRequestDisableNotificationsItem = core.serialization.enum_(["recipient"]);
|
|
@@ -44,4 +44,5 @@ exports.NewPaymentAttrs = core.serialization.object({
|
|
|
44
44
|
description: core.serialization.string().nullable(),
|
|
45
45
|
createdAt: core.serialization.string(),
|
|
46
46
|
updatedAt: core.serialization.string().nullable(),
|
|
47
|
+
claimLink: core.serialization.string().optionalNullable(),
|
|
47
48
|
});
|
|
@@ -28,6 +28,7 @@ export * from "./CreatePaymentsRequestCounterpartyEmail.js";
|
|
|
28
28
|
export * from "./CreatePaymentsRequestCounterpartyHandle.js";
|
|
29
29
|
export * from "./CreatePaymentsRequestCounterpartyPartyId.js";
|
|
30
30
|
export * from "./CreatePaymentsRequestCounterpartyPhone.js";
|
|
31
|
+
export * from "./CreatePaymentsRequestDisableNotificationsItem.js";
|
|
31
32
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestData.js";
|
|
32
33
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.js";
|
|
33
34
|
export * from "./CreatePaymentsResponseDataRelationshipsRecipientAgent.js";
|
|
@@ -44,6 +44,7 @@ __exportStar(require("./CreatePaymentsRequestCounterpartyEmail.js"), exports);
|
|
|
44
44
|
__exportStar(require("./CreatePaymentsRequestCounterpartyHandle.js"), exports);
|
|
45
45
|
__exportStar(require("./CreatePaymentsRequestCounterpartyPartyId.js"), exports);
|
|
46
46
|
__exportStar(require("./CreatePaymentsRequestCounterpartyPhone.js"), exports);
|
|
47
|
+
__exportStar(require("./CreatePaymentsRequestDisableNotificationsItem.js"), exports);
|
|
47
48
|
__exportStar(require("./CreatePaymentsResponseDataRelationshipsPaymentRequestData.js"), exports);
|
|
48
49
|
__exportStar(require("./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.js"), exports);
|
|
49
50
|
__exportStar(require("./CreatePaymentsResponseDataRelationshipsRecipientAgent.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0
|
|
1
|
+
export declare const SDK_VERSION = "1.1.0";
|
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.0
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.0
|
|
9
|
+
"X-Fern-SDK-Version": "1.1.0",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.1.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Agent-ID": options === null || options === void 0 ? void 0 : options.agentId,
|
package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts
CHANGED
|
@@ -28,4 +28,6 @@ export interface CreateInvitationsCustomersRequest {
|
|
|
28
28
|
expiresAt?: Date;
|
|
29
29
|
/** Tags applied to each invitation. */
|
|
30
30
|
tags?: Record<string, string>;
|
|
31
|
+
/** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
|
|
32
|
+
disableNotifications?: Natural.CreateInvitationsCustomersRequestDisableNotificationsItem[];
|
|
31
33
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreateInvitationsCustomersRequestDisableNotificationsItem: {
|
|
2
|
+
readonly Recipient: "recipient";
|
|
3
|
+
};
|
|
4
|
+
export type CreateInvitationsCustomersRequestDisableNotificationsItem = (typeof CreateInvitationsCustomersRequestDisableNotificationsItem)[keyof typeof CreateInvitationsCustomersRequestDisableNotificationsItem];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.mjs";
|
|
3
3
|
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
4
5
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
5
6
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.mjs";
|
|
6
7
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemPartyId.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.mjs";
|
|
3
3
|
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
4
5
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
5
6
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.mjs";
|
|
6
7
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemPartyId.mjs";
|
|
@@ -30,4 +30,6 @@ export interface NewPayReqParams {
|
|
|
30
30
|
payerName?: string;
|
|
31
31
|
/** Who pays: exactly one typed email, phone, party ID, agent ID, or handle value. */
|
|
32
32
|
payer: Natural.CreatePaymentRequestsRequestPayer;
|
|
33
|
+
/** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
|
|
34
|
+
disableNotifications?: Natural.CreatePaymentRequestsRequestDisableNotificationsItem[];
|
|
33
35
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentRequestsRequestDisableNotificationsItem: {
|
|
2
|
+
readonly Recipient: "recipient";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentRequestsRequestDisableNotificationsItem = (typeof CreatePaymentRequestsRequestDisableNotificationsItem)[keyof typeof CreatePaymentRequestsRequestDisableNotificationsItem];
|
|
@@ -22,6 +22,7 @@ export * from "./CancelPaymentRequestsResponseDataRelationshipsWallet.mjs";
|
|
|
22
22
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletData.mjs";
|
|
23
23
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.mjs";
|
|
24
24
|
export * from "./CancelPaymentRequestsResponseDataType.mjs";
|
|
25
|
+
export * from "./CreatePaymentRequestsRequestDisableNotificationsItem.mjs";
|
|
25
26
|
export * from "./CreatePaymentRequestsRequestPayer.mjs";
|
|
26
27
|
export * from "./CreatePaymentRequestsRequestPayerAgentId.mjs";
|
|
27
28
|
export * from "./CreatePaymentRequestsRequestPayerEmail.mjs";
|
|
@@ -22,6 +22,7 @@ export * from "./CancelPaymentRequestsResponseDataRelationshipsWallet.mjs";
|
|
|
22
22
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletData.mjs";
|
|
23
23
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.mjs";
|
|
24
24
|
export * from "./CancelPaymentRequestsResponseDataType.mjs";
|
|
25
|
+
export * from "./CreatePaymentRequestsRequestDisableNotificationsItem.mjs";
|
|
25
26
|
export * from "./CreatePaymentRequestsRequestPayer.mjs";
|
|
26
27
|
export * from "./CreatePaymentRequestsRequestPayerAgentId.mjs";
|
|
27
28
|
export * from "./CreatePaymentRequestsRequestPayerEmail.mjs";
|
|
@@ -28,4 +28,6 @@ export interface NewPaymentParams {
|
|
|
28
28
|
description?: string;
|
|
29
29
|
/** Source wallet ID (wal_*). Omit to pay from the sender party's default wallet. */
|
|
30
30
|
walletId?: string;
|
|
31
|
+
/** Natural notifications to disable for this request. "recipient" silences our message to the counterparty so you can deliver the returned link yourself; the person who initiated the request is always notified. Requires a delegated caller on payments and payment requests, which return 403 otherwise. Omit it, or send an empty array, to have Natural notify as usual. */
|
|
32
|
+
disableNotifications?: Natural.CreatePaymentsRequestDisableNotificationsItem[];
|
|
31
33
|
}
|
package/dist/esm/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.mts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentsRequestDisableNotificationsItem: {
|
|
2
|
+
readonly Recipient: "recipient";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentsRequestDisableNotificationsItem = (typeof CreatePaymentsRequestDisableNotificationsItem)[keyof typeof CreatePaymentsRequestDisableNotificationsItem];
|
|
@@ -12,4 +12,6 @@ export interface NewPaymentAttrs {
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
/** When this payment was last updated. */
|
|
14
14
|
updatedAt: string | null;
|
|
15
|
+
/** Link an off-platform recipient uses to claim this payment, or null when the recipient is already on Natural. Returned only here, when the payment is created — the token behind it is never stored, so it cannot be fetched later. It stays valid even if the payment goes through approval. Treat it as a secret: anyone holding the link can claim the funds. */
|
|
16
|
+
claimLink?: string | null;
|
|
15
17
|
}
|
|
@@ -28,6 +28,7 @@ export * from "./CreatePaymentsRequestCounterpartyEmail.mjs";
|
|
|
28
28
|
export * from "./CreatePaymentsRequestCounterpartyHandle.mjs";
|
|
29
29
|
export * from "./CreatePaymentsRequestCounterpartyPartyId.mjs";
|
|
30
30
|
export * from "./CreatePaymentsRequestCounterpartyPhone.mjs";
|
|
31
|
+
export * from "./CreatePaymentsRequestDisableNotificationsItem.mjs";
|
|
31
32
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestData.mjs";
|
|
32
33
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.mjs";
|
|
33
34
|
export * from "./CreatePaymentsResponseDataRelationshipsRecipientAgent.mjs";
|
|
@@ -28,6 +28,7 @@ export * from "./CreatePaymentsRequestCounterpartyEmail.mjs";
|
|
|
28
28
|
export * from "./CreatePaymentsRequestCounterpartyHandle.mjs";
|
|
29
29
|
export * from "./CreatePaymentsRequestCounterpartyPartyId.mjs";
|
|
30
30
|
export * from "./CreatePaymentsRequestCounterpartyPhone.mjs";
|
|
31
|
+
export * from "./CreatePaymentsRequestDisableNotificationsItem.mjs";
|
|
31
32
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestData.mjs";
|
|
32
33
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.mjs";
|
|
33
34
|
export * from "./CreatePaymentsResponseDataRelationshipsRecipientAgent.mjs";
|
|
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
4
|
import { CreateInvitationsCustomersRequestAgentsItem } from "../../types/CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
5
|
+
import { CreateInvitationsCustomersRequestDisableNotificationsItem } from "../../types/CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
5
6
|
import { CreateInvitationsCustomersRequestRecipientsItem } from "../../types/CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
6
7
|
export declare const CreateInvitationsCustomersRequest: core.serialization.Schema<serializers.CreateInvitationsCustomersRequest.Raw, Natural.CreateInvitationsCustomersRequest>;
|
|
7
8
|
export declare namespace CreateInvitationsCustomersRequest {
|
|
@@ -10,5 +11,6 @@ export declare namespace CreateInvitationsCustomersRequest {
|
|
|
10
11
|
agents: CreateInvitationsCustomersRequestAgentsItem.Raw[];
|
|
11
12
|
expiresAt?: string | null;
|
|
12
13
|
tags?: Record<string, string> | null;
|
|
14
|
+
disableNotifications?: CreateInvitationsCustomersRequestDisableNotificationsItem.Raw[] | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import { CreateInvitationsCustomersRequestAgentsItem } from "../../types/CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
4
|
+
import { CreateInvitationsCustomersRequestDisableNotificationsItem } from "../../types/CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
4
5
|
import { CreateInvitationsCustomersRequestRecipientsItem } from "../../types/CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
5
6
|
export const CreateInvitationsCustomersRequest = core.serialization.object({
|
|
6
7
|
recipients: core.serialization.list(CreateInvitationsCustomersRequestRecipientsItem),
|
|
7
8
|
agents: core.serialization.list(CreateInvitationsCustomersRequestAgentsItem),
|
|
8
9
|
expiresAt: core.serialization.date().optional(),
|
|
9
10
|
tags: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
11
|
+
disableNotifications: core.serialization.list(CreateInvitationsCustomersRequestDisableNotificationsItem).optional(),
|
|
10
12
|
});
|
|
@@ -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 CreateInvitationsCustomersRequestDisableNotificationsItem: core.serialization.Schema<serializers.CreateInvitationsCustomersRequestDisableNotificationsItem.Raw, Natural.CreateInvitationsCustomersRequestDisableNotificationsItem>;
|
|
5
|
+
export declare namespace CreateInvitationsCustomersRequestDisableNotificationsItem {
|
|
6
|
+
type Raw = "recipient";
|
|
7
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.mjs";
|
|
3
3
|
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
4
5
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
5
6
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.mjs";
|
|
6
7
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemPartyId.mjs";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./CreateInvitationsCustomersRequestAgentsItem.mjs";
|
|
2
2
|
export * from "./CreateInvitationsCustomersRequestAgentsItemLimits.mjs";
|
|
3
3
|
export * from "./CreateInvitationsCustomersRequestAgentsItemPermissionsItem.mjs";
|
|
4
|
+
export * from "./CreateInvitationsCustomersRequestDisableNotificationsItem.mjs";
|
|
4
5
|
export * from "./CreateInvitationsCustomersRequestRecipientsItem.mjs";
|
|
5
6
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemEmail.mjs";
|
|
6
7
|
export * from "./CreateInvitationsCustomersRequestRecipientsItemPartyId.mjs";
|
package/dist/esm/serialization/resources/paymentRequests/client/requests/NewPayReqParams.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Natural from "../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { CreatePaymentRequestsRequestDisableNotificationsItem } from "../../types/CreatePaymentRequestsRequestDisableNotificationsItem.mjs";
|
|
4
5
|
import { CreatePaymentRequestsRequestPayer } from "../../types/CreatePaymentRequestsRequestPayer.mjs";
|
|
5
6
|
import { NewPayReqCurrency } from "../../types/NewPayReqCurrency.mjs";
|
|
6
7
|
export declare const NewPayReqParams: core.serialization.Schema<serializers.NewPayReqParams.Raw, Omit<Natural.NewPayReqParams, "idempotencyKey">>;
|
|
@@ -13,5 +14,6 @@ export declare namespace NewPayReqParams {
|
|
|
13
14
|
description?: string | null;
|
|
14
15
|
payerName?: string | null;
|
|
15
16
|
payer: CreatePaymentRequestsRequestPayer.Raw;
|
|
17
|
+
disableNotifications?: CreatePaymentRequestsRequestDisableNotificationsItem.Raw[] | null;
|
|
16
18
|
}
|
|
17
19
|
}
|
package/dist/esm/serialization/resources/paymentRequests/client/requests/NewPayReqParams.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { CreatePaymentRequestsRequestDisableNotificationsItem } from "../../types/CreatePaymentRequestsRequestDisableNotificationsItem.mjs";
|
|
3
4
|
import { CreatePaymentRequestsRequestPayer } from "../../types/CreatePaymentRequestsRequestPayer.mjs";
|
|
4
5
|
import { NewPayReqCurrency } from "../../types/NewPayReqCurrency.mjs";
|
|
5
6
|
export const NewPayReqParams = core.serialization.object({
|
|
@@ -10,4 +11,5 @@ export const NewPayReqParams = core.serialization.object({
|
|
|
10
11
|
description: core.serialization.string().optional(),
|
|
11
12
|
payerName: core.serialization.string().optional(),
|
|
12
13
|
payer: CreatePaymentRequestsRequestPayer,
|
|
14
|
+
disableNotifications: core.serialization.list(CreatePaymentRequestsRequestDisableNotificationsItem).optional(),
|
|
13
15
|
});
|
|
@@ -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 CreatePaymentRequestsRequestDisableNotificationsItem: core.serialization.Schema<serializers.CreatePaymentRequestsRequestDisableNotificationsItem.Raw, Natural.CreatePaymentRequestsRequestDisableNotificationsItem>;
|
|
5
|
+
export declare namespace CreatePaymentRequestsRequestDisableNotificationsItem {
|
|
6
|
+
type Raw = "recipient";
|
|
7
|
+
}
|
|
@@ -22,6 +22,7 @@ export * from "./CancelPaymentRequestsResponseDataRelationshipsWallet.mjs";
|
|
|
22
22
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletData.mjs";
|
|
23
23
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.mjs";
|
|
24
24
|
export * from "./CancelPaymentRequestsResponseDataType.mjs";
|
|
25
|
+
export * from "./CreatePaymentRequestsRequestDisableNotificationsItem.mjs";
|
|
25
26
|
export * from "./CreatePaymentRequestsRequestPayer.mjs";
|
|
26
27
|
export * from "./CreatePaymentRequestsRequestPayerAgentId.mjs";
|
|
27
28
|
export * from "./CreatePaymentRequestsRequestPayerEmail.mjs";
|
|
@@ -22,6 +22,7 @@ export * from "./CancelPaymentRequestsResponseDataRelationshipsWallet.mjs";
|
|
|
22
22
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletData.mjs";
|
|
23
23
|
export * from "./CancelPaymentRequestsResponseDataRelationshipsWalletDataType.mjs";
|
|
24
24
|
export * from "./CancelPaymentRequestsResponseDataType.mjs";
|
|
25
|
+
export * from "./CreatePaymentRequestsRequestDisableNotificationsItem.mjs";
|
|
25
26
|
export * from "./CreatePaymentRequestsRequestPayer.mjs";
|
|
26
27
|
export * from "./CreatePaymentRequestsRequestPayerAgentId.mjs";
|
|
27
28
|
export * from "./CreatePaymentRequestsRequestPayerEmail.mjs";
|
|
@@ -2,6 +2,7 @@ import type * as Natural from "../../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
4
|
import { CreatePaymentsRequestCounterparty } from "../../types/CreatePaymentsRequestCounterparty.mjs";
|
|
5
|
+
import { CreatePaymentsRequestDisableNotificationsItem } from "../../types/CreatePaymentsRequestDisableNotificationsItem.mjs";
|
|
5
6
|
import { NewPaymentCurrency } from "../../types/NewPaymentCurrency.mjs";
|
|
6
7
|
export declare const NewPaymentParams: core.serialization.Schema<serializers.NewPaymentParams.Raw, Omit<Natural.NewPaymentParams, "idempotencyKey">>;
|
|
7
8
|
export declare namespace NewPaymentParams {
|
|
@@ -12,5 +13,6 @@ export declare namespace NewPaymentParams {
|
|
|
12
13
|
currency?: NewPaymentCurrency.Raw | null;
|
|
13
14
|
description?: string | null;
|
|
14
15
|
walletId?: string | null;
|
|
16
|
+
disableNotifications?: CreatePaymentsRequestDisableNotificationsItem.Raw[] | null;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import { CreatePaymentsRequestCounterparty } from "../../types/CreatePaymentsRequestCounterparty.mjs";
|
|
4
|
+
import { CreatePaymentsRequestDisableNotificationsItem } from "../../types/CreatePaymentsRequestDisableNotificationsItem.mjs";
|
|
4
5
|
import { NewPaymentCurrency } from "../../types/NewPaymentCurrency.mjs";
|
|
5
6
|
export const NewPaymentParams = core.serialization.object({
|
|
6
7
|
amount: core.serialization.number(),
|
|
@@ -9,4 +10,5 @@ export const NewPaymentParams = core.serialization.object({
|
|
|
9
10
|
currency: NewPaymentCurrency.optional(),
|
|
10
11
|
description: core.serialization.string().optional(),
|
|
11
12
|
walletId: core.serialization.string().optional(),
|
|
13
|
+
disableNotifications: core.serialization.list(CreatePaymentsRequestDisableNotificationsItem).optional(),
|
|
12
14
|
});
|
|
@@ -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 CreatePaymentsRequestDisableNotificationsItem: core.serialization.Schema<serializers.CreatePaymentsRequestDisableNotificationsItem.Raw, Natural.CreatePaymentsRequestDisableNotificationsItem>;
|
|
5
|
+
export declare namespace CreatePaymentsRequestDisableNotificationsItem {
|
|
6
|
+
type Raw = "recipient";
|
|
7
|
+
}
|
|
@@ -8,4 +8,5 @@ export const NewPaymentAttrs = core.serialization.object({
|
|
|
8
8
|
description: core.serialization.string().nullable(),
|
|
9
9
|
createdAt: core.serialization.string(),
|
|
10
10
|
updatedAt: core.serialization.string().nullable(),
|
|
11
|
+
claimLink: core.serialization.string().optionalNullable(),
|
|
11
12
|
});
|
|
@@ -28,6 +28,7 @@ export * from "./CreatePaymentsRequestCounterpartyEmail.mjs";
|
|
|
28
28
|
export * from "./CreatePaymentsRequestCounterpartyHandle.mjs";
|
|
29
29
|
export * from "./CreatePaymentsRequestCounterpartyPartyId.mjs";
|
|
30
30
|
export * from "./CreatePaymentsRequestCounterpartyPhone.mjs";
|
|
31
|
+
export * from "./CreatePaymentsRequestDisableNotificationsItem.mjs";
|
|
31
32
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestData.mjs";
|
|
32
33
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.mjs";
|
|
33
34
|
export * from "./CreatePaymentsResponseDataRelationshipsRecipientAgent.mjs";
|
|
@@ -28,6 +28,7 @@ export * from "./CreatePaymentsRequestCounterpartyEmail.mjs";
|
|
|
28
28
|
export * from "./CreatePaymentsRequestCounterpartyHandle.mjs";
|
|
29
29
|
export * from "./CreatePaymentsRequestCounterpartyPartyId.mjs";
|
|
30
30
|
export * from "./CreatePaymentsRequestCounterpartyPhone.mjs";
|
|
31
|
+
export * from "./CreatePaymentsRequestDisableNotificationsItem.mjs";
|
|
31
32
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestData.mjs";
|
|
32
33
|
export * from "./CreatePaymentsResponseDataRelationshipsPaymentRequestDataType.mjs";
|
|
33
34
|
export * from "./CreatePaymentsResponseDataRelationshipsRecipientAgent.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0
|
|
1
|
+
export declare const SDK_VERSION = "1.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0
|
|
1
|
+
export const SDK_VERSION = "1.1.0";
|