@naturalpay/sdk 1.0.1 → 1.0.2
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/CancelPaymentRequestsResponseDataAttributes.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/IncomingReqAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/NewPayReqAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/PayReqAttrs.d.ts +4 -0
- package/dist/cjs/api/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +4 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/DeclinedReqAttrs.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/IncomingReqAttrs.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/NewPayReqAttrs.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqAttrs.js +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.ts +2 -0
- package/dist/cjs/serialization/resources/paymentRequests/types/PayReqDetailAttrs.js +2 -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/CancelPaymentRequestsResponseDataAttributes.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/IncomingReqAttrs.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/NewPayReqAttrs.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/PayReqAttrs.d.mts +4 -0
- package/dist/esm/api/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +4 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/CancelPaymentRequestsResponseDataAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/DeclinedReqAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/IncomingReqAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/NewPayReqAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqAttrs.mjs +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.d.mts +2 -0
- package/dist/esm/serialization/resources/paymentRequests/types/PayReqDetailAttrs.mjs +2 -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.0.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.0.
|
|
46
|
+
"X-Fern-SDK-Version": "1.0.2",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.0.2",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Agent-ID": options === null || options === void 0 ? void 0 : options.agentId,
|
|
@@ -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. */
|
|
@@ -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. */
|
|
@@ -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;
|
|
@@ -44,6 +44,8 @@ exports.CancelPaymentRequestsResponseDataAttributes = core.serialization.object(
|
|
|
44
44
|
amount: core.serialization.number(),
|
|
45
45
|
currency: core.serialization.string(),
|
|
46
46
|
status: CancelPaymentRequestsResponseDataAttributesStatus_js_1.CancelPaymentRequestsResponseDataAttributesStatus,
|
|
47
|
+
payerCanPay: core.serialization.boolean(),
|
|
48
|
+
payerCanDecline: core.serialization.boolean(),
|
|
47
49
|
description: core.serialization.string().nullable(),
|
|
48
50
|
requesterName: core.serialization.string().nullable(),
|
|
49
51
|
requesterEmail: core.serialization.string().nullable(),
|
|
@@ -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;
|
|
@@ -44,6 +44,8 @@ exports.DeclinedReqAttrs = core.serialization.object({
|
|
|
44
44
|
amount: core.serialization.number(),
|
|
45
45
|
currency: core.serialization.string(),
|
|
46
46
|
status: DeclinedReqStatus_js_1.DeclinedReqStatus,
|
|
47
|
+
payerCanPay: core.serialization.boolean(),
|
|
48
|
+
payerCanDecline: core.serialization.boolean(),
|
|
47
49
|
description: core.serialization.string().nullable(),
|
|
48
50
|
requesterName: core.serialization.string().nullable(),
|
|
49
51
|
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;
|
|
@@ -44,6 +44,8 @@ exports.IncomingReqAttrs = core.serialization.object({
|
|
|
44
44
|
amount: core.serialization.number(),
|
|
45
45
|
currency: core.serialization.string(),
|
|
46
46
|
status: IncomingReqStatus_js_1.IncomingReqStatus,
|
|
47
|
+
payerCanPay: core.serialization.boolean(),
|
|
48
|
+
payerCanDecline: core.serialization.boolean(),
|
|
47
49
|
description: core.serialization.string().nullable(),
|
|
48
50
|
requesterName: core.serialization.string().nullable(),
|
|
49
51
|
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;
|
|
@@ -44,6 +44,8 @@ exports.NewPayReqAttrs = core.serialization.object({
|
|
|
44
44
|
amount: core.serialization.number(),
|
|
45
45
|
currency: core.serialization.string(),
|
|
46
46
|
status: NewPayReqStatus_js_1.NewPayReqStatus,
|
|
47
|
+
payerCanPay: core.serialization.boolean(),
|
|
48
|
+
payerCanDecline: core.serialization.boolean(),
|
|
47
49
|
description: core.serialization.string().nullable(),
|
|
48
50
|
requesterName: core.serialization.string().nullable(),
|
|
49
51
|
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;
|
|
@@ -44,6 +44,8 @@ exports.PayReqAttrs = core.serialization.object({
|
|
|
44
44
|
amount: core.serialization.number(),
|
|
45
45
|
currency: core.serialization.string(),
|
|
46
46
|
status: PayReqStatus_js_1.PayReqStatus,
|
|
47
|
+
payerCanPay: core.serialization.boolean(),
|
|
48
|
+
payerCanDecline: core.serialization.boolean(),
|
|
47
49
|
description: core.serialization.string().nullable(),
|
|
48
50
|
requesterName: core.serialization.string().nullable(),
|
|
49
51
|
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;
|
|
@@ -44,6 +44,8 @@ exports.PayReqDetailAttrs = core.serialization.object({
|
|
|
44
44
|
amount: core.serialization.number(),
|
|
45
45
|
currency: core.serialization.string(),
|
|
46
46
|
status: PayReqDetailStatus_js_1.PayReqDetailStatus,
|
|
47
|
+
payerCanPay: core.serialization.boolean(),
|
|
48
|
+
payerCanDecline: core.serialization.boolean(),
|
|
47
49
|
description: core.serialization.string().nullable(),
|
|
48
50
|
requesterName: core.serialization.string().nullable(),
|
|
49
51
|
requesterEmail: core.serialization.string().nullable(),
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.2";
|
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.0.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.0.
|
|
9
|
+
"X-Fern-SDK-Version": "1.0.2",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.0.2",
|
|
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,
|
|
@@ -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. */
|
|
@@ -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. */
|
|
@@ -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(),
|
|
@@ -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(),
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.2";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.2";
|