@naturalpay/sdk 1.0.1 → 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.
Files changed (115) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +2 -0
  3. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.ts +4 -0
  4. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.js +7 -0
  5. package/dist/cjs/api/resources/customers/types/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/customers/types/index.js +1 -0
  7. package/dist/cjs/api/resources/paymentRequests/client/requests/NewPayReqParams.d.ts +2 -0
  8. package/dist/cjs/api/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +4 -0
  9. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.ts +4 -0
  10. package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.js +7 -0
  11. package/dist/cjs/api/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +4 -0
  12. package/dist/cjs/api/resources/paymentRequests/types/IncomingReqAttrs.d.ts +4 -0
  13. package/dist/cjs/api/resources/paymentRequests/types/NewPayReqAttrs.d.ts +4 -0
  14. package/dist/cjs/api/resources/paymentRequests/types/PayReqAttrs.d.ts +4 -0
  15. package/dist/cjs/api/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +4 -0
  16. package/dist/cjs/api/resources/paymentRequests/types/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/paymentRequests/types/index.js +1 -0
  18. package/dist/cjs/api/resources/payments/client/requests/NewPaymentParams.d.ts +2 -0
  19. package/dist/cjs/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.ts +4 -0
  20. package/dist/cjs/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.js +7 -0
  21. package/dist/cjs/api/resources/payments/types/NewPaymentAttrs.d.ts +2 -0
  22. package/dist/cjs/api/resources/payments/types/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/payments/types/index.js +1 -0
  24. package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.ts +2 -0
  25. package/dist/cjs/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.js +2 -0
  26. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.ts +7 -0
  27. package/dist/cjs/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.js +39 -0
  28. package/dist/cjs/serialization/resources/customers/types/index.d.ts +1 -0
  29. package/dist/cjs/serialization/resources/customers/types/index.js +1 -0
  30. package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewPayReqParams.d.ts +2 -0
  31. package/dist/cjs/serialization/resources/paymentRequests/client/requests/NewPayReqParams.js +2 -0
  32. package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +2 -0
  33. package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.js +2 -0
  34. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.ts +7 -0
  35. package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.js +39 -0
  36. package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +2 -0
  37. package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.js +2 -0
  38. package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.ts +2 -0
  39. package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.js +2 -0
  40. package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.ts +2 -0
  41. package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.js +2 -0
  42. package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.d.ts +2 -0
  43. package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.js +2 -0
  44. package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +2 -0
  45. package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.js +2 -0
  46. package/dist/cjs/serialization/resources/paymentRequests/types/index.d.ts +1 -0
  47. package/dist/cjs/serialization/resources/paymentRequests/types/index.js +1 -0
  48. package/dist/cjs/serialization/resources/payments/client/requests/NewPaymentParams.d.ts +2 -0
  49. package/dist/cjs/serialization/resources/payments/client/requests/NewPaymentParams.js +2 -0
  50. package/dist/cjs/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.ts +7 -0
  51. package/dist/cjs/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.js +39 -0
  52. package/dist/cjs/serialization/resources/payments/types/NewPaymentAttrs.d.ts +1 -0
  53. package/dist/cjs/serialization/resources/payments/types/NewPaymentAttrs.js +1 -0
  54. package/dist/cjs/serialization/resources/payments/types/index.d.ts +1 -0
  55. package/dist/cjs/serialization/resources/payments/types/index.js +1 -0
  56. package/dist/cjs/version.d.ts +1 -1
  57. package/dist/cjs/version.js +1 -1
  58. package/dist/esm/BaseClient.mjs +2 -2
  59. package/dist/esm/api/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +2 -0
  60. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.mts +4 -0
  61. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.mjs +4 -0
  62. package/dist/esm/api/resources/customers/types/index.d.mts +1 -0
  63. package/dist/esm/api/resources/customers/types/index.mjs +1 -0
  64. package/dist/esm/api/resources/paymentRequests/client/requests/NewPayReqParams.d.mts +2 -0
  65. package/dist/esm/api/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +4 -0
  66. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.mts +4 -0
  67. package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.mjs +4 -0
  68. package/dist/esm/api/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +4 -0
  69. package/dist/esm/api/resources/paymentRequests/types/IncomingReqAttrs.d.mts +4 -0
  70. package/dist/esm/api/resources/paymentRequests/types/NewPayReqAttrs.d.mts +4 -0
  71. package/dist/esm/api/resources/paymentRequests/types/PayReqAttrs.d.mts +4 -0
  72. package/dist/esm/api/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +4 -0
  73. package/dist/esm/api/resources/paymentRequests/types/index.d.mts +1 -0
  74. package/dist/esm/api/resources/paymentRequests/types/index.mjs +1 -0
  75. package/dist/esm/api/resources/payments/client/requests/NewPaymentParams.d.mts +2 -0
  76. package/dist/esm/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.mts +4 -0
  77. package/dist/esm/api/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.mjs +4 -0
  78. package/dist/esm/api/resources/payments/types/NewPaymentAttrs.d.mts +2 -0
  79. package/dist/esm/api/resources/payments/types/index.d.mts +1 -0
  80. package/dist/esm/api/resources/payments/types/index.mjs +1 -0
  81. package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.d.mts +2 -0
  82. package/dist/esm/serialization/resources/customers/client/requests/CreateInvitationsCustomersRequest.mjs +2 -0
  83. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.d.mts +7 -0
  84. package/dist/esm/serialization/resources/customers/types/CreateInvitationsCustomersRequestDisableNotificationsItem.mjs +3 -0
  85. package/dist/esm/serialization/resources/customers/types/index.d.mts +1 -0
  86. package/dist/esm/serialization/resources/customers/types/index.mjs +1 -0
  87. package/dist/esm/serialization/resources/paymentRequests/client/requests/NewPayReqParams.d.mts +2 -0
  88. package/dist/esm/serialization/resources/paymentRequests/client/requests/NewPayReqParams.mjs +2 -0
  89. package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +2 -0
  90. package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.mjs +2 -0
  91. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.d.mts +7 -0
  92. package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsRequestDisableNotificationsItem.mjs +3 -0
  93. package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +2 -0
  94. package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.mjs +2 -0
  95. package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.mts +2 -0
  96. package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.mjs +2 -0
  97. package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.mts +2 -0
  98. package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.mjs +2 -0
  99. package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.d.mts +2 -0
  100. package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.mjs +2 -0
  101. package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +2 -0
  102. package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.mjs +2 -0
  103. package/dist/esm/serialization/resources/paymentRequests/types/index.d.mts +1 -0
  104. package/dist/esm/serialization/resources/paymentRequests/types/index.mjs +1 -0
  105. package/dist/esm/serialization/resources/payments/client/requests/NewPaymentParams.d.mts +2 -0
  106. package/dist/esm/serialization/resources/payments/client/requests/NewPaymentParams.mjs +2 -0
  107. package/dist/esm/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.d.mts +7 -0
  108. package/dist/esm/serialization/resources/payments/types/CreatePaymentsRequestDisableNotificationsItem.mjs +3 -0
  109. package/dist/esm/serialization/resources/payments/types/NewPaymentAttrs.d.mts +1 -0
  110. package/dist/esm/serialization/resources/payments/types/NewPaymentAttrs.mjs +1 -0
  111. package/dist/esm/serialization/resources/payments/types/index.d.mts +1 -0
  112. package/dist/esm/serialization/resources/payments/types/index.mjs +1 -0
  113. package/dist/esm/version.d.mts +1 -1
  114. package/dist/esm/version.mjs +1 -1
  115. package/package.json +1 -1
@@ -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"]);
@@ -11,5 +11,6 @@ export declare namespace NewPaymentAttrs {
11
11
  description?: string | null;
12
12
  createdAt: string;
13
13
  updatedAt?: string | null;
14
+ claimLink?: (string | null | undefined) | null;
14
15
  }
15
16
  }
@@ -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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.1";
1
+ export declare const SDK_VERSION = "1.1.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.1";
4
+ exports.SDK_VERSION = "1.1.0";
@@ -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.1",
10
- "User-Agent": "@naturalpay/sdk/1.0.1",
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,
@@ -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,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CreateInvitationsCustomersRequestDisableNotificationsItem = {
3
+ Recipient: "recipient",
4
+ };
@@ -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
  }
@@ -6,6 +6,10 @@ export interface CancelPaymentRequestsResponseDataAttributes {
6
6
  currency: string;
7
7
  /** Payment request status. */
8
8
  status: Natural.CancelPaymentRequestsResponseDataAttributesStatus;
9
+ /** Whether the request's stored lifecycle currently allows the addressed payer to attempt fulfillment (stored OPEN, no prior payment attempt, not expired). Server-computed eligibility only — does not guarantee caller authorization or payment-source readiness, and does not consider paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
10
+ payerCanPay: boolean;
11
+ /** Whether the request's stored lifecycle currently allows the addressed payer to decline it (stored OPEN). Server-computed eligibility only — does not guarantee caller authorization, and does not consider request expiry or paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
12
+ payerCanDecline: boolean;
9
13
  /** Free-form description provided at creation. Maximum 80 characters. */
10
14
  description: string | null;
11
15
  /** Display name of the party requesting payment. */
@@ -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,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CreatePaymentRequestsRequestDisableNotificationsItem = {
3
+ Recipient: "recipient",
4
+ };
@@ -6,6 +6,10 @@ export interface DeclinedReqAttrs {
6
6
  currency: string;
7
7
  /** Payment request status. */
8
8
  status: Natural.DeclinedReqStatus;
9
+ /** Whether the request's stored lifecycle currently allows the addressed payer to attempt fulfillment (stored OPEN, no prior payment attempt, not expired). Server-computed eligibility only — does not guarantee caller authorization or payment-source readiness, and does not consider paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
10
+ payerCanPay: boolean;
11
+ /** Whether the request's stored lifecycle currently allows the addressed payer to decline it (stored OPEN). Server-computed eligibility only — does not guarantee caller authorization, and does not consider request expiry or paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
12
+ payerCanDecline: boolean;
9
13
  /** Free-form description provided at creation. Maximum 80 characters. */
10
14
  description: string | null;
11
15
  /** Display name of the party requesting payment. */
@@ -6,6 +6,10 @@ export interface IncomingReqAttrs {
6
6
  currency: string;
7
7
  /** Payment request status. */
8
8
  status: Natural.IncomingReqStatus;
9
+ /** Whether the request's stored lifecycle currently allows the addressed payer to attempt fulfillment (stored OPEN, no prior payment attempt, not expired). Server-computed eligibility only — does not guarantee caller authorization or payment-source readiness, and does not consider paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
10
+ payerCanPay: boolean;
11
+ /** Whether the request's stored lifecycle currently allows the addressed payer to decline it (stored OPEN). Server-computed eligibility only — does not guarantee caller authorization, and does not consider request expiry or paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
12
+ payerCanDecline: boolean;
9
13
  /** Free-form description provided at creation. Maximum 80 characters. */
10
14
  description: string | null;
11
15
  /** Display name of the party requesting payment. */
@@ -6,6 +6,10 @@ export interface NewPayReqAttrs {
6
6
  currency: string;
7
7
  /** Payment request status. */
8
8
  status: Natural.NewPayReqStatus;
9
+ /** Whether the request's stored lifecycle currently allows the addressed payer to attempt fulfillment (stored OPEN, no prior payment attempt, not expired). Server-computed eligibility only — does not guarantee caller authorization or payment-source readiness, and does not consider paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
10
+ payerCanPay: boolean;
11
+ /** Whether the request's stored lifecycle currently allows the addressed payer to decline it (stored OPEN). Server-computed eligibility only — does not guarantee caller authorization, and does not consider request expiry or paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
12
+ payerCanDecline: boolean;
9
13
  /** Free-form description provided at creation. Maximum 80 characters. */
10
14
  description: string | null;
11
15
  /** Display name of the party requesting payment. */
@@ -6,6 +6,10 @@ export interface PayReqAttrs {
6
6
  currency: string;
7
7
  /** Payment request status. */
8
8
  status: Natural.PayReqStatus;
9
+ /** Whether the request's stored lifecycle currently allows the addressed payer to attempt fulfillment (stored OPEN, no prior payment attempt, not expired). Server-computed eligibility only — does not guarantee caller authorization or payment-source readiness, and does not consider paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
10
+ payerCanPay: boolean;
11
+ /** Whether the request's stored lifecycle currently allows the addressed payer to decline it (stored OPEN). Server-computed eligibility only — does not guarantee caller authorization, and does not consider request expiry or paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
12
+ payerCanDecline: boolean;
9
13
  /** Free-form description provided at creation. Maximum 80 characters. */
10
14
  description: string | null;
11
15
  /** Display name of the party requesting payment. */
@@ -6,6 +6,10 @@ export interface PayReqDetailAttrs {
6
6
  currency: string;
7
7
  /** Payment request status. */
8
8
  status: Natural.PayReqDetailStatus;
9
+ /** Whether the request's stored lifecycle currently allows the addressed payer to attempt fulfillment (stored OPEN, no prior payment attempt, not expired). Server-computed eligibility only — does not guarantee caller authorization or payment-source readiness, and does not consider paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
10
+ payerCanPay: boolean;
11
+ /** Whether the request's stored lifecycle currently allows the addressed payer to decline it (stored OPEN). Server-computed eligibility only — does not guarantee caller authorization, and does not consider request expiry or paymentLinkExpiresAt (the hosted payment page enforces its own expiry). */
12
+ payerCanDecline: boolean;
9
13
  /** Free-form description provided at creation. Maximum 80 characters. */
10
14
  description: string | null;
11
15
  /** Display name of the party requesting payment. */
@@ -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
  }
@@ -0,0 +1,4 @@
1
+ export declare const CreatePaymentsRequestDisableNotificationsItem: {
2
+ readonly Recipient: "recipient";
3
+ };
4
+ export type CreatePaymentsRequestDisableNotificationsItem = (typeof CreatePaymentsRequestDisableNotificationsItem)[keyof typeof CreatePaymentsRequestDisableNotificationsItem];
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const CreatePaymentsRequestDisableNotificationsItem = {
3
+ Recipient: "recipient",
4
+ };
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const CreateInvitationsCustomersRequestDisableNotificationsItem = core.serialization.enum_(["recipient"]);
@@ -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";
@@ -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
  }
@@ -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
  });
@@ -11,6 +11,8 @@ export declare namespace CancelPaymentRequestsResponseDataAttributes {
11
11
  amount: number;
12
12
  currency: string;
13
13
  status: CancelPaymentRequestsResponseDataAttributesStatus.Raw;
14
+ payerCanPay: boolean;
15
+ payerCanDecline: boolean;
14
16
  description?: string | null;
15
17
  requesterName?: string | null;
16
18
  requesterEmail?: string | null;
@@ -8,6 +8,8 @@ export const CancelPaymentRequestsResponseDataAttributes = core.serialization.ob
8
8
  amount: core.serialization.number(),
9
9
  currency: core.serialization.string(),
10
10
  status: CancelPaymentRequestsResponseDataAttributesStatus,
11
+ payerCanPay: core.serialization.boolean(),
12
+ payerCanDecline: core.serialization.boolean(),
11
13
  description: core.serialization.string().nullable(),
12
14
  requesterName: core.serialization.string().nullable(),
13
15
  requesterEmail: core.serialization.string().nullable(),
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const CreatePaymentRequestsRequestDisableNotificationsItem = core.serialization.enum_(["recipient"]);
@@ -11,6 +11,8 @@ export declare namespace DeclinedReqAttrs {
11
11
  amount: number;
12
12
  currency: string;
13
13
  status: DeclinedReqStatus.Raw;
14
+ payerCanPay: boolean;
15
+ payerCanDecline: boolean;
14
16
  description?: string | null;
15
17
  requesterName?: string | null;
16
18
  requesterEmail?: string | null;
@@ -8,6 +8,8 @@ export const DeclinedReqAttrs = core.serialization.object({
8
8
  amount: core.serialization.number(),
9
9
  currency: core.serialization.string(),
10
10
  status: DeclinedReqStatus,
11
+ payerCanPay: core.serialization.boolean(),
12
+ payerCanDecline: core.serialization.boolean(),
11
13
  description: core.serialization.string().nullable(),
12
14
  requesterName: core.serialization.string().nullable(),
13
15
  requesterEmail: core.serialization.string().nullable(),
@@ -11,6 +11,8 @@ export declare namespace IncomingReqAttrs {
11
11
  amount: number;
12
12
  currency: string;
13
13
  status: IncomingReqStatus.Raw;
14
+ payerCanPay: boolean;
15
+ payerCanDecline: boolean;
14
16
  description?: string | null;
15
17
  requesterName?: string | null;
16
18
  requesterEmail?: string | null;
@@ -8,6 +8,8 @@ export const IncomingReqAttrs = core.serialization.object({
8
8
  amount: core.serialization.number(),
9
9
  currency: core.serialization.string(),
10
10
  status: IncomingReqStatus,
11
+ payerCanPay: core.serialization.boolean(),
12
+ payerCanDecline: core.serialization.boolean(),
11
13
  description: core.serialization.string().nullable(),
12
14
  requesterName: core.serialization.string().nullable(),
13
15
  requesterEmail: core.serialization.string().nullable(),
@@ -11,6 +11,8 @@ export declare namespace NewPayReqAttrs {
11
11
  amount: number;
12
12
  currency: string;
13
13
  status: NewPayReqStatus.Raw;
14
+ payerCanPay: boolean;
15
+ payerCanDecline: boolean;
14
16
  description?: string | null;
15
17
  requesterName?: string | null;
16
18
  requesterEmail?: string | null;
@@ -8,6 +8,8 @@ export const NewPayReqAttrs = core.serialization.object({
8
8
  amount: core.serialization.number(),
9
9
  currency: core.serialization.string(),
10
10
  status: NewPayReqStatus,
11
+ payerCanPay: core.serialization.boolean(),
12
+ payerCanDecline: core.serialization.boolean(),
11
13
  description: core.serialization.string().nullable(),
12
14
  requesterName: core.serialization.string().nullable(),
13
15
  requesterEmail: core.serialization.string().nullable(),
@@ -11,6 +11,8 @@ export declare namespace PayReqAttrs {
11
11
  amount: number;
12
12
  currency: string;
13
13
  status: PayReqStatus.Raw;
14
+ payerCanPay: boolean;
15
+ payerCanDecline: boolean;
14
16
  description?: string | null;
15
17
  requesterName?: string | null;
16
18
  requesterEmail?: string | null;
@@ -8,6 +8,8 @@ export const PayReqAttrs = core.serialization.object({
8
8
  amount: core.serialization.number(),
9
9
  currency: core.serialization.string(),
10
10
  status: PayReqStatus,
11
+ payerCanPay: core.serialization.boolean(),
12
+ payerCanDecline: core.serialization.boolean(),
11
13
  description: core.serialization.string().nullable(),
12
14
  requesterName: core.serialization.string().nullable(),
13
15
  requesterEmail: core.serialization.string().nullable(),
@@ -11,6 +11,8 @@ export declare namespace PayReqDetailAttrs {
11
11
  amount: number;
12
12
  currency: string;
13
13
  status: PayReqDetailStatus.Raw;
14
+ payerCanPay: boolean;
15
+ payerCanDecline: boolean;
14
16
  description?: string | null;
15
17
  requesterName?: string | null;
16
18
  requesterEmail?: string | null;
@@ -8,6 +8,8 @@ export const PayReqDetailAttrs = core.serialization.object({
8
8
  amount: core.serialization.number(),
9
9
  currency: core.serialization.string(),
10
10
  status: PayReqDetailStatus,
11
+ payerCanPay: core.serialization.boolean(),
12
+ payerCanDecline: core.serialization.boolean(),
11
13
  description: core.serialization.string().nullable(),
12
14
  requesterName: core.serialization.string().nullable(),
13
15
  requesterEmail: core.serialization.string().nullable(),
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const CreatePaymentsRequestDisableNotificationsItem = core.serialization.enum_(["recipient"]);