@naturalpay/sdk 1.6.5 → 1.6.6
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/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.ts +8 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js +3 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.ts +8 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js +3 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js +7 -0
- package/dist/cjs/api/resources/paymentRequests/types/NewPayReqRels.d.ts +2 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/paymentRequests/types/index.js +3 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.ts +10 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js +42 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.ts +11 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js +43 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js +39 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqRels.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqRels.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/index.js +3 -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/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.mts +8 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs +2 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.mts +8 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs +2 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs +4 -0
- package/dist/esm/api/resources/paymentRequests/types/NewPayReqRels.d.mts +2 -0
- package/dist/esm/api/resources/paymentRequests/types/index.d.mts +3 -0
- package/dist/esm/api/resources/paymentRequests/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.d.mts +10 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs +6 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.d.mts +11 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqRels.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqRels.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.d.mts +3 -0
- package/dist/esm/serialization/resources/paymentRequests/types/index.mjs +3 -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.6.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
46
|
+
"X-Fern-SDK-Version": "1.6.6",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.6",
|
|
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,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Payer agent, or null unless addressed by agent ID or agent handle.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePaymentRequestsResponseDataRelationshipsPayerAgent {
|
|
6
|
+
/** Related resource identifier. */
|
|
7
|
+
data: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Related resource identifier.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePaymentRequestsResponseDataRelationshipsPayerAgentData {
|
|
6
|
+
type: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType: {
|
|
2
|
+
readonly Agent: "agent";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = (typeof CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType)[keyof typeof CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType];
|
|
@@ -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.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = void 0;
|
|
5
|
+
exports.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = {
|
|
6
|
+
Agent: "agent",
|
|
7
|
+
};
|
|
@@ -4,4 +4,6 @@ export interface NewPayReqRels {
|
|
|
4
4
|
requesterParty: Natural.NewPayReqRequesterRel;
|
|
5
5
|
/** Resolved payer party, if the payer is known to Natural. */
|
|
6
6
|
payerParty: Natural.NewPayReqPayerRel;
|
|
7
|
+
/** Payer agent, or null unless addressed by agent ID or agent handle. */
|
|
8
|
+
payerAgent: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgent;
|
|
7
9
|
}
|
|
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.js";
|
|
|
31
31
|
export * from "./CreatePaymentRequestsRequestPayerPhone.js";
|
|
32
32
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.js";
|
|
33
33
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.js";
|
|
34
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js";
|
|
35
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js";
|
|
36
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js";
|
|
34
37
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.js";
|
|
35
38
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.js";
|
|
36
39
|
export * from "./DeclinedReq.js";
|
|
@@ -47,6 +47,9 @@ __exportStar(require("./CreatePaymentRequestsRequestPayerPartyId.js"), exports);
|
|
|
47
47
|
__exportStar(require("./CreatePaymentRequestsRequestPayerPhone.js"), exports);
|
|
48
48
|
__exportStar(require("./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.js"), exports);
|
|
49
49
|
__exportStar(require("./CreatePaymentRequestsResponseDataAttributesInitiatorParty.js"), exports);
|
|
50
|
+
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js"), exports);
|
|
51
|
+
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js"), exports);
|
|
52
|
+
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js"), exports);
|
|
50
53
|
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.js"), exports);
|
|
51
54
|
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.js"), exports);
|
|
52
55
|
__exportStar(require("./DeclinedReq.js"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgentData } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js";
|
|
5
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgent: core.serialization.ObjectSchema<serializers.CreatePaymentRequestsResponseDataRelationshipsPayerAgent.Raw, Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgent>;
|
|
6
|
+
export declare namespace CreatePaymentRequestsResponseDataRelationshipsPayerAgent {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data?: CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.Raw | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CreatePaymentRequestsResponseDataRelationshipsPayerAgent = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const CreatePaymentRequestsResponseDataRelationshipsPayerAgentData_js_1 = require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js");
|
|
40
|
+
exports.CreatePaymentRequestsResponseDataRelationshipsPayerAgent = core.serialization.object({
|
|
41
|
+
data: CreatePaymentRequestsResponseDataRelationshipsPayerAgentData_js_1.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.nullable(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js";
|
|
5
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgentData: core.serialization.ObjectSchema<serializers.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.Raw, Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData>;
|
|
6
|
+
export declare namespace CreatePaymentRequestsResponseDataRelationshipsPayerAgentData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.Raw;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType_js_1 = require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js");
|
|
40
|
+
exports.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData = core.serialization.object({
|
|
41
|
+
type: CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType_js_1.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType,
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -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 CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType: core.serialization.Schema<serializers.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.Raw, Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType>;
|
|
5
|
+
export declare namespace CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType {
|
|
6
|
+
type Raw = "agent";
|
|
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.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = core.serialization.enum_(["agent"]);
|
|
@@ -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 { CreatePaymentRequestsResponseDataRelationshipsPayerAgent } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js";
|
|
4
5
|
import { NewPayReqPayerRel } from "./NewPayReqPayerRel.js";
|
|
5
6
|
import { NewPayReqRequesterRel } from "./NewPayReqRequesterRel.js";
|
|
6
7
|
export declare const NewPayReqRels: core.serialization.ObjectSchema<serializers.NewPayReqRels.Raw, Natural.NewPayReqRels>;
|
|
@@ -8,5 +9,6 @@ export declare namespace NewPayReqRels {
|
|
|
8
9
|
interface Raw {
|
|
9
10
|
requesterParty: NewPayReqRequesterRel.Raw;
|
|
10
11
|
payerParty: NewPayReqPayerRel.Raw;
|
|
12
|
+
payerAgent: CreatePaymentRequestsResponseDataRelationshipsPayerAgent.Raw;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -36,9 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.NewPayReqRels = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const CreatePaymentRequestsResponseDataRelationshipsPayerAgent_js_1 = require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js");
|
|
39
40
|
const NewPayReqPayerRel_js_1 = require("./NewPayReqPayerRel.js");
|
|
40
41
|
const NewPayReqRequesterRel_js_1 = require("./NewPayReqRequesterRel.js");
|
|
41
42
|
exports.NewPayReqRels = core.serialization.object({
|
|
42
43
|
requesterParty: NewPayReqRequesterRel_js_1.NewPayReqRequesterRel,
|
|
43
44
|
payerParty: NewPayReqPayerRel_js_1.NewPayReqPayerRel,
|
|
45
|
+
payerAgent: CreatePaymentRequestsResponseDataRelationshipsPayerAgent_js_1.CreatePaymentRequestsResponseDataRelationshipsPayerAgent,
|
|
44
46
|
});
|
|
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.js";
|
|
|
31
31
|
export * from "./CreatePaymentRequestsRequestPayerPhone.js";
|
|
32
32
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.js";
|
|
33
33
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.js";
|
|
34
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js";
|
|
35
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js";
|
|
36
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js";
|
|
34
37
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.js";
|
|
35
38
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.js";
|
|
36
39
|
export * from "./DeclinedReq.js";
|
|
@@ -47,6 +47,9 @@ __exportStar(require("./CreatePaymentRequestsRequestPayerPartyId.js"), exports);
|
|
|
47
47
|
__exportStar(require("./CreatePaymentRequestsRequestPayerPhone.js"), exports);
|
|
48
48
|
__exportStar(require("./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.js"), exports);
|
|
49
49
|
__exportStar(require("./CreatePaymentRequestsResponseDataAttributesInitiatorParty.js"), exports);
|
|
50
|
+
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.js"), exports);
|
|
51
|
+
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.js"), exports);
|
|
52
|
+
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.js"), exports);
|
|
50
53
|
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.js"), exports);
|
|
51
54
|
__exportStar(require("./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.js"), exports);
|
|
52
55
|
__exportStar(require("./DeclinedReq.js"), exports);
|
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.6";
|
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.6",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.6",
|
|
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,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Payer agent, or null unless addressed by agent ID or agent handle.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePaymentRequestsResponseDataRelationshipsPayerAgent {
|
|
6
|
+
/** Related resource identifier. */
|
|
7
|
+
data: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Related resource identifier.
|
|
4
|
+
*/
|
|
5
|
+
export interface CreatePaymentRequestsResponseDataRelationshipsPayerAgentData {
|
|
6
|
+
type: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType: {
|
|
2
|
+
readonly Agent: "agent";
|
|
3
|
+
};
|
|
4
|
+
export type CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType = (typeof CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType)[keyof typeof CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType];
|
|
@@ -4,4 +4,6 @@ export interface NewPayReqRels {
|
|
|
4
4
|
requesterParty: Natural.NewPayReqRequesterRel;
|
|
5
5
|
/** Resolved payer party, if the payer is known to Natural. */
|
|
6
6
|
payerParty: Natural.NewPayReqPayerRel;
|
|
7
|
+
/** Payer agent, or null unless addressed by agent ID or agent handle. */
|
|
8
|
+
payerAgent: Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgent;
|
|
7
9
|
}
|
|
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.mjs";
|
|
|
31
31
|
export * from "./CreatePaymentRequestsRequestPayerPhone.mjs";
|
|
32
32
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.mjs";
|
|
33
33
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.mjs";
|
|
34
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
|
|
35
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
|
|
36
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
|
|
34
37
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.mjs";
|
|
35
38
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.mjs";
|
|
36
39
|
export * from "./DeclinedReq.mjs";
|
|
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.mjs";
|
|
|
31
31
|
export * from "./CreatePaymentRequestsRequestPayerPhone.mjs";
|
|
32
32
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.mjs";
|
|
33
33
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.mjs";
|
|
34
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
|
|
35
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
|
|
36
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
|
|
34
37
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.mjs";
|
|
35
38
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.mjs";
|
|
36
39
|
export * from "./DeclinedReq.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgentData } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
|
|
5
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgent: core.serialization.ObjectSchema<serializers.CreatePaymentRequestsResponseDataRelationshipsPayerAgent.Raw, Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgent>;
|
|
6
|
+
export declare namespace CreatePaymentRequestsResponseDataRelationshipsPayerAgent {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data?: CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.Raw | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgentData } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
|
|
4
|
+
export const CreatePaymentRequestsResponseDataRelationshipsPayerAgent = core.serialization.object({
|
|
5
|
+
data: CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.nullable(),
|
|
6
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
|
|
5
|
+
export declare const CreatePaymentRequestsResponseDataRelationshipsPayerAgentData: core.serialization.ObjectSchema<serializers.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.Raw, Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentData>;
|
|
6
|
+
export declare namespace CreatePaymentRequestsResponseDataRelationshipsPayerAgentData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.Raw;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
|
|
4
|
+
export const CreatePaymentRequestsResponseDataRelationshipsPayerAgentData = core.serialization.object({
|
|
5
|
+
type: CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType,
|
|
6
|
+
id: core.serialization.string(),
|
|
7
|
+
});
|
|
@@ -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 CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType: core.serialization.Schema<serializers.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.Raw, Natural.CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType>;
|
|
5
|
+
export declare namespace CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType {
|
|
6
|
+
type Raw = "agent";
|
|
7
|
+
}
|
|
@@ -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 { CreatePaymentRequestsResponseDataRelationshipsPayerAgent } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
|
|
4
5
|
import { NewPayReqPayerRel } from "./NewPayReqPayerRel.mjs";
|
|
5
6
|
import { NewPayReqRequesterRel } from "./NewPayReqRequesterRel.mjs";
|
|
6
7
|
export declare const NewPayReqRels: core.serialization.ObjectSchema<serializers.NewPayReqRels.Raw, Natural.NewPayReqRels>;
|
|
@@ -8,5 +9,6 @@ export declare namespace NewPayReqRels {
|
|
|
8
9
|
interface Raw {
|
|
9
10
|
requesterParty: NewPayReqRequesterRel.Raw;
|
|
10
11
|
payerParty: NewPayReqPayerRel.Raw;
|
|
12
|
+
payerAgent: CreatePaymentRequestsResponseDataRelationshipsPayerAgent.Raw;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { CreatePaymentRequestsResponseDataRelationshipsPayerAgent } from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
|
|
3
4
|
import { NewPayReqPayerRel } from "./NewPayReqPayerRel.mjs";
|
|
4
5
|
import { NewPayReqRequesterRel } from "./NewPayReqRequesterRel.mjs";
|
|
5
6
|
export const NewPayReqRels = core.serialization.object({
|
|
6
7
|
requesterParty: NewPayReqRequesterRel,
|
|
7
8
|
payerParty: NewPayReqPayerRel,
|
|
9
|
+
payerAgent: CreatePaymentRequestsResponseDataRelationshipsPayerAgent,
|
|
8
10
|
});
|
|
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.mjs";
|
|
|
31
31
|
export * from "./CreatePaymentRequestsRequestPayerPhone.mjs";
|
|
32
32
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.mjs";
|
|
33
33
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.mjs";
|
|
34
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
|
|
35
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
|
|
36
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
|
|
34
37
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.mjs";
|
|
35
38
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.mjs";
|
|
36
39
|
export * from "./DeclinedReq.mjs";
|
|
@@ -31,6 +31,9 @@ export * from "./CreatePaymentRequestsRequestPayerPartyId.mjs";
|
|
|
31
31
|
export * from "./CreatePaymentRequestsRequestPayerPhone.mjs";
|
|
32
32
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorAgent.mjs";
|
|
33
33
|
export * from "./CreatePaymentRequestsResponseDataAttributesInitiatorParty.mjs";
|
|
34
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgent.mjs";
|
|
35
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentData.mjs";
|
|
36
|
+
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerAgentDataType.mjs";
|
|
34
37
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyData.mjs";
|
|
35
38
|
export * from "./CreatePaymentRequestsResponseDataRelationshipsPayerPartyDataType.mjs";
|
|
36
39
|
export * from "./DeclinedReq.mjs";
|
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.6";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.6";
|