@naturalpay/sdk 1.6.45 → 1.6.47
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +31 -26
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.ts +9 -0
- package/dist/cjs/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.js +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/merchantReports/client/Client.d.ts +57 -0
- package/dist/cjs/api/resources/merchantReports/client/Client.js +177 -0
- package/dist/cjs/api/resources/merchantReports/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/merchantReports/client/index.js +17 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +36 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.js +3 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/merchantReports/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/merchantReports/exports.d.ts +2 -0
- package/dist/cjs/api/resources/merchantReports/exports.js +21 -0
- package/dist/cjs/api/resources/merchantReports/index.d.ts +2 -0
- package/dist/cjs/api/resources/merchantReports/index.js +18 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.ts +19 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.js +3 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +10 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +13 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponse.js +3 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +8 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.js +3 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +10 -0
- package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +13 -0
- package/dist/cjs/api/resources/merchantReports/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/merchantReports/types/index.js +21 -0
- package/dist/cjs/api/resources/payments/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/payments/client/Client.js +1 -1
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.js +2 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.ts +14 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.js +46 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.js +1 -0
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/merchantReports/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/merchantReports/client/index.js +17 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +17 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.js +49 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/merchantReports/client/requests/index.js +5 -0
- package/dist/cjs/serialization/resources/merchantReports/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/merchantReports/index.js +18 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.ts +15 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.js +47 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +7 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +46 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts +10 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.js +42 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +13 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.js +45 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +7 -0
- package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +46 -0
- package/dist/cjs/serialization/resources/merchantReports/types/index.d.ts +5 -0
- package/dist/cjs/serialization/resources/merchantReports/types/index.js +21 -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/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.mts +9 -0
- package/dist/esm/api/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/externalAccounts/types/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/merchantReports/client/Client.d.mts +57 -0
- package/dist/esm/api/resources/merchantReports/client/Client.mjs +140 -0
- package/dist/esm/api/resources/merchantReports/client/index.d.mts +1 -0
- package/dist/esm/api/resources/merchantReports/client/index.mjs +1 -0
- package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +36 -0
- package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/merchantReports/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/merchantReports/exports.d.mts +2 -0
- package/dist/esm/api/resources/merchantReports/exports.mjs +3 -0
- package/dist/esm/api/resources/merchantReports/index.d.mts +2 -0
- package/dist/esm/api/resources/merchantReports/index.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts +19 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +10 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +10 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts +4 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponse.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +8 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs +2 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +10 -0
- package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +10 -0
- package/dist/esm/api/resources/merchantReports/types/index.d.mts +5 -0
- package/dist/esm/api/resources/merchantReports/types/index.mjs +5 -0
- package/dist/esm/api/resources/payments/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/payments/client/Client.mjs +1 -1
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributes.mjs +2 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.d.mts +14 -0
- package/dist/esm/serialization/resources/externalAccounts/types/ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs +10 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/merchantReports/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/merchantReports/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +17 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.mjs +13 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/merchantReports/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/resources/merchantReports/index.d.mts +2 -0
- package/dist/esm/serialization/resources/merchantReports/index.mjs +2 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts +15 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.mjs +11 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +7 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +10 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts +10 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.mjs +6 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +13 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs +9 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +7 -0
- package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +10 -0
- package/dist/esm/serialization/resources/merchantReports/types/index.d.mts +5 -0
- package/dist/esm/serialization/resources/merchantReports/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +80 -1
package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** What stopped the payment. host_not_allowed: the card request went to a host you couldn't put in allowedHosts. proxy_error: the proxy answered an error (put its code in proxyErrorCode). card_refused: the merchant or processor refused the card. three_ds_required: a 3DS challenge you couldn't complete. bot_wall: a CAPTCHA or bot check kept you from the card form. other: anything else; say what in notes. */
|
|
3
|
+
export const CreateMerchantReportsResponseDataOutcome = {
|
|
4
|
+
HostNotAllowed: "host_not_allowed",
|
|
5
|
+
ProxyError: "proxy_error",
|
|
6
|
+
CardRefused: "card_refused",
|
|
7
|
+
ThreeDsRequired: "three_ds_required",
|
|
8
|
+
BotWall: "bot_wall",
|
|
9
|
+
Other: "other",
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
@@ -105,7 +105,7 @@ export declare class PaymentsClient {
|
|
|
105
105
|
get(request: Natural.GetPaymentsRequest, requestOptions?: PaymentsClient.RequestOptions): core.HttpResponsePromise<Natural.PaymentDetail>;
|
|
106
106
|
private __get;
|
|
107
107
|
/**
|
|
108
|
-
* Cancel a payment before the recipient
|
|
108
|
+
* Cancel a pending payment claim before the recipient claims it
|
|
109
109
|
*
|
|
110
110
|
* @param {Natural.CancelPaymentsRequest} request
|
|
111
111
|
* @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -367,7 +367,7 @@ export class PaymentsClient {
|
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
|
-
* Cancel a payment before the recipient
|
|
370
|
+
* Cancel a pending payment claim before the recipient claims it
|
|
371
371
|
*
|
|
372
372
|
* @param {Natural.CancelPaymentsRequest} request
|
|
373
373
|
* @param {PaymentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -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 { ListCardsExternalAccountsResponseDataItemAttributesBillingAddress } from "./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs";
|
|
4
5
|
import { ListCardsExternalAccountsResponseDataItemAttributesBrand } from "./ListCardsExternalAccountsResponseDataItemAttributesBrand.mjs";
|
|
5
6
|
import { ListCardsExternalAccountsResponseDataItemAttributesStatus } from "./ListCardsExternalAccountsResponseDataItemAttributesStatus.mjs";
|
|
6
7
|
export declare const ListCardsExternalAccountsResponseDataItemAttributes: core.serialization.ObjectSchema<serializers.ListCardsExternalAccountsResponseDataItemAttributes.Raw, Natural.ListCardsExternalAccountsResponseDataItemAttributes>;
|
|
@@ -8,6 +9,7 @@ export declare namespace ListCardsExternalAccountsResponseDataItemAttributes {
|
|
|
8
9
|
interface Raw {
|
|
9
10
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand.Raw;
|
|
10
11
|
lastFour: string;
|
|
12
|
+
billingAddress?: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.Raw | null;
|
|
11
13
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus.Raw;
|
|
12
14
|
createdAt: string;
|
|
13
15
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { ListCardsExternalAccountsResponseDataItemAttributesBillingAddress } from "./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs";
|
|
3
4
|
import { ListCardsExternalAccountsResponseDataItemAttributesBrand } from "./ListCardsExternalAccountsResponseDataItemAttributesBrand.mjs";
|
|
4
5
|
import { ListCardsExternalAccountsResponseDataItemAttributesStatus } from "./ListCardsExternalAccountsResponseDataItemAttributesStatus.mjs";
|
|
5
6
|
export const ListCardsExternalAccountsResponseDataItemAttributes = core.serialization.object({
|
|
6
7
|
brand: ListCardsExternalAccountsResponseDataItemAttributesBrand,
|
|
7
8
|
lastFour: core.serialization.string(),
|
|
9
|
+
billingAddress: ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.nullable(),
|
|
8
10
|
status: ListCardsExternalAccountsResponseDataItemAttributesStatus,
|
|
9
11
|
createdAt: core.serialization.date(),
|
|
10
12
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 ListCardsExternalAccountsResponseDataItemAttributesBillingAddress: core.serialization.ObjectSchema<serializers.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.Raw, Natural.ListCardsExternalAccountsResponseDataItemAttributesBillingAddress>;
|
|
5
|
+
export declare namespace ListCardsExternalAccountsResponseDataItemAttributesBillingAddress {
|
|
6
|
+
interface Raw {
|
|
7
|
+
line1?: string | null;
|
|
8
|
+
line2?: string | null;
|
|
9
|
+
city?: string | null;
|
|
10
|
+
state?: string | null;
|
|
11
|
+
postalCode?: string | null;
|
|
12
|
+
country?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const ListCardsExternalAccountsResponseDataItemAttributesBillingAddress = core.serialization.object({
|
|
4
|
+
line1: core.serialization.string().nullable(),
|
|
5
|
+
line2: core.serialization.string().nullable(),
|
|
6
|
+
city: core.serialization.string().nullable(),
|
|
7
|
+
state: core.serialization.string().nullable(),
|
|
8
|
+
postalCode: core.serialization.string().nullable(),
|
|
9
|
+
country: core.serialization.string().nullable(),
|
|
10
|
+
});
|
|
@@ -49,6 +49,7 @@ export * from "./GetExternalAccountsResponseDataType.mjs";
|
|
|
49
49
|
export * from "./ListCardsExternalAccountsResponse.mjs";
|
|
50
50
|
export * from "./ListCardsExternalAccountsResponseDataItem.mjs";
|
|
51
51
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributes.mjs";
|
|
52
|
+
export * from "./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs";
|
|
52
53
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributesBrand.mjs";
|
|
53
54
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributesStatus.mjs";
|
|
54
55
|
export * from "./ListCardsExternalAccountsResponseDataItemRelationships.mjs";
|
|
@@ -49,6 +49,7 @@ export * from "./GetExternalAccountsResponseDataType.mjs";
|
|
|
49
49
|
export * from "./ListCardsExternalAccountsResponse.mjs";
|
|
50
50
|
export * from "./ListCardsExternalAccountsResponseDataItem.mjs";
|
|
51
51
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributes.mjs";
|
|
52
|
+
export * from "./ListCardsExternalAccountsResponseDataItemAttributesBillingAddress.mjs";
|
|
52
53
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributesBrand.mjs";
|
|
53
54
|
export * from "./ListCardsExternalAccountsResponseDataItemAttributesStatus.mjs";
|
|
54
55
|
export * from "./ListCardsExternalAccountsResponseDataItemRelationships.mjs";
|
|
@@ -47,6 +47,9 @@ export * from "./invitationLinks/types/index.mjs";
|
|
|
47
47
|
export * from "./invitations/client/requests/index.mjs";
|
|
48
48
|
export * as invitations from "./invitations/index.mjs";
|
|
49
49
|
export * from "./invitations/types/index.mjs";
|
|
50
|
+
export * from "./merchantReports/client/requests/index.mjs";
|
|
51
|
+
export * as merchantReports from "./merchantReports/index.mjs";
|
|
52
|
+
export * from "./merchantReports/types/index.mjs";
|
|
50
53
|
export * from "./parties/client/requests/index.mjs";
|
|
51
54
|
export * as parties from "./parties/index.mjs";
|
|
52
55
|
export * from "./parties/types/index.mjs";
|
|
@@ -47,6 +47,9 @@ export * from "./invitationLinks/types/index.mjs";
|
|
|
47
47
|
export * from "./invitations/client/requests/index.mjs";
|
|
48
48
|
export * as invitations from "./invitations/index.mjs";
|
|
49
49
|
export * from "./invitations/types/index.mjs";
|
|
50
|
+
export * from "./merchantReports/client/requests/index.mjs";
|
|
51
|
+
export * as merchantReports from "./merchantReports/index.mjs";
|
|
52
|
+
export * from "./merchantReports/types/index.mjs";
|
|
50
53
|
export * from "./parties/client/requests/index.mjs";
|
|
51
54
|
export * as parties from "./parties/index.mjs";
|
|
52
55
|
export * from "./parties/types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { CreateMerchantReportsRequestCheckout } from "../../types/CreateMerchantReportsRequestCheckout.mjs";
|
|
5
|
+
import { CreateMerchantReportsRequestOutcome } from "../../types/CreateMerchantReportsRequestOutcome.mjs";
|
|
6
|
+
export declare const CreateMerchantReportsRequest: core.serialization.Schema<serializers.CreateMerchantReportsRequest.Raw, Natural.CreateMerchantReportsRequest>;
|
|
7
|
+
export declare namespace CreateMerchantReportsRequest {
|
|
8
|
+
interface Raw {
|
|
9
|
+
merchantUrl: string;
|
|
10
|
+
outcome: CreateMerchantReportsRequestOutcome.Raw;
|
|
11
|
+
cardSessionId?: string | null;
|
|
12
|
+
proxyErrorCode?: string | null;
|
|
13
|
+
checkout?: CreateMerchantReportsRequestCheckout.Raw | null;
|
|
14
|
+
notes?: string | null;
|
|
15
|
+
customerPartyId?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { CreateMerchantReportsRequestCheckout } from "../../types/CreateMerchantReportsRequestCheckout.mjs";
|
|
4
|
+
import { CreateMerchantReportsRequestOutcome } from "../../types/CreateMerchantReportsRequestOutcome.mjs";
|
|
5
|
+
export const CreateMerchantReportsRequest = core.serialization.object({
|
|
6
|
+
merchantUrl: core.serialization.string(),
|
|
7
|
+
outcome: CreateMerchantReportsRequestOutcome,
|
|
8
|
+
cardSessionId: core.serialization.string().optional(),
|
|
9
|
+
proxyErrorCode: core.serialization.string().optional(),
|
|
10
|
+
checkout: CreateMerchantReportsRequestCheckout.optional(),
|
|
11
|
+
notes: core.serialization.string().optional(),
|
|
12
|
+
customerPartyId: core.serialization.string().optional(),
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateMerchantReportsRequest } from "./CreateMerchantReportsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateMerchantReportsRequest } from "./CreateMerchantReportsRequest.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
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 CreateMerchantReportsRequestCheckout: core.serialization.ObjectSchema<serializers.CreateMerchantReportsRequestCheckout.Raw, Natural.CreateMerchantReportsRequestCheckout>;
|
|
5
|
+
export declare namespace CreateMerchantReportsRequestCheckout {
|
|
6
|
+
interface Raw {
|
|
7
|
+
cardFieldOrigin?: string | null;
|
|
8
|
+
processorSdkUrl?: string | null;
|
|
9
|
+
processorSdkVersion?: string | null;
|
|
10
|
+
submitUrl?: string | null;
|
|
11
|
+
submitContentType?: string | null;
|
|
12
|
+
cardFieldNames?: string[] | null;
|
|
13
|
+
errorText?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const CreateMerchantReportsRequestCheckout = core.serialization.object({
|
|
4
|
+
cardFieldOrigin: core.serialization.string().optional(),
|
|
5
|
+
processorSdkUrl: core.serialization.string().optional(),
|
|
6
|
+
processorSdkVersion: core.serialization.string().optional(),
|
|
7
|
+
submitUrl: core.serialization.string().optional(),
|
|
8
|
+
submitContentType: core.serialization.string().optional(),
|
|
9
|
+
cardFieldNames: core.serialization.list(core.serialization.string()).optional(),
|
|
10
|
+
errorText: core.serialization.string().optional(),
|
|
11
|
+
});
|
|
@@ -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 CreateMerchantReportsRequestOutcome: core.serialization.Schema<serializers.CreateMerchantReportsRequestOutcome.Raw, Natural.CreateMerchantReportsRequestOutcome>;
|
|
5
|
+
export declare namespace CreateMerchantReportsRequestOutcome {
|
|
6
|
+
type Raw = "host_not_allowed" | "proxy_error" | "card_refused" | "three_ds_required" | "bot_wall" | "other";
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const CreateMerchantReportsRequestOutcome = core.serialization.enum_([
|
|
4
|
+
"host_not_allowed",
|
|
5
|
+
"proxy_error",
|
|
6
|
+
"card_refused",
|
|
7
|
+
"three_ds_required",
|
|
8
|
+
"bot_wall",
|
|
9
|
+
"other",
|
|
10
|
+
]);
|
package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts
ADDED
|
@@ -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 { CreateMerchantReportsResponseData } from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export declare const CreateMerchantReportsResponse: core.serialization.ObjectSchema<serializers.CreateMerchantReportsResponse.Raw, Natural.CreateMerchantReportsResponse>;
|
|
6
|
+
export declare namespace CreateMerchantReportsResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: CreateMerchantReportsResponseData.Raw;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.mjs
ADDED
|
@@ -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 { CreateMerchantReportsResponseData } from "./CreateMerchantReportsResponseData.mjs";
|
|
4
|
+
export const CreateMerchantReportsResponse = core.serialization.object({
|
|
5
|
+
data: CreateMerchantReportsResponseData,
|
|
6
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { CreateMerchantReportsResponseDataOutcome } from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
5
|
+
export declare const CreateMerchantReportsResponseData: core.serialization.ObjectSchema<serializers.CreateMerchantReportsResponseData.Raw, Natural.CreateMerchantReportsResponseData>;
|
|
6
|
+
export declare namespace CreateMerchantReportsResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
reportId: string;
|
|
9
|
+
merchantHost: string;
|
|
10
|
+
outcome: CreateMerchantReportsResponseDataOutcome.Raw;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { CreateMerchantReportsResponseDataOutcome } from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
4
|
+
export const CreateMerchantReportsResponseData = core.serialization.object({
|
|
5
|
+
reportId: core.serialization.string(),
|
|
6
|
+
merchantHost: core.serialization.string(),
|
|
7
|
+
outcome: CreateMerchantReportsResponseDataOutcome,
|
|
8
|
+
createdAt: core.serialization.string(),
|
|
9
|
+
});
|
|
@@ -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 CreateMerchantReportsResponseDataOutcome: core.serialization.Schema<serializers.CreateMerchantReportsResponseDataOutcome.Raw, Natural.CreateMerchantReportsResponseDataOutcome>;
|
|
5
|
+
export declare namespace CreateMerchantReportsResponseDataOutcome {
|
|
6
|
+
type Raw = "host_not_allowed" | "proxy_error" | "card_refused" | "three_ds_required" | "bot_wall" | "other";
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const CreateMerchantReportsResponseDataOutcome = core.serialization.enum_([
|
|
4
|
+
"host_not_allowed",
|
|
5
|
+
"proxy_error",
|
|
6
|
+
"card_refused",
|
|
7
|
+
"three_ds_required",
|
|
8
|
+
"bot_wall",
|
|
9
|
+
"other",
|
|
10
|
+
]);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.mjs";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./CreateMerchantReportsRequestCheckout.mjs";
|
|
2
|
+
export * from "./CreateMerchantReportsRequestOutcome.mjs";
|
|
3
|
+
export * from "./CreateMerchantReportsResponse.mjs";
|
|
4
|
+
export * from "./CreateMerchantReportsResponseData.mjs";
|
|
5
|
+
export * from "./CreateMerchantReportsResponseDataOutcome.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.47";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.47";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalpay/sdk",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.47",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -319,6 +319,17 @@
|
|
|
319
319
|
},
|
|
320
320
|
"default": "./dist/cjs/api/resources/cardSessions/exports.js"
|
|
321
321
|
},
|
|
322
|
+
"./merchantReports": {
|
|
323
|
+
"import": {
|
|
324
|
+
"types": "./dist/esm/api/resources/merchantReports/exports.d.mts",
|
|
325
|
+
"default": "./dist/esm/api/resources/merchantReports/exports.mjs"
|
|
326
|
+
},
|
|
327
|
+
"require": {
|
|
328
|
+
"types": "./dist/cjs/api/resources/merchantReports/exports.d.ts",
|
|
329
|
+
"default": "./dist/cjs/api/resources/merchantReports/exports.js"
|
|
330
|
+
},
|
|
331
|
+
"default": "./dist/cjs/api/resources/merchantReports/exports.js"
|
|
332
|
+
},
|
|
322
333
|
"./agenticPayments": {
|
|
323
334
|
"import": {
|
|
324
335
|
"types": "./dist/esm/api/resources/agenticPayments/exports.d.mts",
|
package/reference.md
CHANGED
|
@@ -1662,7 +1662,7 @@ await client.payments.get({
|
|
|
1662
1662
|
<dl>
|
|
1663
1663
|
<dd>
|
|
1664
1664
|
|
|
1665
|
-
Cancel a payment before the recipient
|
|
1665
|
+
Cancel a pending payment claim before the recipient claims it
|
|
1666
1666
|
</dd>
|
|
1667
1667
|
</dl>
|
|
1668
1668
|
</dd>
|
|
@@ -8984,6 +8984,85 @@ await client.cardSessions.claim({
|
|
|
8984
8984
|
</dl>
|
|
8985
8985
|
|
|
8986
8986
|
|
|
8987
|
+
</dd>
|
|
8988
|
+
</dl>
|
|
8989
|
+
</details>
|
|
8990
|
+
|
|
8991
|
+
## Merchant Reports
|
|
8992
|
+
<details><summary><code>client.merchantReports.<a href="/src/api/resources/merchantReports/client/Client.ts">create</a>({ ...params }) -> Natural.CreateMerchantReportsResponse</code></summary>
|
|
8993
|
+
<dl>
|
|
8994
|
+
<dd>
|
|
8995
|
+
|
|
8996
|
+
#### 📝 Description
|
|
8997
|
+
|
|
8998
|
+
<dl>
|
|
8999
|
+
<dd>
|
|
9000
|
+
|
|
9001
|
+
<dl>
|
|
9002
|
+
<dd>
|
|
9003
|
+
|
|
9004
|
+
Report a merchant checkout you couldn't pay with a browser token. Natural uses the details to add support for the merchant or its processor.
|
|
9005
|
+
</dd>
|
|
9006
|
+
</dl>
|
|
9007
|
+
</dd>
|
|
9008
|
+
</dl>
|
|
9009
|
+
|
|
9010
|
+
#### 🔌 Usage
|
|
9011
|
+
|
|
9012
|
+
<dl>
|
|
9013
|
+
<dd>
|
|
9014
|
+
|
|
9015
|
+
<dl>
|
|
9016
|
+
<dd>
|
|
9017
|
+
|
|
9018
|
+
```typescript
|
|
9019
|
+
await client.merchantReports.create({
|
|
9020
|
+
merchantUrl: "https://www.example-air.com/booking/payment",
|
|
9021
|
+
outcome: "proxy_error",
|
|
9022
|
+
cardSessionId: "csn_01a0e6466ba3713bba0f0d9d36803b92",
|
|
9023
|
+
proxyErrorCode: "card_proxy_adyen_checkout_unknown",
|
|
9024
|
+
checkout: {
|
|
9025
|
+
cardFieldOrigin: "https://checkoutshopper-live.adyen.com",
|
|
9026
|
+
processorSdkUrl: "https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/sdk/6.35.0/adyen.js",
|
|
9027
|
+
processorSdkVersion: "6.35.0",
|
|
9028
|
+
submitUrl: "POST https://www.example-air.com/payments/v2/create_payment",
|
|
9029
|
+
submitContentType: "application/json",
|
|
9030
|
+
cardFieldNames: ["payment_method.encryptedCardNumber", "payment_method.encryptedSecurityCode"],
|
|
9031
|
+
errorText: "Your payment has been refused. Please try again with a different payment method."
|
|
9032
|
+
},
|
|
9033
|
+
notes: "Card fields were on screen before the claim; the first Pay was refused, a reload fixed it."
|
|
9034
|
+
});
|
|
9035
|
+
|
|
9036
|
+
```
|
|
9037
|
+
</dd>
|
|
9038
|
+
</dl>
|
|
9039
|
+
</dd>
|
|
9040
|
+
</dl>
|
|
9041
|
+
|
|
9042
|
+
#### ⚙️ Parameters
|
|
9043
|
+
|
|
9044
|
+
<dl>
|
|
9045
|
+
<dd>
|
|
9046
|
+
|
|
9047
|
+
<dl>
|
|
9048
|
+
<dd>
|
|
9049
|
+
|
|
9050
|
+
**request:** `Natural.CreateMerchantReportsRequest`
|
|
9051
|
+
|
|
9052
|
+
</dd>
|
|
9053
|
+
</dl>
|
|
9054
|
+
|
|
9055
|
+
<dl>
|
|
9056
|
+
<dd>
|
|
9057
|
+
|
|
9058
|
+
**requestOptions:** `MerchantReportsClient.RequestOptions`
|
|
9059
|
+
|
|
9060
|
+
</dd>
|
|
9061
|
+
</dl>
|
|
9062
|
+
</dd>
|
|
9063
|
+
</dl>
|
|
9064
|
+
|
|
9065
|
+
|
|
8987
9066
|
</dd>
|
|
8988
9067
|
</dl>
|
|
8989
9068
|
</details>
|