@astrada.co/ts-astrada-sdk 1.0.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 (200) hide show
  1. package/.editorconfig +10 -0
  2. package/.github/workflows/on-push.yml +65 -0
  3. package/.releaserc +21 -0
  4. package/CHANGELOG.md +13 -0
  5. package/README.md +1 -0
  6. package/dist/astrada.co-ts-astrada-sdk-1.0.0.tgz +0 -0
  7. package/lib/apis/CardApi.d.ts +57 -0
  8. package/lib/apis/CardApi.js +109 -0
  9. package/lib/apis/CardSubscriptionApi.d.ts +61 -0
  10. package/lib/apis/CardSubscriptionApi.js +133 -0
  11. package/lib/apis/CardholderApi.d.ts +31 -0
  12. package/lib/apis/CardholderApi.js +56 -0
  13. package/lib/apis/EnrollmentMethodsApi.d.ts +31 -0
  14. package/lib/apis/EnrollmentMethodsApi.js +57 -0
  15. package/lib/apis/NetworkBulkFeedsApi.d.ts +60 -0
  16. package/lib/apis/NetworkBulkFeedsApi.js +129 -0
  17. package/lib/apis/SubaccountsApi.d.ts +72 -0
  18. package/lib/apis/SubaccountsApi.js +157 -0
  19. package/lib/apis/TransactionMessagesApi.d.ts +31 -0
  20. package/lib/apis/TransactionMessagesApi.js +56 -0
  21. package/lib/apis/TransactionsApi.d.ts +56 -0
  22. package/lib/apis/TransactionsApi.js +106 -0
  23. package/lib/apis/WebhooksApi.d.ts +86 -0
  24. package/lib/apis/WebhooksApi.js +194 -0
  25. package/lib/apis/index.d.ts +9 -0
  26. package/lib/apis/index.js +27 -0
  27. package/lib/index.d.ts +3 -0
  28. package/lib/index.js +21 -0
  29. package/lib/models/Card.d.ts +112 -0
  30. package/lib/models/Card.js +109 -0
  31. package/lib/models/CardLinks.d.ts +39 -0
  32. package/lib/models/CardLinks.js +53 -0
  33. package/lib/models/CardSubscription.d.ts +118 -0
  34. package/lib/models/CardSubscription.js +109 -0
  35. package/lib/models/CardSubscriptionLinks.d.ts +45 -0
  36. package/lib/models/CardSubscriptionLinks.js +57 -0
  37. package/lib/models/Cardholder.d.ts +64 -0
  38. package/lib/models/Cardholder.js +68 -0
  39. package/lib/models/CardholderCorporate.d.ts +38 -0
  40. package/lib/models/CardholderCorporate.js +50 -0
  41. package/lib/models/CardholderLinks.d.ts +33 -0
  42. package/lib/models/CardholderLinks.js +51 -0
  43. package/lib/models/Conflict.d.ts +57 -0
  44. package/lib/models/Conflict.js +67 -0
  45. package/lib/models/CreateNetworkBulkFeedRequest.d.ts +52 -0
  46. package/lib/models/CreateNetworkBulkFeedRequest.js +66 -0
  47. package/lib/models/CreateSubaccountRequest.d.ts +39 -0
  48. package/lib/models/CreateSubaccountRequest.js +55 -0
  49. package/lib/models/CreateWebhook201Response.d.ts +98 -0
  50. package/lib/models/CreateWebhook201Response.js +96 -0
  51. package/lib/models/CreateWebhookRequest.d.ts +67 -0
  52. package/lib/models/CreateWebhookRequest.js +73 -0
  53. package/lib/models/EnrollmentMethods200Response.d.ts +40 -0
  54. package/lib/models/EnrollmentMethods200Response.js +58 -0
  55. package/lib/models/EnrollmentMethodsRequest.d.ts +32 -0
  56. package/lib/models/EnrollmentMethodsRequest.js +50 -0
  57. package/lib/models/GetSubaccounts200Response.d.ts +40 -0
  58. package/lib/models/GetSubaccounts200Response.js +56 -0
  59. package/lib/models/GetSubaccounts200ResponseEmbedded.d.ts +33 -0
  60. package/lib/models/GetSubaccounts200ResponseEmbedded.js +51 -0
  61. package/lib/models/GetSubaccounts200ResponseLinks.d.ts +39 -0
  62. package/lib/models/GetSubaccounts200ResponseLinks.js +53 -0
  63. package/lib/models/GetTransactions200Response.d.ts +40 -0
  64. package/lib/models/GetTransactions200Response.js +56 -0
  65. package/lib/models/GetTransactions200ResponseEmbedded.d.ts +33 -0
  66. package/lib/models/GetTransactions200ResponseEmbedded.js +51 -0
  67. package/lib/models/InlineObject.d.ts +52 -0
  68. package/lib/models/InlineObject.js +64 -0
  69. package/lib/models/InlineObject1.d.ts +45 -0
  70. package/lib/models/InlineObject1.js +61 -0
  71. package/lib/models/InlineObject2.d.ts +45 -0
  72. package/lib/models/InlineObject2.js +61 -0
  73. package/lib/models/InlineObject3.d.ts +45 -0
  74. package/lib/models/InlineObject3.js +61 -0
  75. package/lib/models/InlineObject4.d.ts +57 -0
  76. package/lib/models/InlineObject4.js +65 -0
  77. package/lib/models/InlineObject5.d.ts +45 -0
  78. package/lib/models/InlineObject5.js +61 -0
  79. package/lib/models/InlineObjectErrorsInner.d.ts +38 -0
  80. package/lib/models/InlineObjectErrorsInner.js +54 -0
  81. package/lib/models/Link.d.ts +74 -0
  82. package/lib/models/Link.js +64 -0
  83. package/lib/models/ListCardSubscriptions200Response.d.ts +46 -0
  84. package/lib/models/ListCardSubscriptions200Response.js +60 -0
  85. package/lib/models/ListCardSubscriptions200ResponseEmbedded.d.ts +33 -0
  86. package/lib/models/ListCardSubscriptions200ResponseEmbedded.js +51 -0
  87. package/lib/models/ListCardSubscriptions200ResponseLinks.d.ts +57 -0
  88. package/lib/models/ListCardSubscriptions200ResponseLinks.js +59 -0
  89. package/lib/models/ListCards200Response.d.ts +46 -0
  90. package/lib/models/ListCards200Response.js +60 -0
  91. package/lib/models/ListCards200ResponseEmbedded.d.ts +33 -0
  92. package/lib/models/ListCards200ResponseEmbedded.js +51 -0
  93. package/lib/models/ListNetworkBulkFeeds200Response.d.ts +46 -0
  94. package/lib/models/ListNetworkBulkFeeds200Response.js +60 -0
  95. package/lib/models/ListNetworkBulkFeeds200ResponseEmbedded.d.ts +33 -0
  96. package/lib/models/ListNetworkBulkFeeds200ResponseEmbedded.js +51 -0
  97. package/lib/models/ListWebhooks200Response.d.ts +40 -0
  98. package/lib/models/ListWebhooks200Response.js +56 -0
  99. package/lib/models/ListWebhooks200ResponseEmbedded.d.ts +33 -0
  100. package/lib/models/ListWebhooks200ResponseEmbedded.js +49 -0
  101. package/lib/models/ListWebhooks200ResponseLinks.d.ts +39 -0
  102. package/lib/models/ListWebhooks200ResponseLinks.js +51 -0
  103. package/lib/models/NetworkBulkFeeds.d.ts +81 -0
  104. package/lib/models/NetworkBulkFeeds.js +83 -0
  105. package/lib/models/Subaccount.d.ts +70 -0
  106. package/lib/models/Subaccount.js +76 -0
  107. package/lib/models/SubaccountConfiguration.d.ts +39 -0
  108. package/lib/models/SubaccountConfiguration.js +51 -0
  109. package/lib/models/SubaccountConfigurationVISA.d.ts +43 -0
  110. package/lib/models/SubaccountConfigurationVISA.js +61 -0
  111. package/lib/models/Transaction.d.ts +140 -0
  112. package/lib/models/Transaction.js +126 -0
  113. package/lib/models/TransactionAcceptor.d.ts +50 -0
  114. package/lib/models/TransactionAcceptor.js +62 -0
  115. package/lib/models/TransactionLinks.d.ts +51 -0
  116. package/lib/models/TransactionLinks.js +57 -0
  117. package/lib/models/TransactionMessage.d.ts +184 -0
  118. package/lib/models/TransactionMessage.js +159 -0
  119. package/lib/models/TransactionMessageAcceptor.d.ts +68 -0
  120. package/lib/models/TransactionMessageAcceptor.js +72 -0
  121. package/lib/models/UnprocessableEntity.d.ts +45 -0
  122. package/lib/models/UnprocessableEntity.js +61 -0
  123. package/lib/models/UpdateCardSubscriptionRequest.d.ts +39 -0
  124. package/lib/models/UpdateCardSubscriptionRequest.js +55 -0
  125. package/lib/models/UpdateSubaccountRequest.d.ts +39 -0
  126. package/lib/models/UpdateSubaccountRequest.js +51 -0
  127. package/lib/models/UpdateWebhookRequest.d.ts +61 -0
  128. package/lib/models/UpdateWebhookRequest.js +65 -0
  129. package/lib/models/Webhook.d.ts +92 -0
  130. package/lib/models/Webhook.js +92 -0
  131. package/lib/models/index.d.ts +51 -0
  132. package/lib/models/index.js +69 -0
  133. package/lib/runtime.d.ts +215 -0
  134. package/lib/runtime.js +394 -0
  135. package/package.json +21 -0
  136. package/src/apis/CardApi.ts +174 -0
  137. package/src/apis/CardSubscriptionApi.ts +223 -0
  138. package/src/apis/CardholderApi.ts +93 -0
  139. package/src/apis/EnrollmentMethodsApi.ts +98 -0
  140. package/src/apis/NetworkBulkFeedsApi.ts +211 -0
  141. package/src/apis/SubaccountsApi.ts +253 -0
  142. package/src/apis/TransactionMessagesApi.ts +93 -0
  143. package/src/apis/TransactionsApi.ts +169 -0
  144. package/src/apis/WebhooksApi.ts +315 -0
  145. package/src/apis/index.ts +11 -0
  146. package/src/index.ts +5 -0
  147. package/src/models/Card.ts +187 -0
  148. package/src/models/CardLinks.ts +82 -0
  149. package/src/models/CardSubscription.ts +194 -0
  150. package/src/models/CardSubscriptionLinks.ts +91 -0
  151. package/src/models/Cardholder.ts +124 -0
  152. package/src/models/CardholderCorporate.ts +73 -0
  153. package/src/models/CardholderLinks.ts +74 -0
  154. package/src/models/Conflict.ts +102 -0
  155. package/src/models/CreateNetworkBulkFeedRequest.ts +95 -0
  156. package/src/models/CreateSubaccountRequest.ts +83 -0
  157. package/src/models/CreateWebhook201Response.ts +168 -0
  158. package/src/models/CreateWebhookRequest.ts +114 -0
  159. package/src/models/EnrollmentMethods200Response.ts +77 -0
  160. package/src/models/EnrollmentMethodsRequest.ts +66 -0
  161. package/src/models/GetSubaccounts200Response.ts +90 -0
  162. package/src/models/GetSubaccounts200ResponseEmbedded.ts +74 -0
  163. package/src/models/GetSubaccounts200ResponseLinks.ts +82 -0
  164. package/src/models/GetTransactions200Response.ts +90 -0
  165. package/src/models/GetTransactions200ResponseEmbedded.ts +74 -0
  166. package/src/models/InlineObject.ts +101 -0
  167. package/src/models/InlineObject1.ts +85 -0
  168. package/src/models/InlineObject2.ts +85 -0
  169. package/src/models/InlineObject3.ts +85 -0
  170. package/src/models/InlineObject4.ts +101 -0
  171. package/src/models/InlineObject5.ts +85 -0
  172. package/src/models/InlineObjectErrorsInner.ts +75 -0
  173. package/src/models/Link.ts +122 -0
  174. package/src/models/ListCardSubscriptions200Response.ts +99 -0
  175. package/src/models/ListCardSubscriptions200ResponseEmbedded.ts +74 -0
  176. package/src/models/ListCardSubscriptions200ResponseLinks.ts +106 -0
  177. package/src/models/ListCards200Response.ts +99 -0
  178. package/src/models/ListCards200ResponseEmbedded.ts +74 -0
  179. package/src/models/ListNetworkBulkFeeds200Response.ts +99 -0
  180. package/src/models/ListNetworkBulkFeeds200ResponseEmbedded.ts +74 -0
  181. package/src/models/ListWebhooks200Response.ts +90 -0
  182. package/src/models/ListWebhooks200ResponseEmbedded.ts +73 -0
  183. package/src/models/ListWebhooks200ResponseLinks.ts +81 -0
  184. package/src/models/NetworkBulkFeeds.ts +143 -0
  185. package/src/models/Subaccount.ts +135 -0
  186. package/src/models/SubaccountConfiguration.ts +81 -0
  187. package/src/models/SubaccountConfigurationVISA.ts +80 -0
  188. package/src/models/Transaction.ts +238 -0
  189. package/src/models/TransactionAcceptor.ts +93 -0
  190. package/src/models/TransactionLinks.ts +98 -0
  191. package/src/models/TransactionMessage.ts +289 -0
  192. package/src/models/TransactionMessageAcceptor.ts +119 -0
  193. package/src/models/UnprocessableEntity.ts +85 -0
  194. package/src/models/UpdateCardSubscriptionRequest.ts +75 -0
  195. package/src/models/UpdateSubaccountRequest.ts +81 -0
  196. package/src/models/UpdateWebhookRequest.ts +103 -0
  197. package/src/models/Webhook.ts +159 -0
  198. package/src/models/index.ts +53 -0
  199. package/src/runtime.ts +524 -0
  200. package/tsconfig.json +13 -0
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Subaccount } from './Subaccount';
17
+ import {
18
+ SubaccountFromJSON,
19
+ SubaccountFromJSONTyped,
20
+ SubaccountToJSON,
21
+ SubaccountToJSONTyped,
22
+ } from './Subaccount';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetSubaccounts200ResponseEmbedded
28
+ */
29
+ export interface GetSubaccounts200ResponseEmbedded {
30
+ /**
31
+ *
32
+ * @type {Array<Subaccount>}
33
+ * @memberof GetSubaccounts200ResponseEmbedded
34
+ */
35
+ subaccounts: Array<Subaccount>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetSubaccounts200ResponseEmbedded interface.
40
+ */
41
+ export function instanceOfGetSubaccounts200ResponseEmbedded(value: object): value is GetSubaccounts200ResponseEmbedded {
42
+ if (!('subaccounts' in value) || value['subaccounts'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetSubaccounts200ResponseEmbeddedFromJSON(json: any): GetSubaccounts200ResponseEmbedded {
47
+ return GetSubaccounts200ResponseEmbeddedFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetSubaccounts200ResponseEmbeddedFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSubaccounts200ResponseEmbedded {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'subaccounts': ((json['subaccounts'] as Array<any>).map(SubaccountFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetSubaccounts200ResponseEmbeddedToJSON(json: any): GetSubaccounts200ResponseEmbedded {
61
+ return GetSubaccounts200ResponseEmbeddedToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetSubaccounts200ResponseEmbeddedToJSONTyped(value?: GetSubaccounts200ResponseEmbedded | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'subaccounts': ((value['subaccounts'] as Array<any>).map(SubaccountToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,82 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Link } from './Link';
17
+ import {
18
+ LinkFromJSON,
19
+ LinkFromJSONTyped,
20
+ LinkToJSON,
21
+ LinkToJSONTyped,
22
+ } from './Link';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetSubaccounts200ResponseLinks
28
+ */
29
+ export interface GetSubaccounts200ResponseLinks {
30
+ /**
31
+ *
32
+ * @type {Link}
33
+ * @memberof GetSubaccounts200ResponseLinks
34
+ */
35
+ self: Link;
36
+ /**
37
+ *
38
+ * @type {Link}
39
+ * @memberof GetSubaccounts200ResponseLinks
40
+ */
41
+ next?: Link;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the GetSubaccounts200ResponseLinks interface.
46
+ */
47
+ export function instanceOfGetSubaccounts200ResponseLinks(value: object): value is GetSubaccounts200ResponseLinks {
48
+ if (!('self' in value) || value['self'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function GetSubaccounts200ResponseLinksFromJSON(json: any): GetSubaccounts200ResponseLinks {
53
+ return GetSubaccounts200ResponseLinksFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetSubaccounts200ResponseLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSubaccounts200ResponseLinks {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'self': LinkFromJSON(json['self']),
63
+ 'next': json['next'] == null ? undefined : LinkFromJSON(json['next']),
64
+ };
65
+ }
66
+
67
+ export function GetSubaccounts200ResponseLinksToJSON(json: any): GetSubaccounts200ResponseLinks {
68
+ return GetSubaccounts200ResponseLinksToJSONTyped(json, false);
69
+ }
70
+
71
+ export function GetSubaccounts200ResponseLinksToJSONTyped(value?: GetSubaccounts200ResponseLinks | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'self': LinkToJSON(value['self']),
79
+ 'next': LinkToJSON(value['next']),
80
+ };
81
+ }
82
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { GetTransactions200ResponseEmbedded } from './GetTransactions200ResponseEmbedded';
17
+ import {
18
+ GetTransactions200ResponseEmbeddedFromJSON,
19
+ GetTransactions200ResponseEmbeddedFromJSONTyped,
20
+ GetTransactions200ResponseEmbeddedToJSON,
21
+ GetTransactions200ResponseEmbeddedToJSONTyped,
22
+ } from './GetTransactions200ResponseEmbedded';
23
+ import type { GetSubaccounts200ResponseLinks } from './GetSubaccounts200ResponseLinks';
24
+ import {
25
+ GetSubaccounts200ResponseLinksFromJSON,
26
+ GetSubaccounts200ResponseLinksFromJSONTyped,
27
+ GetSubaccounts200ResponseLinksToJSON,
28
+ GetSubaccounts200ResponseLinksToJSONTyped,
29
+ } from './GetSubaccounts200ResponseLinks';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetTransactions200Response
35
+ */
36
+ export interface GetTransactions200Response {
37
+ /**
38
+ *
39
+ * @type {GetSubaccounts200ResponseLinks}
40
+ * @memberof GetTransactions200Response
41
+ */
42
+ _links: GetSubaccounts200ResponseLinks;
43
+ /**
44
+ *
45
+ * @type {GetTransactions200ResponseEmbedded}
46
+ * @memberof GetTransactions200Response
47
+ */
48
+ _embedded: GetTransactions200ResponseEmbedded;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the GetTransactions200Response interface.
53
+ */
54
+ export function instanceOfGetTransactions200Response(value: object): value is GetTransactions200Response {
55
+ if (!('_links' in value) || value['_links'] === undefined) return false;
56
+ if (!('_embedded' in value) || value['_embedded'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function GetTransactions200ResponseFromJSON(json: any): GetTransactions200Response {
61
+ return GetTransactions200ResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetTransactions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTransactions200Response {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ '_links': GetSubaccounts200ResponseLinksFromJSON(json['_links']),
71
+ '_embedded': GetTransactions200ResponseEmbeddedFromJSON(json['_embedded']),
72
+ };
73
+ }
74
+
75
+ export function GetTransactions200ResponseToJSON(json: any): GetTransactions200Response {
76
+ return GetTransactions200ResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function GetTransactions200ResponseToJSONTyped(value?: GetTransactions200Response | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ '_links': GetSubaccounts200ResponseLinksToJSON(value['_links']),
87
+ '_embedded': GetTransactions200ResponseEmbeddedToJSON(value['_embedded']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Transaction } from './Transaction';
17
+ import {
18
+ TransactionFromJSON,
19
+ TransactionFromJSONTyped,
20
+ TransactionToJSON,
21
+ TransactionToJSONTyped,
22
+ } from './Transaction';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetTransactions200ResponseEmbedded
28
+ */
29
+ export interface GetTransactions200ResponseEmbedded {
30
+ /**
31
+ *
32
+ * @type {Array<Transaction>}
33
+ * @memberof GetTransactions200ResponseEmbedded
34
+ */
35
+ transactions: Array<Transaction>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetTransactions200ResponseEmbedded interface.
40
+ */
41
+ export function instanceOfGetTransactions200ResponseEmbedded(value: object): value is GetTransactions200ResponseEmbedded {
42
+ if (!('transactions' in value) || value['transactions'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetTransactions200ResponseEmbeddedFromJSON(json: any): GetTransactions200ResponseEmbedded {
47
+ return GetTransactions200ResponseEmbeddedFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetTransactions200ResponseEmbeddedFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTransactions200ResponseEmbedded {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'transactions': ((json['transactions'] as Array<any>).map(TransactionFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetTransactions200ResponseEmbeddedToJSON(json: any): GetTransactions200ResponseEmbedded {
61
+ return GetTransactions200ResponseEmbeddedToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetTransactions200ResponseEmbeddedToJSONTyped(value?: GetTransactions200ResponseEmbedded | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'transactions': ((value['transactions'] as Array<any>).map(TransactionToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,101 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { InlineObjectErrorsInner } from './InlineObjectErrorsInner';
17
+ import {
18
+ InlineObjectErrorsInnerFromJSON,
19
+ InlineObjectErrorsInnerFromJSONTyped,
20
+ InlineObjectErrorsInnerToJSON,
21
+ InlineObjectErrorsInnerToJSONTyped,
22
+ } from './InlineObjectErrorsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface InlineObject
28
+ */
29
+ export interface InlineObject {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InlineObject
34
+ */
35
+ detail: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof InlineObject
40
+ */
41
+ title: InlineObjectTitleEnum;
42
+ /**
43
+ *
44
+ * @type {Array<InlineObjectErrorsInner>}
45
+ * @memberof InlineObject
46
+ */
47
+ errors?: Array<InlineObjectErrorsInner>;
48
+ }
49
+
50
+
51
+ /**
52
+ * @export
53
+ */
54
+ export const InlineObjectTitleEnum = {
55
+ BadRequest: 'Bad Request'
56
+ } as const;
57
+ export type InlineObjectTitleEnum = typeof InlineObjectTitleEnum[keyof typeof InlineObjectTitleEnum];
58
+
59
+
60
+ /**
61
+ * Check if a given object implements the InlineObject interface.
62
+ */
63
+ export function instanceOfInlineObject(value: object): value is InlineObject {
64
+ if (!('detail' in value) || value['detail'] === undefined) return false;
65
+ if (!('title' in value) || value['title'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function InlineObjectFromJSON(json: any): InlineObject {
70
+ return InlineObjectFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function InlineObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'detail': json['detail'],
80
+ 'title': json['title'],
81
+ 'errors': json['errors'] == null ? undefined : ((json['errors'] as Array<any>).map(InlineObjectErrorsInnerFromJSON)),
82
+ };
83
+ }
84
+
85
+ export function InlineObjectToJSON(json: any): InlineObject {
86
+ return InlineObjectToJSONTyped(json, false);
87
+ }
88
+
89
+ export function InlineObjectToJSONTyped(value?: InlineObject | null, ignoreDiscriminator: boolean = false): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+
94
+ return {
95
+
96
+ 'detail': value['detail'],
97
+ 'title': value['title'],
98
+ 'errors': value['errors'] == null ? undefined : ((value['errors'] as Array<any>).map(InlineObjectErrorsInnerToJSON)),
99
+ };
100
+ }
101
+
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface InlineObject1
20
+ */
21
+ export interface InlineObject1 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InlineObject1
26
+ */
27
+ detail: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InlineObject1
32
+ */
33
+ title: InlineObject1TitleEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const InlineObject1TitleEnum = {
41
+ Unauthorized: 'Unauthorized'
42
+ } as const;
43
+ export type InlineObject1TitleEnum = typeof InlineObject1TitleEnum[keyof typeof InlineObject1TitleEnum];
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the InlineObject1 interface.
48
+ */
49
+ export function instanceOfInlineObject1(value: object): value is InlineObject1 {
50
+ if (!('detail' in value) || value['detail'] === undefined) return false;
51
+ if (!('title' in value) || value['title'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function InlineObject1FromJSON(json: any): InlineObject1 {
56
+ return InlineObject1FromJSONTyped(json, false);
57
+ }
58
+
59
+ export function InlineObject1FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject1 {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'detail': json['detail'],
66
+ 'title': json['title'],
67
+ };
68
+ }
69
+
70
+ export function InlineObject1ToJSON(json: any): InlineObject1 {
71
+ return InlineObject1ToJSONTyped(json, false);
72
+ }
73
+
74
+ export function InlineObject1ToJSONTyped(value?: InlineObject1 | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'detail': value['detail'],
82
+ 'title': value['title'],
83
+ };
84
+ }
85
+
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface InlineObject2
20
+ */
21
+ export interface InlineObject2 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InlineObject2
26
+ */
27
+ detail: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InlineObject2
32
+ */
33
+ title: InlineObject2TitleEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const InlineObject2TitleEnum = {
41
+ Forbidden: 'Forbidden'
42
+ } as const;
43
+ export type InlineObject2TitleEnum = typeof InlineObject2TitleEnum[keyof typeof InlineObject2TitleEnum];
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the InlineObject2 interface.
48
+ */
49
+ export function instanceOfInlineObject2(value: object): value is InlineObject2 {
50
+ if (!('detail' in value) || value['detail'] === undefined) return false;
51
+ if (!('title' in value) || value['title'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function InlineObject2FromJSON(json: any): InlineObject2 {
56
+ return InlineObject2FromJSONTyped(json, false);
57
+ }
58
+
59
+ export function InlineObject2FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject2 {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'detail': json['detail'],
66
+ 'title': json['title'],
67
+ };
68
+ }
69
+
70
+ export function InlineObject2ToJSON(json: any): InlineObject2 {
71
+ return InlineObject2ToJSONTyped(json, false);
72
+ }
73
+
74
+ export function InlineObject2ToJSONTyped(value?: InlineObject2 | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'detail': value['detail'],
82
+ 'title': value['title'],
83
+ };
84
+ }
85
+
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Astrada API
5
+ * Welcome to our API Reference. 👋
6
+ *
7
+ * The version of the OpenAPI document: 2024-02-28
8
+ * Contact: developer@astrada.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface InlineObject3
20
+ */
21
+ export interface InlineObject3 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InlineObject3
26
+ */
27
+ detail: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InlineObject3
32
+ */
33
+ title: InlineObject3TitleEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const InlineObject3TitleEnum = {
41
+ InternalServerError: 'Internal Server Error'
42
+ } as const;
43
+ export type InlineObject3TitleEnum = typeof InlineObject3TitleEnum[keyof typeof InlineObject3TitleEnum];
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the InlineObject3 interface.
48
+ */
49
+ export function instanceOfInlineObject3(value: object): value is InlineObject3 {
50
+ if (!('detail' in value) || value['detail'] === undefined) return false;
51
+ if (!('title' in value) || value['title'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function InlineObject3FromJSON(json: any): InlineObject3 {
56
+ return InlineObject3FromJSONTyped(json, false);
57
+ }
58
+
59
+ export function InlineObject3FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject3 {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'detail': json['detail'],
66
+ 'title': json['title'],
67
+ };
68
+ }
69
+
70
+ export function InlineObject3ToJSON(json: any): InlineObject3 {
71
+ return InlineObject3ToJSONTyped(json, false);
72
+ }
73
+
74
+ export function InlineObject3ToJSONTyped(value?: InlineObject3 | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'detail': value['detail'],
82
+ 'title': value['title'],
83
+ };
84
+ }
85
+