@naturalpay/sdk 1.6.48 → 1.6.50

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 (188) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/cardSessions/client/Client.d.ts +2 -0
  3. package/dist/cjs/api/resources/cardSessions/client/Client.js +2 -0
  4. package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +7 -1
  5. package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +3 -1
  6. package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponse.d.ts +3 -1
  7. package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +3 -1
  8. package/dist/cjs/api/resources/externalAccounts/client/Client.d.ts +28 -0
  9. package/dist/cjs/api/resources/externalAccounts/client/Client.js +102 -0
  10. package/dist/cjs/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.d.ts +12 -0
  11. package/dist/cjs/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.js +3 -0
  12. package/dist/cjs/api/resources/externalAccounts/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.ts +5 -0
  14. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.js +3 -0
  15. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.ts +8 -0
  16. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.js +3 -0
  17. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.ts +13 -0
  18. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.js +3 -0
  19. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.ts +9 -0
  20. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js +3 -0
  21. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.ts +10 -0
  22. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.js +13 -0
  23. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.ts +11 -0
  24. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.js +14 -0
  25. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.ts +5 -0
  26. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.js +3 -0
  27. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.ts +8 -0
  28. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.js +3 -0
  29. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.ts +9 -0
  30. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js +3 -0
  31. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.ts +5 -0
  32. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js +8 -0
  33. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.ts +4 -0
  34. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.js +7 -0
  35. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.ts +4 -0
  36. package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.js +3 -0
  37. package/dist/cjs/api/resources/externalAccounts/types/index.d.ts +12 -0
  38. package/dist/cjs/api/resources/externalAccounts/types/index.js +12 -0
  39. package/dist/cjs/api/types/CardPaymentRelationships.d.ts +2 -0
  40. package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.d.ts +8 -0
  41. package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.js +3 -0
  42. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.d.ts +10 -0
  43. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.js +3 -0
  44. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.d.ts +5 -0
  45. package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.js +8 -0
  46. package/dist/cjs/api/types/index.d.ts +3 -0
  47. package/dist/cjs/api/types/index.js +3 -0
  48. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +2 -0
  49. package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +2 -0
  50. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +1 -0
  51. package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.js +1 -0
  52. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.ts +1 -0
  53. package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.js +1 -0
  54. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +1 -0
  55. package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.js +1 -0
  56. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.ts +12 -0
  57. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.js +44 -0
  58. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.ts +15 -0
  59. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.js +47 -0
  60. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.ts +16 -0
  61. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.js +48 -0
  62. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.ts +14 -0
  63. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js +46 -0
  64. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.ts +7 -0
  65. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.js +39 -0
  66. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.ts +7 -0
  67. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.js +39 -0
  68. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.ts +10 -0
  69. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.js +42 -0
  70. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.ts +10 -0
  71. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.js +42 -0
  72. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.ts +11 -0
  73. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js +43 -0
  74. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.ts +7 -0
  75. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js +39 -0
  76. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.ts +7 -0
  77. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.js +39 -0
  78. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.ts +9 -0
  79. package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.js +41 -0
  80. package/dist/cjs/serialization/resources/externalAccounts/types/index.d.ts +12 -0
  81. package/dist/cjs/serialization/resources/externalAccounts/types/index.js +12 -0
  82. package/dist/cjs/serialization/types/CardPaymentRelationships.d.ts +2 -0
  83. package/dist/cjs/serialization/types/CardPaymentRelationships.js +2 -0
  84. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.d.ts +10 -0
  85. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.js +42 -0
  86. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.d.ts +11 -0
  87. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.js +43 -0
  88. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.d.ts +7 -0
  89. package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.js +39 -0
  90. package/dist/cjs/serialization/types/index.d.ts +3 -0
  91. package/dist/cjs/serialization/types/index.js +3 -0
  92. package/dist/cjs/version.d.ts +1 -1
  93. package/dist/cjs/version.js +1 -1
  94. package/dist/esm/BaseClient.mjs +2 -2
  95. package/dist/esm/api/resources/cardSessions/client/Client.d.mts +2 -0
  96. package/dist/esm/api/resources/cardSessions/client/Client.mjs +2 -0
  97. package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +7 -1
  98. package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +3 -1
  99. package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponse.d.mts +3 -1
  100. package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +3 -1
  101. package/dist/esm/api/resources/externalAccounts/client/Client.d.mts +28 -0
  102. package/dist/esm/api/resources/externalAccounts/client/Client.mjs +102 -0
  103. package/dist/esm/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.d.mts +12 -0
  104. package/dist/esm/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.mjs +2 -0
  105. package/dist/esm/api/resources/externalAccounts/client/requests/index.d.mts +1 -0
  106. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.mts +5 -0
  107. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.mjs +2 -0
  108. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.mts +8 -0
  109. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.mjs +2 -0
  110. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.mts +13 -0
  111. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.mjs +2 -0
  112. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.mts +9 -0
  113. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.mjs +2 -0
  114. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.mts +10 -0
  115. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.mjs +10 -0
  116. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.mts +11 -0
  117. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.mjs +11 -0
  118. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.mts +5 -0
  119. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.mjs +2 -0
  120. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.mts +8 -0
  121. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs +2 -0
  122. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.mts +9 -0
  123. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs +2 -0
  124. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.mts +5 -0
  125. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs +5 -0
  126. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.mts +4 -0
  127. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.mjs +4 -0
  128. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.mts +4 -0
  129. package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.mjs +2 -0
  130. package/dist/esm/api/resources/externalAccounts/types/index.d.mts +12 -0
  131. package/dist/esm/api/resources/externalAccounts/types/index.mjs +12 -0
  132. package/dist/esm/api/types/CardPaymentRelationships.d.mts +2 -0
  133. package/dist/esm/api/types/CardPaymentRelationshipsTransaction.d.mts +8 -0
  134. package/dist/esm/api/types/CardPaymentRelationshipsTransaction.mjs +2 -0
  135. package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.d.mts +10 -0
  136. package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.mjs +2 -0
  137. package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.d.mts +5 -0
  138. package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.mjs +5 -0
  139. package/dist/esm/api/types/index.d.mts +3 -0
  140. package/dist/esm/api/types/index.mjs +3 -0
  141. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +2 -0
  142. package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +2 -0
  143. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +1 -0
  144. package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.mjs +1 -0
  145. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.mts +1 -0
  146. package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.mjs +1 -0
  147. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +1 -0
  148. package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.mjs +1 -0
  149. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.mts +12 -0
  150. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.mjs +8 -0
  151. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.mts +15 -0
  152. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.mjs +11 -0
  153. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.mts +16 -0
  154. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.mjs +12 -0
  155. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.mts +14 -0
  156. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.mjs +10 -0
  157. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.mts +7 -0
  158. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.mjs +3 -0
  159. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.mts +7 -0
  160. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.mjs +3 -0
  161. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.mts +10 -0
  162. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.mjs +6 -0
  163. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.mts +10 -0
  164. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs +6 -0
  165. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.mts +11 -0
  166. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs +7 -0
  167. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.mts +7 -0
  168. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs +3 -0
  169. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.mts +7 -0
  170. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.mjs +3 -0
  171. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.mts +9 -0
  172. package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.mjs +5 -0
  173. package/dist/esm/serialization/resources/externalAccounts/types/index.d.mts +12 -0
  174. package/dist/esm/serialization/resources/externalAccounts/types/index.mjs +12 -0
  175. package/dist/esm/serialization/types/CardPaymentRelationships.d.mts +2 -0
  176. package/dist/esm/serialization/types/CardPaymentRelationships.mjs +2 -0
  177. package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.d.mts +10 -0
  178. package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.mjs +6 -0
  179. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.d.mts +11 -0
  180. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.mjs +7 -0
  181. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.d.mts +7 -0
  182. package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.mjs +3 -0
  183. package/dist/esm/serialization/types/index.d.mts +3 -0
  184. package/dist/esm/serialization/types/index.mjs +3 -0
  185. package/dist/esm/version.d.mts +1 -1
  186. package/dist/esm/version.mjs +1 -1
  187. package/package.json +1 -1
  188. package/reference.md +67 -0
@@ -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 RemoveCardExternalAccountsResponseDataAttributesBillingAddress = 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
+ });
@@ -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 RemoveCardExternalAccountsResponseDataAttributesBrand: core.serialization.Schema<serializers.RemoveCardExternalAccountsResponseDataAttributesBrand.Raw, Natural.RemoveCardExternalAccountsResponseDataAttributesBrand>;
5
+ export declare namespace RemoveCardExternalAccountsResponseDataAttributesBrand {
6
+ type Raw = "visa" | "mastercard" | "amex" | "discover" | "other" | "unknown";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const RemoveCardExternalAccountsResponseDataAttributesBrand = core.serialization.enum_(["visa", "mastercard", "amex", "discover", "other", "unknown"]);
@@ -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 RemoveCardExternalAccountsResponseDataAttributesStatus: core.serialization.Schema<serializers.RemoveCardExternalAccountsResponseDataAttributesStatus.Raw, Natural.RemoveCardExternalAccountsResponseDataAttributesStatus>;
5
+ export declare namespace RemoveCardExternalAccountsResponseDataAttributesStatus {
6
+ type Raw = "pending" | "new" | "active" | "disabled" | "deleted" | "unknown" | "verification_failed";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const RemoveCardExternalAccountsResponseDataAttributesStatus = core.serialization.enum_(["pending", "new", "active", "disabled", "deleted", "unknown", "verification_failed"]);
@@ -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 { RemoveCardExternalAccountsResponseDataRelationshipsParty } from "./RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs";
5
+ export declare const RemoveCardExternalAccountsResponseDataRelationships: core.serialization.ObjectSchema<serializers.RemoveCardExternalAccountsResponseDataRelationships.Raw, Natural.RemoveCardExternalAccountsResponseDataRelationships>;
6
+ export declare namespace RemoveCardExternalAccountsResponseDataRelationships {
7
+ interface Raw {
8
+ party: RemoveCardExternalAccountsResponseDataRelationshipsParty.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 { RemoveCardExternalAccountsResponseDataRelationshipsParty } from "./RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs";
4
+ export const RemoveCardExternalAccountsResponseDataRelationships = core.serialization.object({
5
+ party: RemoveCardExternalAccountsResponseDataRelationshipsParty,
6
+ });
@@ -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 { RemoveCardExternalAccountsResponseDataRelationshipsPartyData } from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs";
5
+ export declare const RemoveCardExternalAccountsResponseDataRelationshipsParty: core.serialization.ObjectSchema<serializers.RemoveCardExternalAccountsResponseDataRelationshipsParty.Raw, Natural.RemoveCardExternalAccountsResponseDataRelationshipsParty>;
6
+ export declare namespace RemoveCardExternalAccountsResponseDataRelationshipsParty {
7
+ interface Raw {
8
+ data: RemoveCardExternalAccountsResponseDataRelationshipsPartyData.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 { RemoveCardExternalAccountsResponseDataRelationshipsPartyData } from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs";
4
+ export const RemoveCardExternalAccountsResponseDataRelationshipsParty = core.serialization.object({
5
+ data: RemoveCardExternalAccountsResponseDataRelationshipsPartyData,
6
+ });
@@ -0,0 +1,11 @@
1
+ import type * as Natural from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType } from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs";
5
+ export declare const RemoveCardExternalAccountsResponseDataRelationshipsPartyData: core.serialization.ObjectSchema<serializers.RemoveCardExternalAccountsResponseDataRelationshipsPartyData.Raw, Natural.RemoveCardExternalAccountsResponseDataRelationshipsPartyData>;
6
+ export declare namespace RemoveCardExternalAccountsResponseDataRelationshipsPartyData {
7
+ interface Raw {
8
+ type: RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.Raw;
9
+ id: string;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType } from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs";
4
+ export const RemoveCardExternalAccountsResponseDataRelationshipsPartyData = core.serialization.object({
5
+ type: RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType,
6
+ id: core.serialization.string(),
7
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Natural from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ export declare const RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType: core.serialization.Schema<serializers.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.Raw, Natural.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType>;
5
+ export declare namespace RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType {
6
+ type Raw = "party";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType = core.serialization.enum_(["party"]);
@@ -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 RemoveCardExternalAccountsResponseDataType: core.serialization.Schema<serializers.RemoveCardExternalAccountsResponseDataType.Raw, Natural.RemoveCardExternalAccountsResponseDataType>;
5
+ export declare namespace RemoveCardExternalAccountsResponseDataType {
6
+ type Raw = "cardExternalAccount";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const RemoveCardExternalAccountsResponseDataType = core.serialization.enum_(["cardExternalAccount"]);
@@ -0,0 +1,9 @@
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 RemoveCardExternalAccountsResponseMeta: core.serialization.ObjectSchema<serializers.RemoveCardExternalAccountsResponseMeta.Raw, Natural.RemoveCardExternalAccountsResponseMeta>;
5
+ export declare namespace RemoveCardExternalAccountsResponseMeta {
6
+ interface Raw {
7
+ deleted: string;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const RemoveCardExternalAccountsResponseMeta = core.serialization.object({
4
+ deleted: core.serialization.string(),
5
+ });
@@ -63,6 +63,18 @@ export * from "./ListExternalAccountsResponseDataItem.mjs";
63
63
  export * from "./ListExternalAccountsResponseDataItemAttributesAccountType.mjs";
64
64
  export * from "./ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs";
65
65
  export * from "./ListExternalAccountsResponseDataItemAttributesConnectionStatus.mjs";
66
+ export * from "./RemoveCardExternalAccountsResponse.mjs";
67
+ export * from "./RemoveCardExternalAccountsResponseData.mjs";
68
+ export * from "./RemoveCardExternalAccountsResponseDataAttributes.mjs";
69
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesBillingAddress.mjs";
70
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesBrand.mjs";
71
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesStatus.mjs";
72
+ export * from "./RemoveCardExternalAccountsResponseDataRelationships.mjs";
73
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs";
74
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs";
75
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs";
76
+ export * from "./RemoveCardExternalAccountsResponseDataType.mjs";
77
+ export * from "./RemoveCardExternalAccountsResponseMeta.mjs";
66
78
  export * from "./RemoveExternalAccountsResponseDataAttributesAccountType.mjs";
67
79
  export * from "./RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs";
68
80
  export * from "./RemoveExternalAccountsResponseDataAttributesConnectionStatus.mjs";
@@ -63,6 +63,18 @@ export * from "./ListExternalAccountsResponseDataItem.mjs";
63
63
  export * from "./ListExternalAccountsResponseDataItemAttributesAccountType.mjs";
64
64
  export * from "./ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.mjs";
65
65
  export * from "./ListExternalAccountsResponseDataItemAttributesConnectionStatus.mjs";
66
+ export * from "./RemoveCardExternalAccountsResponse.mjs";
67
+ export * from "./RemoveCardExternalAccountsResponseData.mjs";
68
+ export * from "./RemoveCardExternalAccountsResponseDataAttributes.mjs";
69
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesBillingAddress.mjs";
70
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesBrand.mjs";
71
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesStatus.mjs";
72
+ export * from "./RemoveCardExternalAccountsResponseDataRelationships.mjs";
73
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs";
74
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs";
75
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs";
76
+ export * from "./RemoveCardExternalAccountsResponseDataType.mjs";
77
+ export * from "./RemoveCardExternalAccountsResponseMeta.mjs";
66
78
  export * from "./RemoveExternalAccountsResponseDataAttributesAccountType.mjs";
67
79
  export * from "./RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.mjs";
68
80
  export * from "./RemoveExternalAccountsResponseDataAttributesConnectionStatus.mjs";
@@ -3,10 +3,12 @@ import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
4
  import { CardPaymentRelationshipsPaymentIntent } from "./CardPaymentRelationshipsPaymentIntent.mjs";
5
5
  import { CardPaymentRelationshipsRefunds } from "./CardPaymentRelationshipsRefunds.mjs";
6
+ import { CardPaymentRelationshipsTransaction } from "./CardPaymentRelationshipsTransaction.mjs";
6
7
  export declare const CardPaymentRelationships: core.serialization.ObjectSchema<serializers.CardPaymentRelationships.Raw, Natural.CardPaymentRelationships>;
7
8
  export declare namespace CardPaymentRelationships {
8
9
  interface Raw {
9
10
  paymentIntent: CardPaymentRelationshipsPaymentIntent.Raw;
10
11
  refunds: CardPaymentRelationshipsRefunds.Raw;
12
+ transaction: CardPaymentRelationshipsTransaction.Raw;
11
13
  }
12
14
  }
@@ -2,7 +2,9 @@
2
2
  import * as core from "../../core/index.mjs";
3
3
  import { CardPaymentRelationshipsPaymentIntent } from "./CardPaymentRelationshipsPaymentIntent.mjs";
4
4
  import { CardPaymentRelationshipsRefunds } from "./CardPaymentRelationshipsRefunds.mjs";
5
+ import { CardPaymentRelationshipsTransaction } from "./CardPaymentRelationshipsTransaction.mjs";
5
6
  export const CardPaymentRelationships = core.serialization.object({
6
7
  paymentIntent: CardPaymentRelationshipsPaymentIntent,
7
8
  refunds: CardPaymentRelationshipsRefunds,
9
+ transaction: CardPaymentRelationshipsTransaction,
8
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 { CardPaymentRelationshipsTransactionData } from "./CardPaymentRelationshipsTransactionData.mjs";
5
+ export declare const CardPaymentRelationshipsTransaction: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransaction.Raw, Natural.CardPaymentRelationshipsTransaction>;
6
+ export declare namespace CardPaymentRelationshipsTransaction {
7
+ interface Raw {
8
+ data?: CardPaymentRelationshipsTransactionData.Raw | null;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { CardPaymentRelationshipsTransactionData } from "./CardPaymentRelationshipsTransactionData.mjs";
4
+ export const CardPaymentRelationshipsTransaction = core.serialization.object({
5
+ data: CardPaymentRelationshipsTransactionData.nullable(),
6
+ });
@@ -0,0 +1,11 @@
1
+ import type * as Natural from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { CardPaymentRelationshipsTransactionDataType } from "./CardPaymentRelationshipsTransactionDataType.mjs";
5
+ export declare const CardPaymentRelationshipsTransactionData: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransactionData.Raw, Natural.CardPaymentRelationshipsTransactionData>;
6
+ export declare namespace CardPaymentRelationshipsTransactionData {
7
+ interface Raw {
8
+ type: CardPaymentRelationshipsTransactionDataType.Raw;
9
+ id: string;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { CardPaymentRelationshipsTransactionDataType } from "./CardPaymentRelationshipsTransactionDataType.mjs";
4
+ export const CardPaymentRelationshipsTransactionData = core.serialization.object({
5
+ type: CardPaymentRelationshipsTransactionDataType,
6
+ id: core.serialization.string(),
7
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Natural from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const CardPaymentRelationshipsTransactionDataType: core.serialization.Schema<serializers.CardPaymentRelationshipsTransactionDataType.Raw, Natural.CardPaymentRelationshipsTransactionDataType>;
5
+ export declare namespace CardPaymentRelationshipsTransactionDataType {
6
+ type Raw = "transaction";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const CardPaymentRelationshipsTransactionDataType = core.serialization.enum_(["transaction"]);
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.mjs";
32
32
  export * from "./CardPaymentRelationshipsRefunds.mjs";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.mjs";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.mjs";
35
+ export * from "./CardPaymentRelationshipsTransaction.mjs";
36
+ export * from "./CardPaymentRelationshipsTransactionData.mjs";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.mjs";
35
38
  export * from "./CardPaymentType.mjs";
36
39
  export * from "./ComplianceSessionStatusResponse.mjs";
37
40
  export * from "./ComplianceSessionStatusResponseData.mjs";
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.mjs";
32
32
  export * from "./CardPaymentRelationshipsRefunds.mjs";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.mjs";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.mjs";
35
+ export * from "./CardPaymentRelationshipsTransaction.mjs";
36
+ export * from "./CardPaymentRelationshipsTransactionData.mjs";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.mjs";
35
38
  export * from "./CardPaymentType.mjs";
36
39
  export * from "./ComplianceSessionStatusResponse.mjs";
37
40
  export * from "./ComplianceSessionStatusResponseData.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.48";
1
+ export declare const SDK_VERSION = "1.6.50";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.48";
1
+ export const SDK_VERSION = "1.6.50";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.48",
3
+ "version": "1.6.50",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -8161,6 +8161,71 @@ const response = page.response;
8161
8161
  </dl>
8162
8162
 
8163
8163
 
8164
+ </dd>
8165
+ </dl>
8166
+ </details>
8167
+
8168
+ <details><summary><code>client.externalAccounts.<a href="/src/api/resources/externalAccounts/client/Client.ts">removeCard</a>({ ...params }) -> Natural.RemoveCardExternalAccountsResponse</code></summary>
8169
+ <dl>
8170
+ <dd>
8171
+
8172
+ #### 📝 Description
8173
+
8174
+ <dl>
8175
+ <dd>
8176
+
8177
+ <dl>
8178
+ <dd>
8179
+
8180
+ Remove a saved card
8181
+ </dd>
8182
+ </dl>
8183
+ </dd>
8184
+ </dl>
8185
+
8186
+ #### 🔌 Usage
8187
+
8188
+ <dl>
8189
+ <dd>
8190
+
8191
+ <dl>
8192
+ <dd>
8193
+
8194
+ ```typescript
8195
+ await client.externalAccounts.removeCard({
8196
+ externalAccountId: "externalAccountId"
8197
+ });
8198
+
8199
+ ```
8200
+ </dd>
8201
+ </dl>
8202
+ </dd>
8203
+ </dl>
8204
+
8205
+ #### ⚙️ Parameters
8206
+
8207
+ <dl>
8208
+ <dd>
8209
+
8210
+ <dl>
8211
+ <dd>
8212
+
8213
+ **request:** `Natural.RemoveCardExternalAccountsRequest`
8214
+
8215
+ </dd>
8216
+ </dl>
8217
+
8218
+ <dl>
8219
+ <dd>
8220
+
8221
+ **requestOptions:** `ExternalAccountsClient.RequestOptions`
8222
+
8223
+ </dd>
8224
+ </dl>
8225
+ </dd>
8226
+ </dl>
8227
+
8228
+
8164
8229
  </dd>
8165
8230
  </dl>
8166
8231
  </details>
@@ -8815,12 +8880,14 @@ await client.cardSessions.create({
8815
8880
  cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
8816
8881
  allowedHosts: ["api.stripe.com"],
8817
8882
  ttlSeconds: 600,
8883
+ claimWindowSeconds: 3600,
8818
8884
  purchase: {
8819
8885
  merchantName: "Blue Bottle Coffee",
8820
8886
  amount: 2450,
8821
8887
  currency: "USD"
8822
8888
  },
8823
8889
  reference: "checkout_7f3a",
8890
+ returnUrl: "sms:+15551234567",
8824
8891
  requestAgentToken: true
8825
8892
  });
8826
8893