@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
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.6.48",
47
- "User-Agent": "@naturalpay/sdk/1.6.48",
46
+ "X-Fern-SDK-Version": "1.6.50",
47
+ "User-Agent": "@naturalpay/sdk/1.6.50",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -65,12 +65,14 @@ export declare class CardSessionsClient {
65
65
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
66
66
  * allowedHosts: ["api.stripe.com"],
67
67
  * ttlSeconds: 600,
68
+ * claimWindowSeconds: 3600,
68
69
  * purchase: {
69
70
  * merchantName: "Blue Bottle Coffee",
70
71
  * amount: 2450,
71
72
  * currency: "USD"
72
73
  * },
73
74
  * reference: "checkout_7f3a",
75
+ * returnUrl: "sms:+15551234567",
74
76
  * requestAgentToken: true
75
77
  * })
76
78
  */
@@ -206,12 +206,14 @@ class CardSessionsClient {
206
206
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
207
207
  * allowedHosts: ["api.stripe.com"],
208
208
  * ttlSeconds: 600,
209
+ * claimWindowSeconds: 3600,
209
210
  * purchase: {
210
211
  * merchantName: "Blue Bottle Coffee",
211
212
  * amount: 2450,
212
213
  * currency: "USD"
213
214
  * },
214
215
  * reference: "checkout_7f3a",
216
+ * returnUrl: "sms:+15551234567",
215
217
  * requestAgentToken: true
216
218
  * })
217
219
  */
@@ -5,12 +5,14 @@ import type * as Natural from "../../../../index.js";
5
5
  * cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
6
6
  * allowedHosts: ["api.stripe.com"],
7
7
  * ttlSeconds: 600,
8
+ * claimWindowSeconds: 3600,
8
9
  * purchase: {
9
10
  * merchantName: "Blue Bottle Coffee",
10
11
  * amount: 2450,
11
12
  * currency: "USD"
12
13
  * },
13
14
  * reference: "checkout_7f3a",
15
+ * returnUrl: "sms:+15551234567",
14
16
  * requestAgentToken: true
15
17
  * }
16
18
  */
@@ -20,14 +22,18 @@ export interface CreateCardSessionsRequest {
20
22
  cardId: string;
21
23
  /** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
22
24
  customerPartyId?: string;
23
- /** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. */
25
+ /** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. When the card fields are an iframe from checkoutshopper-live.adyen.com or flex.cybersource.com, list that host, and for CyberSource also the merchant host that serves the payment page. */
24
26
  allowedHosts: string[];
25
27
  /** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
26
28
  ttlSeconds?: number;
29
+ /** How long after creation you can claim the session, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. The user still has to approve within 10 minutes; a longer window only gives you more time to claim and pay after they do. Sets claimExpiresAt. */
30
+ claimWindowSeconds?: number;
27
31
  /** What the agent is buying. Required for a card the user added (eac_): the user approves this exact purchase. */
28
32
  purchase?: Natural.CreateCardSessionsRequestPurchase;
29
33
  /** Your own reference for the session, such as your checkout or task ID. Not unique: filter GET /card-sessions by it to find the session again. */
30
34
  reference?: string;
35
+ /** Where to send the user once they approve or decline: an https page in your product, or sms:+15551234567 to reopen your Messages thread. It's added to approvalUrl as returnTo. The approval page opens https pages on its own after the user answers, and offers a button for sms: links. */
36
+ returnUrl?: string;
31
37
  /** Cards the user added only, for a USD purchase of at most $999,999.99. A backup for checkouts that don't send the raw card number in the HTTP request, for example ones that encrypt it in the browser, so the proxy can't swap it in. Paying through the proxy stays the default. On approval, Natural also tries to set up agent payments on the card. Most cards don't support them yet, so agentToken.mandateId is often null: then claim this session and try the proxy. Defaults to false. */
32
38
  requestAgentToken?: boolean;
33
39
  }
@@ -9,7 +9,9 @@ export interface CreateCardSessionsResponse {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -9,7 +9,9 @@ export interface GetCardSessionsResponse {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -9,7 +9,9 @@ export interface ListCardSessionsResponseDataItem {
9
9
  allowedHosts: string[];
10
10
  /** The reference you created the session with. Null when you didn't set one. */
11
11
  reference: string | null;
12
- /** A pending session must be approved, and an approved one claimed, before this. */
12
+ /** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
13
+ approvalExpiresAt: string;
14
+ /** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
13
15
  claimExpiresAt: string;
14
16
  claimedAt: string | null;
15
17
  /** When the claimed proxy login stops working. */
@@ -155,4 +155,32 @@ export declare class ExternalAccountsClient {
155
155
  * await client.externalAccounts.listCards()
156
156
  */
157
157
  listCards(request?: Natural.ListCardsExternalAccountsRequest, requestOptions?: ExternalAccountsClient.RequestOptions): Promise<core.Page<Natural.ListCardsExternalAccountsResponseDataItem, Natural.ListCardsExternalAccountsResponse>>;
158
+ /**
159
+ * Remove a saved card
160
+ *
161
+ * @param {Natural.RemoveCardExternalAccountsRequest} request
162
+ * @param {ExternalAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
163
+ *
164
+ * @throws {@link Natural.BadRequestError}
165
+ * @throws {@link Natural.UnauthorizedError}
166
+ * @throws {@link Natural.ForbiddenError}
167
+ * @throws {@link Natural.NotFoundError}
168
+ * @throws {@link Natural.ConflictError}
169
+ * @throws {@link Natural.UnprocessableEntityError}
170
+ * @throws {@link Natural.PreconditionError}
171
+ * @throws {@link Natural.TooManyRequestsError}
172
+ * @throws {@link Natural.InternalServerError}
173
+ * @throws {@link Natural.NotImplementedError}
174
+ * @throws {@link Natural.BadGatewayError}
175
+ * @throws {@link Natural.ServiceUnavailableError}
176
+ * @throws {@link errors.NaturalError}
177
+ * @throws {@link errors.NaturalTimeoutError}
178
+ *
179
+ * @example
180
+ * await client.externalAccounts.removeCard({
181
+ * externalAccountId: "externalAccountId"
182
+ * })
183
+ */
184
+ removeCard(request: Natural.RemoveCardExternalAccountsRequest, requestOptions?: ExternalAccountsClient.RequestOptions): core.HttpResponsePromise<Natural.RemoveCardExternalAccountsResponse>;
185
+ private __removeCard;
158
186
  }
@@ -610,5 +610,107 @@ class ExternalAccountsClient {
610
610
  });
611
611
  });
612
612
  }
613
+ /**
614
+ * Remove a saved card
615
+ *
616
+ * @param {Natural.RemoveCardExternalAccountsRequest} request
617
+ * @param {ExternalAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
618
+ *
619
+ * @throws {@link Natural.BadRequestError}
620
+ * @throws {@link Natural.UnauthorizedError}
621
+ * @throws {@link Natural.ForbiddenError}
622
+ * @throws {@link Natural.NotFoundError}
623
+ * @throws {@link Natural.ConflictError}
624
+ * @throws {@link Natural.UnprocessableEntityError}
625
+ * @throws {@link Natural.PreconditionError}
626
+ * @throws {@link Natural.TooManyRequestsError}
627
+ * @throws {@link Natural.InternalServerError}
628
+ * @throws {@link Natural.NotImplementedError}
629
+ * @throws {@link Natural.BadGatewayError}
630
+ * @throws {@link Natural.ServiceUnavailableError}
631
+ * @throws {@link errors.NaturalError}
632
+ * @throws {@link errors.NaturalTimeoutError}
633
+ *
634
+ * @example
635
+ * await client.externalAccounts.removeCard({
636
+ * externalAccountId: "externalAccountId"
637
+ * })
638
+ */
639
+ removeCard(request, requestOptions) {
640
+ return core.HttpResponsePromise.fromPromise(this.__removeCard(request, requestOptions));
641
+ }
642
+ __removeCard(request, requestOptions) {
643
+ return __awaiter(this, void 0, void 0, function* () {
644
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
645
+ const { externalAccountId, customerPartyId } = request;
646
+ const _queryParams = {
647
+ customerPartyId,
648
+ };
649
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
650
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
651
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
652
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `card-external-accounts/${core.url.encodePathParam(externalAccountId)}`),
653
+ method: "DELETE",
654
+ headers: _headers,
655
+ queryString: core.url
656
+ .queryBuilder()
657
+ .addMany(_queryParams)
658
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
659
+ .build(),
660
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
661
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
662
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
663
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
664
+ logging: this._options.logging,
665
+ });
666
+ if (_response.ok) {
667
+ return {
668
+ data: serializers.RemoveCardExternalAccountsResponse.parseOrThrow(_response.body, {
669
+ unrecognizedObjectKeys: "passthrough",
670
+ allowUnrecognizedUnionMembers: true,
671
+ allowUnrecognizedEnumValues: true,
672
+ skipValidation: true,
673
+ breadcrumbsPrefix: ["response"],
674
+ }),
675
+ rawResponse: _response.rawResponse,
676
+ };
677
+ }
678
+ if (_response.error.reason === "status-code") {
679
+ switch (_response.error.statusCode) {
680
+ case 400:
681
+ throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
682
+ case 401:
683
+ throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
684
+ case 403:
685
+ throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
686
+ case 404:
687
+ throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
688
+ case 409:
689
+ throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
690
+ case 422:
691
+ throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
692
+ case 428:
693
+ throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
694
+ case 429:
695
+ throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
696
+ case 500:
697
+ throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
698
+ case 501:
699
+ throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
700
+ case 502:
701
+ throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
702
+ case 503:
703
+ throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
704
+ default:
705
+ throw new errors.NaturalError({
706
+ statusCode: _response.error.statusCode,
707
+ body: _response.error.body,
708
+ rawResponse: _response.rawResponse,
709
+ });
710
+ }
711
+ }
712
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/card-external-accounts/{externalAccountId}");
713
+ });
714
+ }
613
715
  }
614
716
  exports.ExternalAccountsClient = ExternalAccountsClient;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * externalAccountId: "externalAccountId"
5
+ * }
6
+ */
7
+ export interface RemoveCardExternalAccountsRequest {
8
+ /** Card external account ID (eac_*). */
9
+ externalAccountId: string;
10
+ /** Customer party whose saved card to remove (pty_*). Requires a connected agent with saved_cards.use permission. Omit to remove your own party's card. */
11
+ customerPartyId?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,5 @@ export type { CreateFromProcessorTokenExternalAccountsRequest } from "./CreateFr
2
2
  export type { GetExternalAccountsRequest } from "./GetExternalAccountsRequest.js";
3
3
  export type { ListCardsExternalAccountsRequest } from "./ListCardsExternalAccountsRequest.js";
4
4
  export type { ListExternalAccountsRequest } from "./ListExternalAccountsRequest.js";
5
+ export type { RemoveCardExternalAccountsRequest } from "./RemoveCardExternalAccountsRequest.js";
5
6
  export type { RemoveExternalAccountsRequest } from "./RemoveExternalAccountsRequest.js";
@@ -0,0 +1,5 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface RemoveCardExternalAccountsResponse {
3
+ data: Natural.RemoveCardExternalAccountsResponseData;
4
+ meta: Natural.RemoveCardExternalAccountsResponseMeta;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface RemoveCardExternalAccountsResponseData {
3
+ type: Natural.RemoveCardExternalAccountsResponseDataType;
4
+ /** External account ID (eac_*). */
5
+ id: string;
6
+ attributes: Natural.RemoveCardExternalAccountsResponseDataAttributes;
7
+ relationships: Natural.RemoveCardExternalAccountsResponseDataRelationships;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface RemoveCardExternalAccountsResponseDataAttributes {
3
+ /** Card network brand. */
4
+ brand: Natural.RemoveCardExternalAccountsResponseDataAttributesBrand;
5
+ /** Last four digits of the card number. */
6
+ lastFour: string;
7
+ /** The card's billing address on file, for filling a merchant's checkout (the ZIP drives the bank's AVS check). */
8
+ billingAddress: Natural.RemoveCardExternalAccountsResponseDataAttributesBillingAddress | null;
9
+ /** Lifecycle status of the external account. */
10
+ status: Natural.RemoveCardExternalAccountsResponseDataAttributesStatus;
11
+ /** Time when the card was linked. */
12
+ createdAt: Date;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface RemoveCardExternalAccountsResponseDataAttributesBillingAddress {
2
+ line1: string | null;
3
+ line2: string | null;
4
+ city: string | null;
5
+ state: string | null;
6
+ /** ZIP/postal code the bank's AVS check validates at checkout. */
7
+ postalCode: string | null;
8
+ country: string | null;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /** Card network brand. */
2
+ export declare const RemoveCardExternalAccountsResponseDataAttributesBrand: {
3
+ readonly Visa: "visa";
4
+ readonly Mastercard: "mastercard";
5
+ readonly Amex: "amex";
6
+ readonly Discover: "discover";
7
+ readonly Other: "other";
8
+ readonly Unknown: "unknown";
9
+ };
10
+ export type RemoveCardExternalAccountsResponseDataAttributesBrand = (typeof RemoveCardExternalAccountsResponseDataAttributesBrand)[keyof typeof RemoveCardExternalAccountsResponseDataAttributesBrand];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RemoveCardExternalAccountsResponseDataAttributesBrand = void 0;
5
+ /** Card network brand. */
6
+ exports.RemoveCardExternalAccountsResponseDataAttributesBrand = {
7
+ Visa: "visa",
8
+ Mastercard: "mastercard",
9
+ Amex: "amex",
10
+ Discover: "discover",
11
+ Other: "other",
12
+ Unknown: "unknown",
13
+ };
@@ -0,0 +1,11 @@
1
+ /** Lifecycle status of the external account. */
2
+ export declare const RemoveCardExternalAccountsResponseDataAttributesStatus: {
3
+ readonly Pending: "pending";
4
+ readonly New: "new";
5
+ readonly Active: "active";
6
+ readonly Disabled: "disabled";
7
+ readonly Deleted: "deleted";
8
+ readonly Unknown: "unknown";
9
+ readonly VerificationFailed: "verification_failed";
10
+ };
11
+ export type RemoveCardExternalAccountsResponseDataAttributesStatus = (typeof RemoveCardExternalAccountsResponseDataAttributesStatus)[keyof typeof RemoveCardExternalAccountsResponseDataAttributesStatus];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RemoveCardExternalAccountsResponseDataAttributesStatus = void 0;
5
+ /** Lifecycle status of the external account. */
6
+ exports.RemoveCardExternalAccountsResponseDataAttributesStatus = {
7
+ Pending: "pending",
8
+ New: "new",
9
+ Active: "active",
10
+ Disabled: "disabled",
11
+ Deleted: "deleted",
12
+ Unknown: "unknown",
13
+ VerificationFailed: "verification_failed",
14
+ };
@@ -0,0 +1,5 @@
1
+ import type * as Natural from "../../../index.js";
2
+ export interface RemoveCardExternalAccountsResponseDataRelationships {
3
+ /** Party that owns the external account. */
4
+ party: Natural.RemoveCardExternalAccountsResponseDataRelationshipsParty;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Party that owns the external account.
4
+ */
5
+ export interface RemoveCardExternalAccountsResponseDataRelationshipsParty {
6
+ /** Related resource identifier. */
7
+ data: Natural.RemoveCardExternalAccountsResponseDataRelationshipsPartyData;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Related resource identifier.
4
+ */
5
+ export interface RemoveCardExternalAccountsResponseDataRelationshipsPartyData {
6
+ /** Resource type. Always `party`. */
7
+ type: Natural.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType;
8
+ id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /** Resource type. Always `party`. */
2
+ export declare const RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType: {
3
+ readonly Party: "party";
4
+ };
5
+ export type RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType = (typeof RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType)[keyof typeof RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType = void 0;
5
+ /** Resource type. Always `party`. */
6
+ exports.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType = {
7
+ Party: "party",
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare const RemoveCardExternalAccountsResponseDataType: {
2
+ readonly CardExternalAccount: "cardExternalAccount";
3
+ };
4
+ export type RemoveCardExternalAccountsResponseDataType = (typeof RemoveCardExternalAccountsResponseDataType)[keyof typeof RemoveCardExternalAccountsResponseDataType];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RemoveCardExternalAccountsResponseDataType = void 0;
5
+ exports.RemoveCardExternalAccountsResponseDataType = {
6
+ CardExternalAccount: "cardExternalAccount",
7
+ };
@@ -0,0 +1,4 @@
1
+ export interface RemoveCardExternalAccountsResponseMeta {
2
+ /** Indicates the resource was deleted. */
3
+ deleted: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -63,6 +63,18 @@ export * from "./ListExternalAccountsResponseDataItem.js";
63
63
  export * from "./ListExternalAccountsResponseDataItemAttributesAccountType.js";
64
64
  export * from "./ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js";
65
65
  export * from "./ListExternalAccountsResponseDataItemAttributesConnectionStatus.js";
66
+ export * from "./RemoveCardExternalAccountsResponse.js";
67
+ export * from "./RemoveCardExternalAccountsResponseData.js";
68
+ export * from "./RemoveCardExternalAccountsResponseDataAttributes.js";
69
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js";
70
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesBrand.js";
71
+ export * from "./RemoveCardExternalAccountsResponseDataAttributesStatus.js";
72
+ export * from "./RemoveCardExternalAccountsResponseDataRelationships.js";
73
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsParty.js";
74
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js";
75
+ export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js";
76
+ export * from "./RemoveCardExternalAccountsResponseDataType.js";
77
+ export * from "./RemoveCardExternalAccountsResponseMeta.js";
66
78
  export * from "./RemoveExternalAccountsResponseDataAttributesAccountType.js";
67
79
  export * from "./RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js";
68
80
  export * from "./RemoveExternalAccountsResponseDataAttributesConnectionStatus.js";
@@ -79,6 +79,18 @@ __exportStar(require("./ListExternalAccountsResponseDataItem.js"), exports);
79
79
  __exportStar(require("./ListExternalAccountsResponseDataItemAttributesAccountType.js"), exports);
80
80
  __exportStar(require("./ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js"), exports);
81
81
  __exportStar(require("./ListExternalAccountsResponseDataItemAttributesConnectionStatus.js"), exports);
82
+ __exportStar(require("./RemoveCardExternalAccountsResponse.js"), exports);
83
+ __exportStar(require("./RemoveCardExternalAccountsResponseData.js"), exports);
84
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataAttributes.js"), exports);
85
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js"), exports);
86
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataAttributesBrand.js"), exports);
87
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataAttributesStatus.js"), exports);
88
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataRelationships.js"), exports);
89
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataRelationshipsParty.js"), exports);
90
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js"), exports);
91
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js"), exports);
92
+ __exportStar(require("./RemoveCardExternalAccountsResponseDataType.js"), exports);
93
+ __exportStar(require("./RemoveCardExternalAccountsResponseMeta.js"), exports);
82
94
  __exportStar(require("./RemoveExternalAccountsResponseDataAttributesAccountType.js"), exports);
83
95
  __exportStar(require("./RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js"), exports);
84
96
  __exportStar(require("./RemoveExternalAccountsResponseDataAttributesConnectionStatus.js"), exports);
@@ -4,4 +4,6 @@ export interface CardPaymentRelationships {
4
4
  paymentIntent: Natural.CardPaymentRelationshipsPaymentIntent;
5
5
  /** Up to 25 newest refund references, including pending and failed refunds. List refunds by cardPaymentId for the full history. */
6
6
  refunds: Natural.CardPaymentRelationshipsRefunds;
7
+ /** The same payment in GET /transactions. Null until the payment first changes status. */
8
+ transaction: Natural.CardPaymentRelationshipsTransaction;
7
9
  }
@@ -0,0 +1,8 @@
1
+ import type * as Natural from "../index.js";
2
+ /**
3
+ * The same payment in GET /transactions. Null until the payment first changes status.
4
+ */
5
+ export interface CardPaymentRelationshipsTransaction {
6
+ /** Related resource identifier. */
7
+ data: Natural.CardPaymentRelationshipsTransactionData | null;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type * as Natural from "../index.js";
2
+ /**
3
+ * Related resource identifier.
4
+ */
5
+ export interface CardPaymentRelationshipsTransactionData {
6
+ /** Resource type. Always `transaction`. */
7
+ type: Natural.CardPaymentRelationshipsTransactionDataType;
8
+ /** Transaction ID (txn_*). */
9
+ id: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /** Resource type. Always `transaction`. */
2
+ export declare const CardPaymentRelationshipsTransactionDataType: {
3
+ readonly Transaction: "transaction";
4
+ };
5
+ export type CardPaymentRelationshipsTransactionDataType = (typeof CardPaymentRelationshipsTransactionDataType)[keyof typeof CardPaymentRelationshipsTransactionDataType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CardPaymentRelationshipsTransactionDataType = void 0;
5
+ /** Resource type. Always `transaction`. */
6
+ exports.CardPaymentRelationshipsTransactionDataType = {
7
+ Transaction: "transaction",
8
+ };
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.js";
32
32
  export * from "./CardPaymentRelationshipsRefunds.js";
33
33
  export * from "./CardPaymentRelationshipsRefundsDataItem.js";
34
34
  export * from "./CardPaymentRelationshipsRefundsDataItemType.js";
35
+ export * from "./CardPaymentRelationshipsTransaction.js";
36
+ export * from "./CardPaymentRelationshipsTransactionData.js";
37
+ export * from "./CardPaymentRelationshipsTransactionDataType.js";
35
38
  export * from "./CardPaymentType.js";
36
39
  export * from "./ComplianceSessionStatusResponse.js";
37
40
  export * from "./ComplianceSessionStatusResponseData.js";
@@ -48,6 +48,9 @@ __exportStar(require("./CardPaymentRelationshipsPaymentIntentDataType.js"), expo
48
48
  __exportStar(require("./CardPaymentRelationshipsRefunds.js"), exports);
49
49
  __exportStar(require("./CardPaymentRelationshipsRefundsDataItem.js"), exports);
50
50
  __exportStar(require("./CardPaymentRelationshipsRefundsDataItemType.js"), exports);
51
+ __exportStar(require("./CardPaymentRelationshipsTransaction.js"), exports);
52
+ __exportStar(require("./CardPaymentRelationshipsTransactionData.js"), exports);
53
+ __exportStar(require("./CardPaymentRelationshipsTransactionDataType.js"), exports);
51
54
  __exportStar(require("./CardPaymentType.js"), exports);
52
55
  __exportStar(require("./ComplianceSessionStatusResponse.js"), exports);
53
56
  __exportStar(require("./ComplianceSessionStatusResponseData.js"), exports);