@astrada.co/ts-astrada-sdk 1.1.0 → 1.3.0

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 (251) hide show
  1. package/.github/workflows/api-sdk-release.yml +33 -20
  2. package/CHANGELOG.md +2 -2
  3. package/LICENSE +21 -0
  4. package/README.md +0 -2
  5. package/dist/apis/CardApi.js +218 -0
  6. package/dist/apis/CardSubscriptionApi.js +268 -0
  7. package/dist/apis/CardholderApi.js +138 -0
  8. package/dist/apis/EnrollmentMethodsApi.js +139 -0
  9. package/dist/apis/NetworkBulkFeedsApi.js +264 -0
  10. package/dist/apis/SubaccountsApi.js +319 -0
  11. package/dist/apis/TransactionMessagesApi.js +138 -0
  12. package/dist/apis/TransactionsApi.js +215 -0
  13. package/dist/apis/WebhooksApi.js +380 -0
  14. package/{lib → dist}/models/Card.js +5 -4
  15. package/{lib → dist}/models/CardLinks.js +3 -2
  16. package/{lib → dist}/models/CardSubscription.js +7 -6
  17. package/{lib → dist}/models/CardSubscriptionLinks.js +3 -2
  18. package/{lib → dist}/models/Cardholder.js +6 -5
  19. package/{lib → dist}/models/CardholderCorporate.js +2 -1
  20. package/{lib → dist}/models/CardholderLinks.js +3 -2
  21. package/{lib → dist}/models/Conflict.js +2 -1
  22. package/{lib → dist}/models/CreateNetworkBulkFeedRequest.js +2 -1
  23. package/{lib → dist}/models/CreateSubaccountRequest.js +3 -2
  24. package/{lib → dist}/models/CreateWebhook201Response.d.ts +2 -0
  25. package/{lib → dist}/models/CreateWebhook201Response.js +8 -5
  26. package/{lib → dist}/models/CreateWebhookRequest.d.ts +2 -0
  27. package/{lib → dist}/models/CreateWebhookRequest.js +5 -2
  28. package/{lib → dist}/models/EnrollmentMethods200Response.js +2 -1
  29. package/dist/models/EnrollmentMethods413Response.d.ts +45 -0
  30. package/dist/models/EnrollmentMethods413Response.js +62 -0
  31. package/{lib → dist}/models/EnrollmentMethodsRequest.js +2 -1
  32. package/dist/models/GetCardSubscription404Response.d.ts +57 -0
  33. package/dist/models/GetCardSubscription404Response.js +66 -0
  34. package/{lib → dist}/models/GetSubaccounts200Response.js +4 -3
  35. package/{lib → dist}/models/GetSubaccounts200ResponseEmbedded.js +3 -2
  36. package/{lib → dist}/models/GetSubaccounts200ResponseLinks.js +3 -2
  37. package/{lib → dist}/models/GetTransactions200Response.js +4 -3
  38. package/{lib → dist}/models/GetTransactions200ResponseEmbedded.js +3 -2
  39. package/{lib → dist}/models/InlineObject.js +3 -2
  40. package/{lib → dist}/models/InlineObject1.js +2 -1
  41. package/{lib → dist}/models/InlineObject2.js +2 -1
  42. package/{lib → dist}/models/InlineObject3.js +2 -1
  43. package/{lib → dist}/models/InlineObject4.js +2 -1
  44. package/{lib → dist}/models/InlineObject5.js +2 -1
  45. package/{lib → dist}/models/InlineObjectErrorsInner.js +2 -1
  46. package/{lib → dist}/models/Link.js +2 -1
  47. package/{lib → dist}/models/ListCardSubscriptions200Response.js +4 -3
  48. package/{lib → dist}/models/ListCardSubscriptions200ResponseEmbedded.js +3 -2
  49. package/{lib → dist}/models/ListCardSubscriptions200ResponseLinks.js +3 -2
  50. package/dist/models/ListCardSubscriptions400Response.d.ts +52 -0
  51. package/dist/models/ListCardSubscriptions400Response.js +65 -0
  52. package/dist/models/ListCardSubscriptions400ResponseErrorsInner.d.ts +38 -0
  53. package/dist/models/ListCardSubscriptions400ResponseErrorsInner.js +55 -0
  54. package/dist/models/ListCardSubscriptions401Response.d.ts +45 -0
  55. package/dist/models/ListCardSubscriptions401Response.js +62 -0
  56. package/dist/models/ListCardSubscriptions403Response.d.ts +45 -0
  57. package/dist/models/ListCardSubscriptions403Response.js +62 -0
  58. package/dist/models/ListCardSubscriptions500Response.d.ts +45 -0
  59. package/dist/models/ListCardSubscriptions500Response.js +62 -0
  60. package/{lib → dist}/models/ListCards200Response.js +4 -3
  61. package/{lib → dist}/models/ListCards200ResponseEmbedded.js +3 -2
  62. package/{lib → dist}/models/ListNetworkBulkFeeds200Response.js +4 -3
  63. package/{lib → dist}/models/ListNetworkBulkFeeds200ResponseEmbedded.js +3 -2
  64. package/{lib → dist}/models/ListWebhooks200Response.js +4 -3
  65. package/{lib → dist}/models/ListWebhooks200ResponseEmbedded.js +3 -2
  66. package/{lib → dist}/models/ListWebhooks200ResponseLinks.js +3 -2
  67. package/{lib → dist}/models/NetworkBulkFeeds.d.ts +16 -1
  68. package/{lib → dist}/models/NetworkBulkFeeds.js +18 -5
  69. package/{lib → dist}/models/Subaccount.js +6 -5
  70. package/{lib → dist}/models/SubaccountConfiguration.js +3 -2
  71. package/{lib → dist}/models/SubaccountConfigurationVISA.js +2 -1
  72. package/{lib → dist}/models/Transaction.js +7 -6
  73. package/{lib → dist}/models/TransactionAcceptor.js +2 -1
  74. package/{lib → dist}/models/TransactionLinks.js +3 -2
  75. package/{lib → dist}/models/TransactionMessage.js +7 -6
  76. package/{lib → dist}/models/TransactionMessageAcceptor.js +2 -1
  77. package/{lib → dist}/models/UnprocessableEntity.js +2 -1
  78. package/{lib → dist}/models/UpdateCardSubscriptionRequest.js +2 -1
  79. package/{lib → dist}/models/UpdateSubaccountRequest.js +3 -2
  80. package/{lib → dist}/models/UpdateWebhookRequest.d.ts +2 -0
  81. package/{lib → dist}/models/UpdateWebhookRequest.js +5 -2
  82. package/{lib → dist}/models/Webhook.d.ts +2 -0
  83. package/{lib → dist}/models/Webhook.js +8 -5
  84. package/{lib → dist}/models/index.d.ts +7 -7
  85. package/{lib → dist}/models/index.js +7 -7
  86. package/dist/runtime.js +638 -0
  87. package/docs/Card.md +54 -0
  88. package/docs/CardApi.md +176 -0
  89. package/docs/CardLinks.md +36 -0
  90. package/docs/CardSubscription.md +56 -0
  91. package/docs/CardSubscriptionApi.md +252 -0
  92. package/docs/CardSubscriptionLinks.md +38 -0
  93. package/docs/Cardholder.md +44 -0
  94. package/docs/CardholderApi.md +85 -0
  95. package/docs/CardholderCorporate.md +37 -0
  96. package/docs/CardholderLinks.md +34 -0
  97. package/docs/Conflict.md +40 -0
  98. package/docs/CreateNetworkBulkFeedRequest.md +38 -0
  99. package/docs/CreateSubaccountRequest.md +36 -0
  100. package/docs/CreateWebhook201Response.md +52 -0
  101. package/docs/CreateWebhookRequest.md +42 -0
  102. package/docs/EnrollmentMethods200Response.md +34 -0
  103. package/docs/EnrollmentMethods413Response.md +36 -0
  104. package/docs/EnrollmentMethodsApi.md +85 -0
  105. package/docs/EnrollmentMethodsRequest.md +34 -0
  106. package/docs/GetCardSubscription404Response.md +40 -0
  107. package/docs/GetSubaccounts200Response.md +36 -0
  108. package/docs/GetSubaccounts200ResponseEmbedded.md +34 -0
  109. package/docs/GetSubaccounts200ResponseLinks.md +36 -0
  110. package/docs/GetTransactions200Response.md +36 -0
  111. package/docs/GetTransactions200ResponseEmbedded.md +34 -0
  112. package/docs/Link.md +48 -0
  113. package/docs/ListCardSubscriptions200Response.md +38 -0
  114. package/docs/ListCardSubscriptions200ResponseEmbedded.md +34 -0
  115. package/docs/ListCardSubscriptions200ResponseLinks.md +42 -0
  116. package/docs/ListCardSubscriptions400Response.md +38 -0
  117. package/docs/ListCardSubscriptions400ResponseErrorsInner.md +36 -0
  118. package/docs/ListCardSubscriptions401Response.md +36 -0
  119. package/docs/ListCardSubscriptions403Response.md +36 -0
  120. package/docs/ListCardSubscriptions500Response.md +36 -0
  121. package/docs/ListCards200Response.md +38 -0
  122. package/docs/ListCards200ResponseEmbedded.md +34 -0
  123. package/docs/ListNetworkBulkFeeds200Response.md +38 -0
  124. package/docs/ListNetworkBulkFeeds200ResponseEmbedded.md +34 -0
  125. package/docs/ListWebhooks200Response.md +37 -0
  126. package/docs/ListWebhooks200ResponseEmbedded.md +34 -0
  127. package/docs/ListWebhooks200ResponseLinks.md +36 -0
  128. package/docs/NetworkBulkFeeds.md +48 -0
  129. package/docs/NetworkBulkFeedsApi.md +247 -0
  130. package/docs/Subaccount.md +46 -0
  131. package/docs/SubaccountConfiguration.md +37 -0
  132. package/docs/SubaccountConfigurationVISA.md +34 -0
  133. package/docs/SubaccountsApi.md +321 -0
  134. package/docs/Transaction.md +66 -0
  135. package/docs/TransactionAcceptor.md +41 -0
  136. package/docs/TransactionLinks.md +40 -0
  137. package/docs/TransactionMessage.md +70 -0
  138. package/docs/TransactionMessageAcceptor.md +47 -0
  139. package/docs/TransactionMessagesApi.md +85 -0
  140. package/docs/TransactionsApi.md +174 -0
  141. package/docs/UnprocessableEntity.md +36 -0
  142. package/docs/UpdateCardSubscriptionRequest.md +34 -0
  143. package/docs/UpdateSubaccountRequest.md +36 -0
  144. package/docs/UpdateWebhookRequest.md +40 -0
  145. package/docs/Webhook.md +51 -0
  146. package/docs/WebhooksApi.md +401 -0
  147. package/openapitools.json +7 -0
  148. package/package.json +11 -11
  149. package/src/apis/CardApi.ts +15 -15
  150. package/src/apis/CardSubscriptionApi.ts +15 -15
  151. package/src/apis/CardholderApi.ts +15 -15
  152. package/src/apis/EnrollmentMethodsApi.ts +15 -15
  153. package/src/apis/NetworkBulkFeedsApi.ts +15 -15
  154. package/src/apis/SubaccountsApi.ts +15 -15
  155. package/src/apis/TransactionMessagesApi.ts +15 -15
  156. package/src/apis/TransactionsApi.ts +15 -15
  157. package/src/apis/WebhooksApi.ts +15 -15
  158. package/src/models/Card.ts +2 -2
  159. package/src/models/CardSubscription.ts +4 -4
  160. package/src/models/Cardholder.ts +2 -2
  161. package/src/models/CreateWebhook201Response.ts +5 -3
  162. package/src/models/CreateWebhookRequest.ts +3 -1
  163. package/src/models/EnrollmentMethods413Response.ts +85 -0
  164. package/src/models/GetCardSubscription404Response.ts +101 -0
  165. package/src/models/ListCardSubscriptions400Response.ts +101 -0
  166. package/src/models/ListCardSubscriptions400ResponseErrorsInner.ts +75 -0
  167. package/src/models/ListCardSubscriptions401Response.ts +85 -0
  168. package/src/models/ListCardSubscriptions403Response.ts +85 -0
  169. package/src/models/ListCardSubscriptions500Response.ts +85 -0
  170. package/src/models/NetworkBulkFeeds.ts +22 -3
  171. package/src/models/Subaccount.ts +2 -2
  172. package/src/models/Transaction.ts +3 -3
  173. package/src/models/TransactionMessage.ts +3 -3
  174. package/src/models/UpdateWebhookRequest.ts +3 -1
  175. package/src/models/Webhook.ts +5 -3
  176. package/src/models/index.ts +7 -7
  177. package/src/runtime.ts +0 -1
  178. package/tsconfig.json +14 -7
  179. package/dist/astrada.co-ts-astrada-sdk-1.1.0.tgz +0 -0
  180. package/lib/apis/CardApi.js +0 -109
  181. package/lib/apis/CardSubscriptionApi.js +0 -133
  182. package/lib/apis/CardholderApi.js +0 -56
  183. package/lib/apis/EnrollmentMethodsApi.js +0 -57
  184. package/lib/apis/NetworkBulkFeedsApi.js +0 -129
  185. package/lib/apis/SubaccountsApi.js +0 -157
  186. package/lib/apis/TransactionMessagesApi.js +0 -56
  187. package/lib/apis/TransactionsApi.js +0 -106
  188. package/lib/apis/WebhooksApi.js +0 -194
  189. package/lib/runtime.js +0 -394
  190. package/openapi-generator/templates/README.mustache +0 -274
  191. package/openapi-generator/templates/runtime.mustache +0 -515
  192. /package/{lib → dist}/apis/CardApi.d.ts +0 -0
  193. /package/{lib → dist}/apis/CardSubscriptionApi.d.ts +0 -0
  194. /package/{lib → dist}/apis/CardholderApi.d.ts +0 -0
  195. /package/{lib → dist}/apis/EnrollmentMethodsApi.d.ts +0 -0
  196. /package/{lib → dist}/apis/NetworkBulkFeedsApi.d.ts +0 -0
  197. /package/{lib → dist}/apis/SubaccountsApi.d.ts +0 -0
  198. /package/{lib → dist}/apis/TransactionMessagesApi.d.ts +0 -0
  199. /package/{lib → dist}/apis/TransactionsApi.d.ts +0 -0
  200. /package/{lib → dist}/apis/WebhooksApi.d.ts +0 -0
  201. /package/{lib → dist}/apis/index.d.ts +0 -0
  202. /package/{lib → dist}/apis/index.js +0 -0
  203. /package/{lib → dist}/index.d.ts +0 -0
  204. /package/{lib → dist}/index.js +0 -0
  205. /package/{lib → dist}/models/Card.d.ts +0 -0
  206. /package/{lib → dist}/models/CardLinks.d.ts +0 -0
  207. /package/{lib → dist}/models/CardSubscription.d.ts +0 -0
  208. /package/{lib → dist}/models/CardSubscriptionLinks.d.ts +0 -0
  209. /package/{lib → dist}/models/Cardholder.d.ts +0 -0
  210. /package/{lib → dist}/models/CardholderCorporate.d.ts +0 -0
  211. /package/{lib → dist}/models/CardholderLinks.d.ts +0 -0
  212. /package/{lib → dist}/models/Conflict.d.ts +0 -0
  213. /package/{lib → dist}/models/CreateNetworkBulkFeedRequest.d.ts +0 -0
  214. /package/{lib → dist}/models/CreateSubaccountRequest.d.ts +0 -0
  215. /package/{lib → dist}/models/EnrollmentMethods200Response.d.ts +0 -0
  216. /package/{lib → dist}/models/EnrollmentMethodsRequest.d.ts +0 -0
  217. /package/{lib → dist}/models/GetSubaccounts200Response.d.ts +0 -0
  218. /package/{lib → dist}/models/GetSubaccounts200ResponseEmbedded.d.ts +0 -0
  219. /package/{lib → dist}/models/GetSubaccounts200ResponseLinks.d.ts +0 -0
  220. /package/{lib → dist}/models/GetTransactions200Response.d.ts +0 -0
  221. /package/{lib → dist}/models/GetTransactions200ResponseEmbedded.d.ts +0 -0
  222. /package/{lib → dist}/models/InlineObject.d.ts +0 -0
  223. /package/{lib → dist}/models/InlineObject1.d.ts +0 -0
  224. /package/{lib → dist}/models/InlineObject2.d.ts +0 -0
  225. /package/{lib → dist}/models/InlineObject3.d.ts +0 -0
  226. /package/{lib → dist}/models/InlineObject4.d.ts +0 -0
  227. /package/{lib → dist}/models/InlineObject5.d.ts +0 -0
  228. /package/{lib → dist}/models/InlineObjectErrorsInner.d.ts +0 -0
  229. /package/{lib → dist}/models/Link.d.ts +0 -0
  230. /package/{lib → dist}/models/ListCardSubscriptions200Response.d.ts +0 -0
  231. /package/{lib → dist}/models/ListCardSubscriptions200ResponseEmbedded.d.ts +0 -0
  232. /package/{lib → dist}/models/ListCardSubscriptions200ResponseLinks.d.ts +0 -0
  233. /package/{lib → dist}/models/ListCards200Response.d.ts +0 -0
  234. /package/{lib → dist}/models/ListCards200ResponseEmbedded.d.ts +0 -0
  235. /package/{lib → dist}/models/ListNetworkBulkFeeds200Response.d.ts +0 -0
  236. /package/{lib → dist}/models/ListNetworkBulkFeeds200ResponseEmbedded.d.ts +0 -0
  237. /package/{lib → dist}/models/ListWebhooks200Response.d.ts +0 -0
  238. /package/{lib → dist}/models/ListWebhooks200ResponseEmbedded.d.ts +0 -0
  239. /package/{lib → dist}/models/ListWebhooks200ResponseLinks.d.ts +0 -0
  240. /package/{lib → dist}/models/Subaccount.d.ts +0 -0
  241. /package/{lib → dist}/models/SubaccountConfiguration.d.ts +0 -0
  242. /package/{lib → dist}/models/SubaccountConfigurationVISA.d.ts +0 -0
  243. /package/{lib → dist}/models/Transaction.d.ts +0 -0
  244. /package/{lib → dist}/models/TransactionAcceptor.d.ts +0 -0
  245. /package/{lib → dist}/models/TransactionLinks.d.ts +0 -0
  246. /package/{lib → dist}/models/TransactionMessage.d.ts +0 -0
  247. /package/{lib → dist}/models/TransactionMessageAcceptor.d.ts +0 -0
  248. /package/{lib → dist}/models/UnprocessableEntity.d.ts +0 -0
  249. /package/{lib → dist}/models/UpdateCardSubscriptionRequest.d.ts +0 -0
  250. /package/{lib → dist}/models/UpdateSubaccountRequest.d.ts +0 -0
  251. /package/{lib → dist}/runtime.d.ts +0 -0
@@ -0,0 +1,247 @@
1
+ # NetworkBulkFeedsApi
2
+
3
+ All URIs are relative to *https://api.astrada.co*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createNetworkBulkFeed**](NetworkBulkFeedsApi.md#createnetworkbulkfeedoperation) | **POST** /network-bulk-feeds | Create network bulk feed |
8
+ | [**getNetworkBulkFeed**](NetworkBulkFeedsApi.md#getnetworkbulkfeed) | **GET** /network-bulk-feeds/{networkBulkFeedId} | Retrieve a network bulk feed |
9
+ | [**listNetworkBulkFeeds**](NetworkBulkFeedsApi.md#listnetworkbulkfeeds) | **GET** /network-bulk-feeds | List network bulk feed |
10
+
11
+
12
+
13
+ ## createNetworkBulkFeed
14
+
15
+ > NetworkBulkFeeds createNetworkBulkFeed(createNetworkBulkFeedRequest)
16
+
17
+ Create network bulk feed
18
+
19
+ Registers a new feed for network bulk
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import {
25
+ Configuration,
26
+ NetworkBulkFeedsApi,
27
+ } from '@astrada.co/ts-astrada-sdk';
28
+ import type { CreateNetworkBulkFeedOperationRequest } from '@astrada.co/ts-astrada-sdk';
29
+
30
+ async function example() {
31
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
32
+ const config = new Configuration({
33
+ // To configure OAuth2 access token for authorization: main-auth implicit
34
+ accessToken: "YOUR ACCESS TOKEN",
35
+ });
36
+ const api = new NetworkBulkFeedsApi(config);
37
+
38
+ const body = {
39
+ // CreateNetworkBulkFeedRequest
40
+ createNetworkBulkFeedRequest: {"networkReference":"ABC12345","network":"MASTERCARD","subaccountId":"24c4f90d-ab3b-4f6e-8a1d-d251a4fcf34c"},
41
+ } satisfies CreateNetworkBulkFeedOperationRequest;
42
+
43
+ try {
44
+ const data = await api.createNetworkBulkFeed(body);
45
+ console.log(data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ }
49
+ }
50
+
51
+ // Run the test
52
+ example().catch(console.error);
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ | Name | Type | Description | Notes |
59
+ |------------- | ------------- | ------------- | -------------|
60
+ | **createNetworkBulkFeedRequest** | [CreateNetworkBulkFeedRequest](CreateNetworkBulkFeedRequest.md) | | |
61
+
62
+ ### Return type
63
+
64
+ [**NetworkBulkFeeds**](NetworkBulkFeeds.md)
65
+
66
+ ### Authorization
67
+
68
+ [main-auth implicit](../README.md#main-auth-implicit)
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: `application/json`
73
+ - **Accept**: `application/hal+json`, `application/problem+json`
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **201** | Resource created | - |
80
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
81
+ | **401** | Authentication credentials were either missing or incorrect | - |
82
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
83
+ | **409** | Request conflict with the current state of the target resource | - |
84
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
85
+
86
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
87
+
88
+
89
+ ## getNetworkBulkFeed
90
+
91
+ > NetworkBulkFeeds getNetworkBulkFeed(networkBulkFeedId)
92
+
93
+ Retrieve a network bulk feed
94
+
95
+ Returns detailed information about a specific network bulk feed by its identifier.
96
+
97
+ ### Example
98
+
99
+ ```ts
100
+ import {
101
+ Configuration,
102
+ NetworkBulkFeedsApi,
103
+ } from '@astrada.co/ts-astrada-sdk';
104
+ import type { GetNetworkBulkFeedRequest } from '@astrada.co/ts-astrada-sdk';
105
+
106
+ async function example() {
107
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
108
+ const config = new Configuration({
109
+ // To configure OAuth2 access token for authorization: main-auth implicit
110
+ accessToken: "YOUR ACCESS TOKEN",
111
+ });
112
+ const api = new NetworkBulkFeedsApi(config);
113
+
114
+ const body = {
115
+ // string
116
+ networkBulkFeedId: eb2ded7e-11fa-46fc-bd3e-f5b1d56fd3b3,
117
+ } satisfies GetNetworkBulkFeedRequest;
118
+
119
+ try {
120
+ const data = await api.getNetworkBulkFeed(body);
121
+ console.log(data);
122
+ } catch (error) {
123
+ console.error(error);
124
+ }
125
+ }
126
+
127
+ // Run the test
128
+ example().catch(console.error);
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+
134
+ | Name | Type | Description | Notes |
135
+ |------------- | ------------- | ------------- | -------------|
136
+ | **networkBulkFeedId** | `string` | | [Defaults to `undefined`] |
137
+
138
+ ### Return type
139
+
140
+ [**NetworkBulkFeeds**](NetworkBulkFeeds.md)
141
+
142
+ ### Authorization
143
+
144
+ [main-auth implicit](../README.md#main-auth-implicit)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: `application/hal+json`, `application/problem+json`
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ | **200** | Successful operation | - |
156
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
157
+ | **401** | Authentication credentials were either missing or incorrect | - |
158
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
159
+ | **404** | The requested resource was not found on the server | - |
160
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
163
+
164
+
165
+ ## listNetworkBulkFeeds
166
+
167
+ > ListNetworkBulkFeeds200Response listNetworkBulkFeeds(networkReference, subaccountId, limit, offset)
168
+
169
+ List network bulk feed
170
+
171
+ Returns all network bulk feeds under the account. By default, `GET /network-bulk-feeds` returns network bulk feeds ordered by the latest `createdAt`. This endpoint supports [offset-based pagination](https://docs.astrada.co/reference/pagination).
172
+
173
+ ### Example
174
+
175
+ ```ts
176
+ import {
177
+ Configuration,
178
+ NetworkBulkFeedsApi,
179
+ } from '@astrada.co/ts-astrada-sdk';
180
+ import type { ListNetworkBulkFeedsRequest } from '@astrada.co/ts-astrada-sdk';
181
+
182
+ async function example() {
183
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
184
+ const config = new Configuration({
185
+ // To configure OAuth2 access token for authorization: main-auth implicit
186
+ accessToken: "YOUR ACCESS TOKEN",
187
+ });
188
+ const api = new NetworkBulkFeedsApi(config);
189
+
190
+ const body = {
191
+ // string (optional)
192
+ networkReference: ABC12345,
193
+ // string (optional)
194
+ subaccountId: 2fd4d402-b759-479c-87a6-58d85e345356,
195
+ // number | Maximum number of items to return (optional)
196
+ limit: 100,
197
+ // number | The offset to use for pagination. Identifies the position of the first item returned in the collection (optional)
198
+ offset: 20,
199
+ } satisfies ListNetworkBulkFeedsRequest;
200
+
201
+ try {
202
+ const data = await api.listNetworkBulkFeeds(body);
203
+ console.log(data);
204
+ } catch (error) {
205
+ console.error(error);
206
+ }
207
+ }
208
+
209
+ // Run the test
210
+ example().catch(console.error);
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+
216
+ | Name | Type | Description | Notes |
217
+ |------------- | ------------- | ------------- | -------------|
218
+ | **networkReference** | `string` | | [Optional] [Defaults to `undefined`] |
219
+ | **subaccountId** | `string` | | [Optional] [Defaults to `undefined`] |
220
+ | **limit** | `number` | Maximum number of items to return | [Optional] [Defaults to `undefined`] |
221
+ | **offset** | `number` | The offset to use for pagination. Identifies the position of the first item returned in the collection | [Optional] [Defaults to `0`] |
222
+
223
+ ### Return type
224
+
225
+ [**ListNetworkBulkFeeds200Response**](ListNetworkBulkFeeds200Response.md)
226
+
227
+ ### Authorization
228
+
229
+ [main-auth implicit](../README.md#main-auth-implicit)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: Not defined
234
+ - **Accept**: `application/hal+json`, `application/problem+json`
235
+
236
+
237
+ ### HTTP response details
238
+ | Status code | Description | Response headers |
239
+ |-------------|-------------|------------------|
240
+ | **200** | Successful operation | - |
241
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
242
+ | **401** | Authentication credentials were either missing or incorrect | - |
243
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
244
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
245
+
246
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
247
+
@@ -0,0 +1,46 @@
1
+
2
+ # Subaccount
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `_links` | [CardholderLinks](CardholderLinks.md)
10
+ `accountId` | string
11
+ `id` | string
12
+ `name` | string
13
+ `createdAt` | Date
14
+ `updatedAt` | Date
15
+ `configurations` | [SubaccountConfiguration](SubaccountConfiguration.md)
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { Subaccount } from '@astrada.co/ts-astrada-sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "_links": null,
25
+ "accountId": null,
26
+ "id": null,
27
+ "name": null,
28
+ "createdAt": null,
29
+ "updatedAt": null,
30
+ "configurations": null,
31
+ } satisfies Subaccount
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as Subaccount
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,37 @@
1
+
2
+ # SubaccountConfiguration
3
+
4
+ Subaccount network and regional configurations which determine the available networks and geographies during card enrollment.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `VISA` | [SubaccountConfigurationVISA](SubaccountConfigurationVISA.md)
11
+ `MASTERCARD` | [SubaccountConfigurationVISA](SubaccountConfigurationVISA.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { SubaccountConfiguration } from '@astrada.co/ts-astrada-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "VISA": null,
21
+ "MASTERCARD": null,
22
+ } satisfies SubaccountConfiguration
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as SubaccountConfiguration
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,34 @@
1
+
2
+ # SubaccountConfigurationVISA
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `countries` | Array<string>
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { SubaccountConfigurationVISA } from '@astrada.co/ts-astrada-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "countries": null,
19
+ } satisfies SubaccountConfigurationVISA
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as SubaccountConfigurationVISA
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,321 @@
1
+ # SubaccountsApi
2
+
3
+ All URIs are relative to *https://api.astrada.co*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createSubaccount**](SubaccountsApi.md#createsubaccountoperation) | **POST** /subaccounts | Create subaccount |
8
+ | [**getSubaccount**](SubaccountsApi.md#getsubaccount) | **GET** /subaccounts/{subaccountId} | Retrieve subaccount |
9
+ | [**getSubaccounts**](SubaccountsApi.md#getsubaccounts) | **GET** /subaccounts | List subaccounts |
10
+ | [**updateSubaccount**](SubaccountsApi.md#updatesubaccountoperation) | **PATCH** /subaccounts/{subaccountId} | Update subaccount configurations |
11
+
12
+
13
+
14
+ ## createSubaccount
15
+
16
+ > Subaccount createSubaccount(createSubaccountRequest)
17
+
18
+ Create subaccount
19
+
20
+ Creates a new subaccount, allowing you to set network and regional configurations.
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ SubaccountsApi,
28
+ } from '@astrada.co/ts-astrada-sdk';
29
+ import type { CreateSubaccountOperationRequest } from '@astrada.co/ts-astrada-sdk';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
33
+ const config = new Configuration({
34
+ // To configure OAuth2 access token for authorization: main-auth implicit
35
+ accessToken: "YOUR ACCESS TOKEN",
36
+ });
37
+ const api = new SubaccountsApi(config);
38
+
39
+ const body = {
40
+ // CreateSubaccountRequest (optional)
41
+ createSubaccountRequest: {"name":"Subaccount A","configurations":{"VISA":{"countries":["USA","CAN"]},"MASTERCARD":{"countries":["USA"]}}},
42
+ } satisfies CreateSubaccountOperationRequest;
43
+
44
+ try {
45
+ const data = await api.createSubaccount(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **createSubaccountRequest** | [CreateSubaccountRequest](CreateSubaccountRequest.md) | | [Optional] |
62
+
63
+ ### Return type
64
+
65
+ [**Subaccount**](Subaccount.md)
66
+
67
+ ### Authorization
68
+
69
+ [main-auth implicit](../README.md#main-auth-implicit)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: `application/json`
74
+ - **Accept**: `application/hal+json`, `application/problem+json`
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **201** | New subaccount created successfully | - |
81
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
82
+ | **401** | Authentication credentials were either missing or incorrect | - |
83
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
84
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
85
+
86
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
87
+
88
+
89
+ ## getSubaccount
90
+
91
+ > Subaccount getSubaccount(subaccountId)
92
+
93
+ Retrieve subaccount
94
+
95
+ Returns detailed information about a specific subaccount by its identifier, including configuration details and associated data.
96
+
97
+ ### Example
98
+
99
+ ```ts
100
+ import {
101
+ Configuration,
102
+ SubaccountsApi,
103
+ } from '@astrada.co/ts-astrada-sdk';
104
+ import type { GetSubaccountRequest } from '@astrada.co/ts-astrada-sdk';
105
+
106
+ async function example() {
107
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
108
+ const config = new Configuration({
109
+ // To configure OAuth2 access token for authorization: main-auth implicit
110
+ accessToken: "YOUR ACCESS TOKEN",
111
+ });
112
+ const api = new SubaccountsApi(config);
113
+
114
+ const body = {
115
+ // string
116
+ subaccountId: 24c4f90d-ab3b-4f6e-8a1d-d251a4fcf34c,
117
+ } satisfies GetSubaccountRequest;
118
+
119
+ try {
120
+ const data = await api.getSubaccount(body);
121
+ console.log(data);
122
+ } catch (error) {
123
+ console.error(error);
124
+ }
125
+ }
126
+
127
+ // Run the test
128
+ example().catch(console.error);
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+
134
+ | Name | Type | Description | Notes |
135
+ |------------- | ------------- | ------------- | -------------|
136
+ | **subaccountId** | `string` | | [Defaults to `undefined`] |
137
+
138
+ ### Return type
139
+
140
+ [**Subaccount**](Subaccount.md)
141
+
142
+ ### Authorization
143
+
144
+ [main-auth implicit](../README.md#main-auth-implicit)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: `application/hal+json`, `application/problem+json`
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ | **200** | Details of the subaccount giving the accountId and subaccountId | - |
156
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
157
+ | **401** | Authentication credentials were either missing or incorrect | - |
158
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
159
+ | **404** | The requested resource was not found on the server | - |
160
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
163
+
164
+
165
+ ## getSubaccounts
166
+
167
+ > GetSubaccounts200Response getSubaccounts(cursor, limit)
168
+
169
+ List subaccounts
170
+
171
+ Returns a list of all subaccounts associated with the account. This endpoint supports [cursor-based pagination](https://docs.astrada.co/reference/pagination).
172
+
173
+ ### Example
174
+
175
+ ```ts
176
+ import {
177
+ Configuration,
178
+ SubaccountsApi,
179
+ } from '@astrada.co/ts-astrada-sdk';
180
+ import type { GetSubaccountsRequest } from '@astrada.co/ts-astrada-sdk';
181
+
182
+ async function example() {
183
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
184
+ const config = new Configuration({
185
+ // To configure OAuth2 access token for authorization: main-auth implicit
186
+ accessToken: "YOUR ACCESS TOKEN",
187
+ });
188
+ const api = new SubaccountsApi(config);
189
+
190
+ const body = {
191
+ // string | The cursor to use for pagination. Identifies your place on the list (optional)
192
+ cursor: ZXhhbXBsZQ==,
193
+ // number | Maximum number of items to return (optional)
194
+ limit: 100,
195
+ } satisfies GetSubaccountsRequest;
196
+
197
+ try {
198
+ const data = await api.getSubaccounts(body);
199
+ console.log(data);
200
+ } catch (error) {
201
+ console.error(error);
202
+ }
203
+ }
204
+
205
+ // Run the test
206
+ example().catch(console.error);
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+
212
+ | Name | Type | Description | Notes |
213
+ |------------- | ------------- | ------------- | -------------|
214
+ | **cursor** | `string` | The cursor to use for pagination. Identifies your place on the list | [Optional] [Defaults to `undefined`] |
215
+ | **limit** | `number` | Maximum number of items to return | [Optional] [Defaults to `undefined`] |
216
+
217
+ ### Return type
218
+
219
+ [**GetSubaccounts200Response**](GetSubaccounts200Response.md)
220
+
221
+ ### Authorization
222
+
223
+ [main-auth implicit](../README.md#main-auth-implicit)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: Not defined
228
+ - **Accept**: `application/hal+json`, `application/problem+json`
229
+
230
+
231
+ ### HTTP response details
232
+ | Status code | Description | Response headers |
233
+ |-------------|-------------|------------------|
234
+ | **200** | Subaccounts list retrieved successfully | - |
235
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
236
+ | **401** | Authentication credentials were either missing or incorrect | - |
237
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
238
+ | **404** | The requested resource was not found on the server | - |
239
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
240
+
241
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
242
+
243
+
244
+ ## updateSubaccount
245
+
246
+ > Subaccount updateSubaccount(subaccountId, updateSubaccountRequest)
247
+
248
+ Update subaccount configurations
249
+
250
+ Update a subaccount name and configurations. All updated configurations are validated against the capabilities of the main account to ensure compliance. It is possible to add new networks and/or regions but it is not possible to remove any configurations that were previously set.
251
+
252
+ ### Example
253
+
254
+ ```ts
255
+ import {
256
+ Configuration,
257
+ SubaccountsApi,
258
+ } from '@astrada.co/ts-astrada-sdk';
259
+ import type { UpdateSubaccountOperationRequest } from '@astrada.co/ts-astrada-sdk';
260
+
261
+ async function example() {
262
+ console.log("🚀 Testing @astrada.co/ts-astrada-sdk SDK...");
263
+ const config = new Configuration({
264
+ // To configure OAuth2 access token for authorization: main-auth implicit
265
+ accessToken: "YOUR ACCESS TOKEN",
266
+ });
267
+ const api = new SubaccountsApi(config);
268
+
269
+ const body = {
270
+ // string
271
+ subaccountId: 24c4f90d-ab3b-4f6e-8a1d-d251a4fcf34c,
272
+ // UpdateSubaccountRequest
273
+ updateSubaccountRequest: ...,
274
+ } satisfies UpdateSubaccountOperationRequest;
275
+
276
+ try {
277
+ const data = await api.updateSubaccount(body);
278
+ console.log(data);
279
+ } catch (error) {
280
+ console.error(error);
281
+ }
282
+ }
283
+
284
+ // Run the test
285
+ example().catch(console.error);
286
+ ```
287
+
288
+ ### Parameters
289
+
290
+
291
+ | Name | Type | Description | Notes |
292
+ |------------- | ------------- | ------------- | -------------|
293
+ | **subaccountId** | `string` | | [Defaults to `undefined`] |
294
+ | **updateSubaccountRequest** | [UpdateSubaccountRequest](UpdateSubaccountRequest.md) | | |
295
+
296
+ ### Return type
297
+
298
+ [**Subaccount**](Subaccount.md)
299
+
300
+ ### Authorization
301
+
302
+ [main-auth implicit](../README.md#main-auth-implicit)
303
+
304
+ ### HTTP request headers
305
+
306
+ - **Content-Type**: `application/json`
307
+ - **Accept**: `application/hal+json`, `application/problem+json`
308
+
309
+
310
+ ### HTTP response details
311
+ | Status code | Description | Response headers |
312
+ |-------------|-------------|------------------|
313
+ | **200** | Specified subaccount updated successfully | - |
314
+ | **400** | The server cannot or will not process the request due to something that is perceived to be a client error | - |
315
+ | **401** | Authentication credentials were either missing or incorrect | - |
316
+ | **403** | Authentication credentials used do not have have permissions to perform the request | - |
317
+ | **404** | The requested resource was not found on the server | - |
318
+ | **500** | The server encountered an unexpected condition that prevented it from fulfilling the request | - |
319
+
320
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
321
+