@naturalpay/sdk 1.6.38 → 1.6.39

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.6.38",
47
- "User-Agent": "@naturalpay/sdk/1.6.38",
46
+ "X-Fern-SDK-Version": "1.6.39",
47
+ "User-Agent": "@naturalpay/sdk/1.6.39",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -129,7 +129,7 @@ export declare class ExternalPartiesClient {
129
129
  * @example
130
130
  * await client.externalParties.correctAddress({
131
131
  * externalPartyId: "externalPartyId",
132
- * expectedAddressVersion: 0,
132
+ * expectedAddressVersion: 1,
133
133
  * address: {
134
134
  * line1: "456 Market St",
135
135
  * city: "San Francisco",
@@ -427,7 +427,7 @@ class ExternalPartiesClient {
427
427
  * @example
428
428
  * await client.externalParties.correctAddress({
429
429
  * externalPartyId: "externalPartyId",
430
- * expectedAddressVersion: 0,
430
+ * expectedAddressVersion: 1,
431
431
  * address: {
432
432
  * line1: "456 Market St",
433
433
  * city: "San Francisco",
@@ -3,7 +3,7 @@ import type * as Natural from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * externalPartyId: "externalPartyId",
6
- * expectedAddressVersion: 0,
6
+ * expectedAddressVersion: 1,
7
7
  * address: {
8
8
  * line1: "456 Market St",
9
9
  * city: "San Francisco",
@@ -32,6 +32,8 @@ export interface NewPaymentParams {
32
32
  tags?: Record<string, string>;
33
33
  /** Source wallet ID (wal_*). Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
34
34
  walletId?: string;
35
+ /** When true, a counterparty who signs up through this payment's claim link goes straight to their dashboard instead of the account setup guide. Defaults to false. */
36
+ skipRecipientSetup?: boolean;
35
37
  /** Deprecated. Previously skipped our notification to the counterparty; Natural now always sends its own notifications and this field is accepted but ignored. The returned link is unaffected. */
36
38
  disableNotifications?: Natural.CreatePaymentsRequestDisableNotificationsItem[];
37
39
  }
@@ -14,6 +14,7 @@ export declare namespace NewPaymentParams {
14
14
  description?: string | null;
15
15
  tags?: Record<string, string> | null;
16
16
  walletId?: string | null;
17
+ skipRecipientSetup?: boolean | null;
17
18
  disableNotifications?: CreatePaymentsRequestDisableNotificationsItem.Raw[] | null;
18
19
  }
19
20
  }
@@ -47,5 +47,6 @@ exports.NewPaymentParams = core.serialization.object({
47
47
  description: core.serialization.string().optional(),
48
48
  tags: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
49
49
  walletId: core.serialization.string().optional(),
50
+ skipRecipientSetup: core.serialization.boolean().optional(),
50
51
  disableNotifications: core.serialization.list(CreatePaymentsRequestDisableNotificationsItem_js_1.CreatePaymentsRequestDisableNotificationsItem).optional(),
51
52
  });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.38";
1
+ export declare const SDK_VERSION = "1.6.39";
@@ -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.6.38";
4
+ exports.SDK_VERSION = "1.6.39";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@naturalpay/sdk",
9
- "X-Fern-SDK-Version": "1.6.38",
10
- "User-Agent": "@naturalpay/sdk/1.6.38",
9
+ "X-Fern-SDK-Version": "1.6.39",
10
+ "User-Agent": "@naturalpay/sdk/1.6.39",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -129,7 +129,7 @@ export declare class ExternalPartiesClient {
129
129
  * @example
130
130
  * await client.externalParties.correctAddress({
131
131
  * externalPartyId: "externalPartyId",
132
- * expectedAddressVersion: 0,
132
+ * expectedAddressVersion: 1,
133
133
  * address: {
134
134
  * line1: "456 Market St",
135
135
  * city: "San Francisco",
@@ -391,7 +391,7 @@ export class ExternalPartiesClient {
391
391
  * @example
392
392
  * await client.externalParties.correctAddress({
393
393
  * externalPartyId: "externalPartyId",
394
- * expectedAddressVersion: 0,
394
+ * expectedAddressVersion: 1,
395
395
  * address: {
396
396
  * line1: "456 Market St",
397
397
  * city: "San Francisco",
@@ -3,7 +3,7 @@ import type * as Natural from "../../../../index.mjs";
3
3
  * @example
4
4
  * {
5
5
  * externalPartyId: "externalPartyId",
6
- * expectedAddressVersion: 0,
6
+ * expectedAddressVersion: 1,
7
7
  * address: {
8
8
  * line1: "456 Market St",
9
9
  * city: "San Francisco",
@@ -32,6 +32,8 @@ export interface NewPaymentParams {
32
32
  tags?: Record<string, string>;
33
33
  /** Source wallet ID (wal_*). Omit to use the party default for user or party API calls, or the agent default for the current customer connection when acting through a connected agent. Owned agents use their own agent default. */
34
34
  walletId?: string;
35
+ /** When true, a counterparty who signs up through this payment's claim link goes straight to their dashboard instead of the account setup guide. Defaults to false. */
36
+ skipRecipientSetup?: boolean;
35
37
  /** Deprecated. Previously skipped our notification to the counterparty; Natural now always sends its own notifications and this field is accepted but ignored. The returned link is unaffected. */
36
38
  disableNotifications?: Natural.CreatePaymentsRequestDisableNotificationsItem[];
37
39
  }
@@ -14,6 +14,7 @@ export declare namespace NewPaymentParams {
14
14
  description?: string | null;
15
15
  tags?: Record<string, string> | null;
16
16
  walletId?: string | null;
17
+ skipRecipientSetup?: boolean | null;
17
18
  disableNotifications?: CreatePaymentsRequestDisableNotificationsItem.Raw[] | null;
18
19
  }
19
20
  }
@@ -11,5 +11,6 @@ export const NewPaymentParams = core.serialization.object({
11
11
  description: core.serialization.string().optional(),
12
12
  tags: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
13
13
  walletId: core.serialization.string().optional(),
14
+ skipRecipientSetup: core.serialization.boolean().optional(),
14
15
  disableNotifications: core.serialization.list(CreatePaymentsRequestDisableNotificationsItem).optional(),
15
16
  });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.38";
1
+ export declare const SDK_VERSION = "1.6.39";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.38";
1
+ export const SDK_VERSION = "1.6.39";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.38",
3
+ "version": "1.6.39",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1963,7 +1963,7 @@ Update an external party's address and resynchronize its bank accounts
1963
1963
  ```typescript
1964
1964
  await client.externalParties.correctAddress({
1965
1965
  externalPartyId: "externalPartyId",
1966
- expectedAddressVersion: 0,
1966
+ expectedAddressVersion: 1,
1967
1967
  address: {
1968
1968
  line1: "456 Market St",
1969
1969
  city: "San Francisco",