@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/externalParties/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/externalParties/client/Client.js +1 -1
- package/dist/cjs/api/resources/externalParties/client/requests/CorrectAddressExternalPartiesRequest.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/requests/NewPaymentParams.d.ts +2 -0
- package/dist/cjs/serialization/resources/payments/client/requests/NewPaymentParams.d.ts +1 -0
- package/dist/cjs/serialization/resources/payments/client/requests/NewPaymentParams.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/externalParties/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/externalParties/client/Client.mjs +1 -1
- package/dist/esm/api/resources/externalParties/client/requests/CorrectAddressExternalPartiesRequest.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/requests/NewPaymentParams.d.mts +2 -0
- package/dist/esm/serialization/resources/payments/client/requests/NewPaymentParams.d.mts +1 -0
- package/dist/esm/serialization/resources/payments/client/requests/NewPaymentParams.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.6.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
46
|
+
"X-Fern-SDK-Version": "1.6.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:
|
|
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:
|
|
430
|
+
* expectedAddressVersion: 1,
|
|
431
431
|
* address: {
|
|
432
432
|
* line1: "456 Market St",
|
|
433
433
|
* 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
|
});
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.39";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.6.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
9
|
+
"X-Fern-SDK-Version": "1.6.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:
|
|
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:
|
|
394
|
+
* expectedAddressVersion: 1,
|
|
395
395
|
* address: {
|
|
396
396
|
* line1: "456 Market St",
|
|
397
397
|
* 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
|
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.39";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.39";
|
package/package.json
CHANGED
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:
|
|
1966
|
+
expectedAddressVersion: 1,
|
|
1967
1967
|
address: {
|
|
1968
1968
|
line1: "456 Market St",
|
|
1969
1969
|
city: "San Francisco",
|