@naturalpay/sdk 1.6.52 → 1.6.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/wallets/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/wallets/client/Client.js +1 -1
- package/dist/cjs/api/resources/wallets/client/requests/ListAgentsWalletsRequest.d.ts +1 -1
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.js +1 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/wallets/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/wallets/client/Client.mjs +1 -1
- package/dist/esm/api/resources/wallets/client/requests/ListAgentsWalletsRequest.d.mts +1 -1
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.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.53",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.53",
|
|
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,
|
|
@@ -4,6 +4,8 @@ export interface ListCardsExternalAccountsResponseDataItemAttributes {
|
|
|
4
4
|
brand: Natural.ListCardsExternalAccountsResponseDataItemAttributesBrand;
|
|
5
5
|
/** Last four digits of the card number. */
|
|
6
6
|
lastFour: string;
|
|
7
|
+
/** Name the customer gave the card, e.g. "Work Amex". Defaults to "<Brand> card ending <last4>". */
|
|
8
|
+
nickname: string;
|
|
7
9
|
/** The card's billing address on file, for filling a merchant's checkout (the ZIP drives the bank's AVS check). */
|
|
8
10
|
billingAddress: Natural.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress | null;
|
|
9
11
|
/** Lifecycle status of the external account. */
|
|
@@ -4,6 +4,8 @@ export interface RemoveCardExternalAccountsResponseDataAttributes {
|
|
|
4
4
|
brand: Natural.RemoveCardExternalAccountsResponseDataAttributesBrand;
|
|
5
5
|
/** Last four digits of the card number. */
|
|
6
6
|
lastFour: string;
|
|
7
|
+
/** Name the customer gave the card, e.g. "Work Amex". Defaults to "<Brand> card ending <last4>". */
|
|
8
|
+
nickname: string;
|
|
7
9
|
/** The card's billing address on file, for filling a merchant's checkout (the ZIP drives the bank's AVS check). */
|
|
8
10
|
billingAddress: Natural.RemoveCardExternalAccountsResponseDataAttributesBillingAddress | null;
|
|
9
11
|
/** Lifecycle status of the external account. */
|
|
@@ -221,7 +221,7 @@ export declare class WalletsClient {
|
|
|
221
221
|
unfreeze(request: Natural.UnfreezeWalletsRequest, requestOptions?: WalletsClient.RequestOptions): core.HttpResponsePromise<Natural.UnfreezeWalletsResponse>;
|
|
222
222
|
private __unfreeze;
|
|
223
223
|
/**
|
|
224
|
-
* List owned and customer-connected agents granted access to
|
|
224
|
+
* List owned and customer-connected agents granted access to one of your wallets. Connected agents include customer connection limits and omit private metadata from the agent owner.
|
|
225
225
|
*
|
|
226
226
|
* @param {Natural.ListAgentsWalletsRequest} request
|
|
227
227
|
* @param {WalletsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -785,7 +785,7 @@ class WalletsClient {
|
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
/**
|
|
788
|
-
* List owned and customer-connected agents granted access to
|
|
788
|
+
* List owned and customer-connected agents granted access to one of your wallets. Connected agents include customer connection limits and omit private metadata from the agent owner.
|
|
789
789
|
*
|
|
790
790
|
* @param {Natural.ListAgentsWalletsRequest} request
|
|
791
791
|
* @param {WalletsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface ListAgentsWalletsRequest {
|
|
8
|
-
/** Wallet ID (wal_*). */
|
|
8
|
+
/** Wallet ID (wal_*) of a wallet your party owns. Any other wallet, including a connected customer's, returns 404. */
|
|
9
9
|
walletId: string;
|
|
10
10
|
/** Maximum results per page. */
|
|
11
11
|
limit?: number;
|
|
@@ -9,6 +9,7 @@ export declare namespace ListCardsExternalAccountsResponseDataItemAttributes {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand.Raw;
|
|
11
11
|
lastFour: string;
|
|
12
|
+
nickname: string;
|
|
12
13
|
billingAddress?: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.Raw | null;
|
|
13
14
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus.Raw;
|
|
14
15
|
createdAt: string;
|
|
@@ -42,6 +42,7 @@ const ListCardsExternalAccountsResponseDataItemAttributesStatus_js_1 = require("
|
|
|
42
42
|
exports.ListCardsExternalAccountsResponseDataItemAttributes = core.serialization.object({
|
|
43
43
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand_js_1.ListCardsExternalAccountsResponseDataItemAttributesBrand,
|
|
44
44
|
lastFour: core.serialization.string(),
|
|
45
|
+
nickname: core.serialization.string(),
|
|
45
46
|
billingAddress: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress_js_1.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.nullable(),
|
|
46
47
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus_js_1.ListCardsExternalAccountsResponseDataItemAttributesStatus,
|
|
47
48
|
createdAt: core.serialization.date(),
|
|
@@ -9,6 +9,7 @@ export declare namespace RemoveCardExternalAccountsResponseDataAttributes {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
brand: RemoveCardExternalAccountsResponseDataAttributesBrand.Raw;
|
|
11
11
|
lastFour: string;
|
|
12
|
+
nickname: string;
|
|
12
13
|
billingAddress?: RemoveCardExternalAccountsResponseDataAttributesBillingAddress.Raw | null;
|
|
13
14
|
status: RemoveCardExternalAccountsResponseDataAttributesStatus.Raw;
|
|
14
15
|
createdAt: string;
|
|
@@ -42,6 +42,7 @@ const RemoveCardExternalAccountsResponseDataAttributesStatus_js_1 = require("./R
|
|
|
42
42
|
exports.RemoveCardExternalAccountsResponseDataAttributes = core.serialization.object({
|
|
43
43
|
brand: RemoveCardExternalAccountsResponseDataAttributesBrand_js_1.RemoveCardExternalAccountsResponseDataAttributesBrand,
|
|
44
44
|
lastFour: core.serialization.string(),
|
|
45
|
+
nickname: core.serialization.string(),
|
|
45
46
|
billingAddress: RemoveCardExternalAccountsResponseDataAttributesBillingAddress_js_1.RemoveCardExternalAccountsResponseDataAttributesBillingAddress.nullable(),
|
|
46
47
|
status: RemoveCardExternalAccountsResponseDataAttributesStatus_js_1.RemoveCardExternalAccountsResponseDataAttributesStatus,
|
|
47
48
|
createdAt: core.serialization.date(),
|
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.53";
|
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.53",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.53",
|
|
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,
|
|
@@ -4,6 +4,8 @@ export interface ListCardsExternalAccountsResponseDataItemAttributes {
|
|
|
4
4
|
brand: Natural.ListCardsExternalAccountsResponseDataItemAttributesBrand;
|
|
5
5
|
/** Last four digits of the card number. */
|
|
6
6
|
lastFour: string;
|
|
7
|
+
/** Name the customer gave the card, e.g. "Work Amex". Defaults to "<Brand> card ending <last4>". */
|
|
8
|
+
nickname: string;
|
|
7
9
|
/** The card's billing address on file, for filling a merchant's checkout (the ZIP drives the bank's AVS check). */
|
|
8
10
|
billingAddress: Natural.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress | null;
|
|
9
11
|
/** Lifecycle status of the external account. */
|
|
@@ -4,6 +4,8 @@ export interface RemoveCardExternalAccountsResponseDataAttributes {
|
|
|
4
4
|
brand: Natural.RemoveCardExternalAccountsResponseDataAttributesBrand;
|
|
5
5
|
/** Last four digits of the card number. */
|
|
6
6
|
lastFour: string;
|
|
7
|
+
/** Name the customer gave the card, e.g. "Work Amex". Defaults to "<Brand> card ending <last4>". */
|
|
8
|
+
nickname: string;
|
|
7
9
|
/** The card's billing address on file, for filling a merchant's checkout (the ZIP drives the bank's AVS check). */
|
|
8
10
|
billingAddress: Natural.RemoveCardExternalAccountsResponseDataAttributesBillingAddress | null;
|
|
9
11
|
/** Lifecycle status of the external account. */
|
|
@@ -221,7 +221,7 @@ export declare class WalletsClient {
|
|
|
221
221
|
unfreeze(request: Natural.UnfreezeWalletsRequest, requestOptions?: WalletsClient.RequestOptions): core.HttpResponsePromise<Natural.UnfreezeWalletsResponse>;
|
|
222
222
|
private __unfreeze;
|
|
223
223
|
/**
|
|
224
|
-
* List owned and customer-connected agents granted access to
|
|
224
|
+
* List owned and customer-connected agents granted access to one of your wallets. Connected agents include customer connection limits and omit private metadata from the agent owner.
|
|
225
225
|
*
|
|
226
226
|
* @param {Natural.ListAgentsWalletsRequest} request
|
|
227
227
|
* @param {WalletsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -749,7 +749,7 @@ export class WalletsClient {
|
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
751
|
/**
|
|
752
|
-
* List owned and customer-connected agents granted access to
|
|
752
|
+
* List owned and customer-connected agents granted access to one of your wallets. Connected agents include customer connection limits and omit private metadata from the agent owner.
|
|
753
753
|
*
|
|
754
754
|
* @param {Natural.ListAgentsWalletsRequest} request
|
|
755
755
|
* @param {WalletsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* }
|
|
6
6
|
*/
|
|
7
7
|
export interface ListAgentsWalletsRequest {
|
|
8
|
-
/** Wallet ID (wal_*). */
|
|
8
|
+
/** Wallet ID (wal_*) of a wallet your party owns. Any other wallet, including a connected customer's, returns 404. */
|
|
9
9
|
walletId: string;
|
|
10
10
|
/** Maximum results per page. */
|
|
11
11
|
limit?: number;
|
|
@@ -9,6 +9,7 @@ export declare namespace ListCardsExternalAccountsResponseDataItemAttributes {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand.Raw;
|
|
11
11
|
lastFour: string;
|
|
12
|
+
nickname: string;
|
|
12
13
|
billingAddress?: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.Raw | null;
|
|
13
14
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus.Raw;
|
|
14
15
|
createdAt: string;
|
|
@@ -6,6 +6,7 @@ import { ListCardsExternalAccountsResponseDataItemAttributesStatus } from "./Lis
|
|
|
6
6
|
export const ListCardsExternalAccountsResponseDataItemAttributes = core.serialization.object({
|
|
7
7
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand,
|
|
8
8
|
lastFour: core.serialization.string(),
|
|
9
|
+
nickname: core.serialization.string(),
|
|
9
10
|
billingAddress: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.nullable(),
|
|
10
11
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus,
|
|
11
12
|
createdAt: core.serialization.date(),
|
|
@@ -9,6 +9,7 @@ export declare namespace RemoveCardExternalAccountsResponseDataAttributes {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
brand: RemoveCardExternalAccountsResponseDataAttributesBrand.Raw;
|
|
11
11
|
lastFour: string;
|
|
12
|
+
nickname: string;
|
|
12
13
|
billingAddress?: RemoveCardExternalAccountsResponseDataAttributesBillingAddress.Raw | null;
|
|
13
14
|
status: RemoveCardExternalAccountsResponseDataAttributesStatus.Raw;
|
|
14
15
|
createdAt: string;
|
|
@@ -6,6 +6,7 @@ import { RemoveCardExternalAccountsResponseDataAttributesStatus } from "./Remove
|
|
|
6
6
|
export const RemoveCardExternalAccountsResponseDataAttributes = core.serialization.object({
|
|
7
7
|
brand: RemoveCardExternalAccountsResponseDataAttributesBrand,
|
|
8
8
|
lastFour: core.serialization.string(),
|
|
9
|
+
nickname: core.serialization.string(),
|
|
9
10
|
billingAddress: RemoveCardExternalAccountsResponseDataAttributesBillingAddress.nullable(),
|
|
10
11
|
status: RemoveCardExternalAccountsResponseDataAttributesStatus,
|
|
11
12
|
createdAt: core.serialization.date(),
|
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.53";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.53";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -7559,7 +7559,7 @@ await client.wallets.unfreeze({
|
|
|
7559
7559
|
<dl>
|
|
7560
7560
|
<dd>
|
|
7561
7561
|
|
|
7562
|
-
List owned and customer-connected agents granted access to
|
|
7562
|
+
List owned and customer-connected agents granted access to one of your wallets. Connected agents include customer connection limits and omit private metadata from the agent owner.
|
|
7563
7563
|
</dd>
|
|
7564
7564
|
</dl>
|
|
7565
7565
|
</dd>
|