@naturalpay/sdk 1.6.46 → 1.6.48

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.
Files changed (162) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +31 -26
  4. package/dist/cjs/api/resources/customers/types/CustomerAttrs.d.ts +2 -0
  5. package/dist/cjs/api/resources/customers/types/CustomerDetailAttrs.d.ts +2 -0
  6. package/dist/cjs/api/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.ts +2 -0
  7. package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +2 -0
  8. package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.ts +2 -0
  9. package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.ts +2 -0
  10. package/dist/cjs/api/resources/index.d.ts +3 -0
  11. package/dist/cjs/api/resources/index.js +4 -1
  12. package/dist/cjs/api/resources/merchantReports/client/Client.d.ts +57 -0
  13. package/dist/cjs/api/resources/merchantReports/client/Client.js +177 -0
  14. package/dist/cjs/api/resources/merchantReports/client/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/merchantReports/client/index.js +17 -0
  16. package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +36 -0
  17. package/dist/cjs/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.js +3 -0
  18. package/dist/cjs/api/resources/merchantReports/client/requests/index.d.ts +1 -0
  19. package/dist/cjs/api/resources/merchantReports/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/merchantReports/exports.d.ts +2 -0
  21. package/dist/cjs/api/resources/merchantReports/exports.js +21 -0
  22. package/dist/cjs/api/resources/merchantReports/index.d.ts +2 -0
  23. package/dist/cjs/api/resources/merchantReports/index.js +18 -0
  24. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.ts +19 -0
  25. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.js +3 -0
  26. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +10 -0
  27. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +13 -0
  28. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts +4 -0
  29. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponse.js +3 -0
  30. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +8 -0
  31. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseData.js +3 -0
  32. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +10 -0
  33. package/dist/cjs/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +13 -0
  34. package/dist/cjs/api/resources/merchantReports/types/index.d.ts +5 -0
  35. package/dist/cjs/api/resources/merchantReports/types/index.js +21 -0
  36. package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +2 -0
  37. package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.ts +2 -0
  38. package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.ts +2 -0
  39. package/dist/cjs/serialization/resources/customers/types/CustomerAttrs.d.ts +1 -0
  40. package/dist/cjs/serialization/resources/customers/types/CustomerAttrs.js +1 -0
  41. package/dist/cjs/serialization/resources/customers/types/CustomerDetailAttrs.d.ts +1 -0
  42. package/dist/cjs/serialization/resources/customers/types/CustomerDetailAttrs.js +1 -0
  43. package/dist/cjs/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.ts +1 -0
  44. package/dist/cjs/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.js +1 -0
  45. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +1 -0
  46. package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.js +1 -0
  47. package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.ts +1 -0
  48. package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.js +1 -0
  49. package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.ts +1 -0
  50. package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.js +1 -0
  51. package/dist/cjs/serialization/resources/index.d.ts +3 -0
  52. package/dist/cjs/serialization/resources/index.js +4 -1
  53. package/dist/cjs/serialization/resources/merchantReports/client/index.d.ts +1 -0
  54. package/dist/cjs/serialization/resources/merchantReports/client/index.js +17 -0
  55. package/dist/cjs/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.ts +17 -0
  56. package/dist/cjs/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.js +49 -0
  57. package/dist/cjs/serialization/resources/merchantReports/client/requests/index.d.ts +1 -0
  58. package/dist/cjs/serialization/resources/merchantReports/client/requests/index.js +5 -0
  59. package/dist/cjs/serialization/resources/merchantReports/index.d.ts +2 -0
  60. package/dist/cjs/serialization/resources/merchantReports/index.js +18 -0
  61. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.ts +15 -0
  62. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.js +47 -0
  63. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.ts +7 -0
  64. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.js +46 -0
  65. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.ts +10 -0
  66. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.js +42 -0
  67. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.d.ts +13 -0
  68. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.js +45 -0
  69. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.ts +7 -0
  70. package/dist/cjs/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.js +46 -0
  71. package/dist/cjs/serialization/resources/merchantReports/types/index.d.ts +5 -0
  72. package/dist/cjs/serialization/resources/merchantReports/types/index.js +21 -0
  73. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +1 -0
  74. package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.js +1 -0
  75. package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.ts +1 -0
  76. package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.js +1 -0
  77. package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.ts +1 -0
  78. package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.js +1 -0
  79. package/dist/cjs/version.d.ts +1 -1
  80. package/dist/cjs/version.js +1 -1
  81. package/dist/esm/BaseClient.mjs +2 -2
  82. package/dist/esm/Client.d.mts +3 -0
  83. package/dist/esm/Client.mjs +5 -0
  84. package/dist/esm/api/resources/customers/types/CustomerAttrs.d.mts +2 -0
  85. package/dist/esm/api/resources/customers/types/CustomerDetailAttrs.d.mts +2 -0
  86. package/dist/esm/api/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.mts +2 -0
  87. package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +2 -0
  88. package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.mts +2 -0
  89. package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.mts +2 -0
  90. package/dist/esm/api/resources/index.d.mts +3 -0
  91. package/dist/esm/api/resources/index.mjs +3 -0
  92. package/dist/esm/api/resources/merchantReports/client/Client.d.mts +57 -0
  93. package/dist/esm/api/resources/merchantReports/client/Client.mjs +140 -0
  94. package/dist/esm/api/resources/merchantReports/client/index.d.mts +1 -0
  95. package/dist/esm/api/resources/merchantReports/client/index.mjs +1 -0
  96. package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +36 -0
  97. package/dist/esm/api/resources/merchantReports/client/requests/CreateMerchantReportsRequest.mjs +2 -0
  98. package/dist/esm/api/resources/merchantReports/client/requests/index.d.mts +1 -0
  99. package/dist/esm/api/resources/merchantReports/client/requests/index.mjs +1 -0
  100. package/dist/esm/api/resources/merchantReports/exports.d.mts +2 -0
  101. package/dist/esm/api/resources/merchantReports/exports.mjs +3 -0
  102. package/dist/esm/api/resources/merchantReports/index.d.mts +2 -0
  103. package/dist/esm/api/resources/merchantReports/index.mjs +2 -0
  104. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts +19 -0
  105. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.mjs +2 -0
  106. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +10 -0
  107. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +10 -0
  108. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts +4 -0
  109. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponse.mjs +2 -0
  110. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +8 -0
  111. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs +2 -0
  112. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +10 -0
  113. package/dist/esm/api/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +10 -0
  114. package/dist/esm/api/resources/merchantReports/types/index.d.mts +5 -0
  115. package/dist/esm/api/resources/merchantReports/types/index.mjs +5 -0
  116. package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +2 -0
  117. package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.mts +2 -0
  118. package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.mts +2 -0
  119. package/dist/esm/serialization/resources/customers/types/CustomerAttrs.d.mts +1 -0
  120. package/dist/esm/serialization/resources/customers/types/CustomerAttrs.mjs +1 -0
  121. package/dist/esm/serialization/resources/customers/types/CustomerDetailAttrs.d.mts +1 -0
  122. package/dist/esm/serialization/resources/customers/types/CustomerDetailAttrs.mjs +1 -0
  123. package/dist/esm/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.mts +1 -0
  124. package/dist/esm/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.mjs +1 -0
  125. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +1 -0
  126. package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.mjs +1 -0
  127. package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.mts +1 -0
  128. package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.mjs +1 -0
  129. package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.mts +1 -0
  130. package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.mjs +1 -0
  131. package/dist/esm/serialization/resources/index.d.mts +3 -0
  132. package/dist/esm/serialization/resources/index.mjs +3 -0
  133. package/dist/esm/serialization/resources/merchantReports/client/index.d.mts +1 -0
  134. package/dist/esm/serialization/resources/merchantReports/client/index.mjs +1 -0
  135. package/dist/esm/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.d.mts +17 -0
  136. package/dist/esm/serialization/resources/merchantReports/client/requests/CreateMerchantReportsRequest.mjs +13 -0
  137. package/dist/esm/serialization/resources/merchantReports/client/requests/index.d.mts +1 -0
  138. package/dist/esm/serialization/resources/merchantReports/client/requests/index.mjs +1 -0
  139. package/dist/esm/serialization/resources/merchantReports/index.d.mts +2 -0
  140. package/dist/esm/serialization/resources/merchantReports/index.mjs +2 -0
  141. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.d.mts +15 -0
  142. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestCheckout.mjs +11 -0
  143. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.d.mts +7 -0
  144. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsRequestOutcome.mjs +10 -0
  145. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.d.mts +10 -0
  146. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponse.mjs +6 -0
  147. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.d.mts +13 -0
  148. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseData.mjs +9 -0
  149. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.d.mts +7 -0
  150. package/dist/esm/serialization/resources/merchantReports/types/CreateMerchantReportsResponseDataOutcome.mjs +10 -0
  151. package/dist/esm/serialization/resources/merchantReports/types/index.d.mts +5 -0
  152. package/dist/esm/serialization/resources/merchantReports/types/index.mjs +5 -0
  153. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +1 -0
  154. package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.mjs +1 -0
  155. package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.mts +1 -0
  156. package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.mjs +1 -0
  157. package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.mts +1 -0
  158. package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.mjs +1 -0
  159. package/dist/esm/version.d.mts +1 -1
  160. package/dist/esm/version.mjs +1 -1
  161. package/package.json +12 -1
  162. package/reference.md +79 -0
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Details of the checkout, for adding support later. Fill in what you saw; never card data.
3
+ */
4
+ export interface CreateMerchantReportsRequestCheckout {
5
+ /** Where the card number field comes from: the merchant page itself, or the iframe origin (https://checkoutshopper-live.adyen.com, https://flex.cybersource.com, ...). */
6
+ cardFieldOrigin?: string;
7
+ /** URL of the payment script the page loads (the processor's SDK or the merchant's own encryption bundle). */
8
+ processorSdkUrl?: string;
9
+ /** Its version, when the URL or script says. */
10
+ processorSdkVersion?: string;
11
+ /** The request that carries the card or its token out of the browser (method and URL). */
12
+ submitUrl?: string;
13
+ /** Its Content-Type. */
14
+ submitContentType?: string;
15
+ /** Field names in that request that carry the card or its ciphertext (encryptedCardNumber, token, ...). */
16
+ cardFieldNames?: string[];
17
+ /** The error the page or the proxy showed, verbatim. */
18
+ errorText?: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /** 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. */
2
+ export declare const CreateMerchantReportsRequestOutcome: {
3
+ readonly HostNotAllowed: "host_not_allowed";
4
+ readonly ProxyError: "proxy_error";
5
+ readonly CardRefused: "card_refused";
6
+ readonly ThreeDsRequired: "three_ds_required";
7
+ readonly BotWall: "bot_wall";
8
+ readonly Other: "other";
9
+ };
10
+ export type CreateMerchantReportsRequestOutcome = (typeof CreateMerchantReportsRequestOutcome)[keyof typeof CreateMerchantReportsRequestOutcome];
@@ -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 CreateMerchantReportsRequestOutcome = {
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,4 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface CreateMerchantReportsResponse {
3
+ data: Natural.CreateMerchantReportsResponseData;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.mjs";
2
+ export interface CreateMerchantReportsResponseData {
3
+ reportId: string;
4
+ merchantHost: string;
5
+ /** 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. */
6
+ outcome: Natural.CreateMerchantReportsResponseDataOutcome;
7
+ createdAt: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /** 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. */
2
+ export declare const CreateMerchantReportsResponseDataOutcome: {
3
+ readonly HostNotAllowed: "host_not_allowed";
4
+ readonly ProxyError: "proxy_error";
5
+ readonly CardRefused: "card_refused";
6
+ readonly ThreeDsRequired: "three_ds_required";
7
+ readonly BotWall: "bot_wall";
8
+ readonly Other: "other";
9
+ };
10
+ export type CreateMerchantReportsResponseDataOutcome = (typeof CreateMerchantReportsResponseDataOutcome)[keyof typeof CreateMerchantReportsResponseDataOutcome];
@@ -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";
@@ -4,6 +4,8 @@ export interface DisconnectCustomerSimulationsResponseDataAttributes {
4
4
  name: string;
5
5
  /** Email address. */
6
6
  email: string | null;
7
+ /** Primary phone number in E.164 format, or null when none is on file. */
8
+ phone: string | null;
7
9
  /** Public avatar URL, or null when none is set. */
8
10
  avatarUrl: string | null;
9
11
  /** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
@@ -4,6 +4,8 @@ export interface RevokeAgentConnectionSimulationsResponseMetaDataAttributes {
4
4
  name: string;
5
5
  /** Email address. */
6
6
  email: string | null;
7
+ /** Primary phone number in E.164 format, or null when none is on file. */
8
+ phone: string | null;
7
9
  /** Public avatar URL, or null when none is set. */
8
10
  avatarUrl: string | null;
9
11
  /** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
@@ -4,6 +4,8 @@ export interface RevokeAgentConnectionSimulationsResponseZeroDataAttributes {
4
4
  name: string;
5
5
  /** Email address. */
6
6
  email: string | null;
7
+ /** Primary phone number in E.164 format, or null when none is on file. */
8
+ phone: string | null;
7
9
  /** Public avatar URL, or null when none is set. */
8
10
  avatarUrl: string | null;
9
11
  /** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
@@ -8,6 +8,7 @@ export declare namespace CustomerAttrs {
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: CustomerDelegation.Raw;
@@ -5,6 +5,7 @@ import { CustomerDelegation } from "./CustomerDelegation.mjs";
5
5
  export const CustomerAttrs = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: CustomerDelegation,
@@ -8,6 +8,7 @@ export declare namespace CustomerDetailAttrs {
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: CustomerDetailDelegation.Raw;
@@ -5,6 +5,7 @@ import { CustomerDetailDelegation } from "./CustomerDetailDelegation.mjs";
5
5
  export const CustomerDetailAttrs = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: CustomerDetailDelegation,
@@ -7,6 +7,7 @@ export declare namespace ListInvitationsCustomersResponseDataItemAttributesParty
7
7
  id: string;
8
8
  name: string;
9
9
  email?: string | null;
10
+ phone?: string | null;
10
11
  avatarUrl?: string | null;
11
12
  createdAt?: string | null;
12
13
  }
@@ -4,6 +4,7 @@ export const ListInvitationsCustomersResponseDataItemAttributesParty = core.seri
4
4
  id: core.serialization.string(),
5
5
  name: core.serialization.string(),
6
6
  email: core.serialization.string().nullable(),
7
+ phone: core.serialization.string().nullable(),
7
8
  avatarUrl: core.serialization.string().nullable(),
8
9
  createdAt: core.serialization.date().nullable(),
9
10
  });
@@ -8,6 +8,7 @@ export declare namespace RemoveCustomersResponseDataAttributes {
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: RemoveCustomersResponseDataAttributesDelegation.Raw;
@@ -5,6 +5,7 @@ import { RemoveCustomersResponseDataAttributesDelegation } from "./RemoveCustome
5
5
  export const RemoveCustomersResponseDataAttributes = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: RemoveCustomersResponseDataAttributesDelegation,
@@ -8,6 +8,7 @@ export declare namespace RevokeAgentCustomersResponseMetaDataAttributes {
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: RevokeAgentCustomersResponseMetaDataAttributesDelegation.Raw;
@@ -5,6 +5,7 @@ import { RevokeAgentCustomersResponseMetaDataAttributesDelegation } from "./Revo
5
5
  export const RevokeAgentCustomersResponseMetaDataAttributes = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: RevokeAgentCustomersResponseMetaDataAttributesDelegation,
@@ -8,6 +8,7 @@ export declare namespace RevokeAgentCustomersResponseZeroDataAttributes {
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: RevokeAgentCustomersResponseZeroDataAttributesDelegation.Raw;
@@ -5,6 +5,7 @@ import { RevokeAgentCustomersResponseZeroDataAttributesDelegation } from "./Revo
5
5
  export const RevokeAgentCustomersResponseZeroDataAttributes = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: RevokeAgentCustomersResponseZeroDataAttributesDelegation,
@@ -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,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.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
+ ]);
@@ -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
+ }
@@ -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
+ }
@@ -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";
@@ -8,6 +8,7 @@ export declare namespace DisconnectCustomerSimulationsResponseDataAttributes {
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: DisconnectCustomerSimulationsResponseDataAttributesDelegation.Raw;
@@ -5,6 +5,7 @@ import { DisconnectCustomerSimulationsResponseDataAttributesDelegation } from ".
5
5
  export const DisconnectCustomerSimulationsResponseDataAttributes = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: DisconnectCustomerSimulationsResponseDataAttributesDelegation,
@@ -8,6 +8,7 @@ export declare namespace RevokeAgentConnectionSimulationsResponseMetaDataAttribu
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation.Raw;
@@ -5,6 +5,7 @@ import { RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation }
5
5
  export const RevokeAgentConnectionSimulationsResponseMetaDataAttributes = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation,
@@ -8,6 +8,7 @@ export declare namespace RevokeAgentConnectionSimulationsResponseZeroDataAttribu
8
8
  interface Raw {
9
9
  name: string;
10
10
  email?: string | null;
11
+ phone?: string | null;
11
12
  avatarUrl?: string | null;
12
13
  createdAt?: string | null;
13
14
  delegation: RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation.Raw;
@@ -5,6 +5,7 @@ import { RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation }
5
5
  export const RevokeAgentConnectionSimulationsResponseZeroDataAttributes = core.serialization.object({
6
6
  name: core.serialization.string(),
7
7
  email: core.serialization.string().nullable(),
8
+ phone: core.serialization.string().nullable(),
8
9
  avatarUrl: core.serialization.string().nullable(),
9
10
  createdAt: core.serialization.date().nullable(),
10
11
  delegation: RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation,
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.46";
1
+ export declare const SDK_VERSION = "1.6.48";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.46";
1
+ export const SDK_VERSION = "1.6.48";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.46",
3
+ "version": "1.6.48",
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",