@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,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
+ /**
17
+ *
18
+ * @export
19
+ * @interface InlineObject4
20
+ */
21
+ export interface InlineObject4 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InlineObject4
26
+ */
27
+ type?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InlineObject4
32
+ */
33
+ instance?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof InlineObject4
38
+ */
39
+ detail: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof InlineObject4
44
+ */
45
+ title: InlineObject4TitleEnum;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const InlineObject4TitleEnum = {
53
+ NotFound: 'Not Found'
54
+ } as const;
55
+ export type InlineObject4TitleEnum = typeof InlineObject4TitleEnum[keyof typeof InlineObject4TitleEnum];
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the InlineObject4 interface.
60
+ */
61
+ export function instanceOfInlineObject4(value: object): value is InlineObject4 {
62
+ if (!('detail' in value) || value['detail'] === undefined) return false;
63
+ if (!('title' in value) || value['title'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function InlineObject4FromJSON(json: any): InlineObject4 {
68
+ return InlineObject4FromJSONTyped(json, false);
69
+ }
70
+
71
+ export function InlineObject4FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject4 {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'type': json['type'] == null ? undefined : json['type'],
78
+ 'instance': json['instance'] == null ? undefined : json['instance'],
79
+ 'detail': json['detail'],
80
+ 'title': json['title'],
81
+ };
82
+ }
83
+
84
+ export function InlineObject4ToJSON(json: any): InlineObject4 {
85
+ return InlineObject4ToJSONTyped(json, false);
86
+ }
87
+
88
+ export function InlineObject4ToJSONTyped(value?: InlineObject4 | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'type': value['type'],
96
+ 'instance': value['instance'],
97
+ 'detail': value['detail'],
98
+ 'title': value['title'],
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 InlineObject5
20
+ */
21
+ export interface InlineObject5 {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InlineObject5
26
+ */
27
+ detail: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InlineObject5
32
+ */
33
+ title: InlineObject5TitleEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const InlineObject5TitleEnum = {
41
+ ContentTooLarge: 'Content Too Large'
42
+ } as const;
43
+ export type InlineObject5TitleEnum = typeof InlineObject5TitleEnum[keyof typeof InlineObject5TitleEnum];
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the InlineObject5 interface.
48
+ */
49
+ export function instanceOfInlineObject5(value: object): value is InlineObject5 {
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 InlineObject5FromJSON(json: any): InlineObject5 {
56
+ return InlineObject5FromJSONTyped(json, false);
57
+ }
58
+
59
+ export function InlineObject5FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObject5 {
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 InlineObject5ToJSON(json: any): InlineObject5 {
71
+ return InlineObject5ToJSONTyped(json, false);
72
+ }
73
+
74
+ export function InlineObject5ToJSONTyped(value?: InlineObject5 | 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,75 @@
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 InlineObjectErrorsInner
20
+ */
21
+ export interface InlineObjectErrorsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof InlineObjectErrorsInner
26
+ */
27
+ title: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof InlineObjectErrorsInner
32
+ */
33
+ detail: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the InlineObjectErrorsInner interface.
38
+ */
39
+ export function instanceOfInlineObjectErrorsInner(value: object): value is InlineObjectErrorsInner {
40
+ if (!('title' in value) || value['title'] === undefined) return false;
41
+ if (!('detail' in value) || value['detail'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function InlineObjectErrorsInnerFromJSON(json: any): InlineObjectErrorsInner {
46
+ return InlineObjectErrorsInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function InlineObjectErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineObjectErrorsInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'title': json['title'],
56
+ 'detail': json['detail'],
57
+ };
58
+ }
59
+
60
+ export function InlineObjectErrorsInnerToJSON(json: any): InlineObjectErrorsInner {
61
+ return InlineObjectErrorsInnerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function InlineObjectErrorsInnerToJSONTyped(value?: InlineObjectErrorsInner | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'title': value['title'],
72
+ 'detail': value['detail'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,122 @@
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 Link
20
+ */
21
+ export interface Link {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Link
26
+ */
27
+ href: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof Link
32
+ */
33
+ templated?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Link
38
+ */
39
+ type?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Link
44
+ */
45
+ deprecation?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Link
50
+ */
51
+ name?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof Link
56
+ */
57
+ profile?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Link
62
+ */
63
+ title?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof Link
68
+ */
69
+ hreflang?: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the Link interface.
74
+ */
75
+ export function instanceOfLink(value: object): value is Link {
76
+ if (!('href' in value) || value['href'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function LinkFromJSON(json: any): Link {
81
+ return LinkFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function LinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Link {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'href': json['href'],
91
+ 'templated': json['templated'] == null ? undefined : json['templated'],
92
+ 'type': json['type'] == null ? undefined : json['type'],
93
+ 'deprecation': json['deprecation'] == null ? undefined : json['deprecation'],
94
+ 'name': json['name'] == null ? undefined : json['name'],
95
+ 'profile': json['profile'] == null ? undefined : json['profile'],
96
+ 'title': json['title'] == null ? undefined : json['title'],
97
+ 'hreflang': json['hreflang'] == null ? undefined : json['hreflang'],
98
+ };
99
+ }
100
+
101
+ export function LinkToJSON(json: any): Link {
102
+ return LinkToJSONTyped(json, false);
103
+ }
104
+
105
+ export function LinkToJSONTyped(value?: Link | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'href': value['href'],
113
+ 'templated': value['templated'],
114
+ 'type': value['type'],
115
+ 'deprecation': value['deprecation'],
116
+ 'name': value['name'],
117
+ 'profile': value['profile'],
118
+ 'title': value['title'],
119
+ 'hreflang': value['hreflang'],
120
+ };
121
+ }
122
+
@@ -0,0 +1,99 @@
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 { ListCardSubscriptions200ResponseLinks } from './ListCardSubscriptions200ResponseLinks';
17
+ import {
18
+ ListCardSubscriptions200ResponseLinksFromJSON,
19
+ ListCardSubscriptions200ResponseLinksFromJSONTyped,
20
+ ListCardSubscriptions200ResponseLinksToJSON,
21
+ ListCardSubscriptions200ResponseLinksToJSONTyped,
22
+ } from './ListCardSubscriptions200ResponseLinks';
23
+ import type { ListCardSubscriptions200ResponseEmbedded } from './ListCardSubscriptions200ResponseEmbedded';
24
+ import {
25
+ ListCardSubscriptions200ResponseEmbeddedFromJSON,
26
+ ListCardSubscriptions200ResponseEmbeddedFromJSONTyped,
27
+ ListCardSubscriptions200ResponseEmbeddedToJSON,
28
+ ListCardSubscriptions200ResponseEmbeddedToJSONTyped,
29
+ } from './ListCardSubscriptions200ResponseEmbedded';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ListCardSubscriptions200Response
35
+ */
36
+ export interface ListCardSubscriptions200Response {
37
+ /**
38
+ *
39
+ * @type {ListCardSubscriptions200ResponseLinks}
40
+ * @memberof ListCardSubscriptions200Response
41
+ */
42
+ _links: ListCardSubscriptions200ResponseLinks;
43
+ /**
44
+ *
45
+ * @type {ListCardSubscriptions200ResponseEmbedded}
46
+ * @memberof ListCardSubscriptions200Response
47
+ */
48
+ _embedded: ListCardSubscriptions200ResponseEmbedded;
49
+ /**
50
+ * Total number of card subscriptions matching the search criteria
51
+ * @type {number}
52
+ * @memberof ListCardSubscriptions200Response
53
+ */
54
+ totalItems: number;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the ListCardSubscriptions200Response interface.
59
+ */
60
+ export function instanceOfListCardSubscriptions200Response(value: object): value is ListCardSubscriptions200Response {
61
+ if (!('_links' in value) || value['_links'] === undefined) return false;
62
+ if (!('_embedded' in value) || value['_embedded'] === undefined) return false;
63
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function ListCardSubscriptions200ResponseFromJSON(json: any): ListCardSubscriptions200Response {
68
+ return ListCardSubscriptions200ResponseFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ListCardSubscriptions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCardSubscriptions200Response {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ '_links': ListCardSubscriptions200ResponseLinksFromJSON(json['_links']),
78
+ '_embedded': ListCardSubscriptions200ResponseEmbeddedFromJSON(json['_embedded']),
79
+ 'totalItems': json['totalItems'],
80
+ };
81
+ }
82
+
83
+ export function ListCardSubscriptions200ResponseToJSON(json: any): ListCardSubscriptions200Response {
84
+ return ListCardSubscriptions200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ListCardSubscriptions200ResponseToJSONTyped(value?: ListCardSubscriptions200Response | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ '_links': ListCardSubscriptions200ResponseLinksToJSON(value['_links']),
95
+ '_embedded': ListCardSubscriptions200ResponseEmbeddedToJSON(value['_embedded']),
96
+ 'totalItems': value['totalItems'],
97
+ };
98
+ }
99
+
@@ -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 { CardSubscription } from './CardSubscription';
17
+ import {
18
+ CardSubscriptionFromJSON,
19
+ CardSubscriptionFromJSONTyped,
20
+ CardSubscriptionToJSON,
21
+ CardSubscriptionToJSONTyped,
22
+ } from './CardSubscription';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListCardSubscriptions200ResponseEmbedded
28
+ */
29
+ export interface ListCardSubscriptions200ResponseEmbedded {
30
+ /**
31
+ *
32
+ * @type {Array<CardSubscription>}
33
+ * @memberof ListCardSubscriptions200ResponseEmbedded
34
+ */
35
+ cardSubscriptions: Array<CardSubscription>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ListCardSubscriptions200ResponseEmbedded interface.
40
+ */
41
+ export function instanceOfListCardSubscriptions200ResponseEmbedded(value: object): value is ListCardSubscriptions200ResponseEmbedded {
42
+ if (!('cardSubscriptions' in value) || value['cardSubscriptions'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function ListCardSubscriptions200ResponseEmbeddedFromJSON(json: any): ListCardSubscriptions200ResponseEmbedded {
47
+ return ListCardSubscriptions200ResponseEmbeddedFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ListCardSubscriptions200ResponseEmbeddedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCardSubscriptions200ResponseEmbedded {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'cardSubscriptions': ((json['cardSubscriptions'] as Array<any>).map(CardSubscriptionFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function ListCardSubscriptions200ResponseEmbeddedToJSON(json: any): ListCardSubscriptions200ResponseEmbedded {
61
+ return ListCardSubscriptions200ResponseEmbeddedToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ListCardSubscriptions200ResponseEmbeddedToJSONTyped(value?: ListCardSubscriptions200ResponseEmbedded | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'cardSubscriptions': ((value['cardSubscriptions'] as Array<any>).map(CardSubscriptionToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,106 @@
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 ListCardSubscriptions200ResponseLinks
28
+ */
29
+ export interface ListCardSubscriptions200ResponseLinks {
30
+ /**
31
+ *
32
+ * @type {Link}
33
+ * @memberof ListCardSubscriptions200ResponseLinks
34
+ */
35
+ self: Link;
36
+ /**
37
+ *
38
+ * @type {Link}
39
+ * @memberof ListCardSubscriptions200ResponseLinks
40
+ */
41
+ first?: Link;
42
+ /**
43
+ *
44
+ * @type {Link}
45
+ * @memberof ListCardSubscriptions200ResponseLinks
46
+ */
47
+ next?: Link;
48
+ /**
49
+ *
50
+ * @type {Link}
51
+ * @memberof ListCardSubscriptions200ResponseLinks
52
+ */
53
+ prev?: Link;
54
+ /**
55
+ *
56
+ * @type {Link}
57
+ * @memberof ListCardSubscriptions200ResponseLinks
58
+ */
59
+ last?: Link;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the ListCardSubscriptions200ResponseLinks interface.
64
+ */
65
+ export function instanceOfListCardSubscriptions200ResponseLinks(value: object): value is ListCardSubscriptions200ResponseLinks {
66
+ if (!('self' in value) || value['self'] === undefined) return false;
67
+ return true;
68
+ }
69
+
70
+ export function ListCardSubscriptions200ResponseLinksFromJSON(json: any): ListCardSubscriptions200ResponseLinks {
71
+ return ListCardSubscriptions200ResponseLinksFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function ListCardSubscriptions200ResponseLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCardSubscriptions200ResponseLinks {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'self': LinkFromJSON(json['self']),
81
+ 'first': json['first'] == null ? undefined : LinkFromJSON(json['first']),
82
+ 'next': json['next'] == null ? undefined : LinkFromJSON(json['next']),
83
+ 'prev': json['prev'] == null ? undefined : LinkFromJSON(json['prev']),
84
+ 'last': json['last'] == null ? undefined : LinkFromJSON(json['last']),
85
+ };
86
+ }
87
+
88
+ export function ListCardSubscriptions200ResponseLinksToJSON(json: any): ListCardSubscriptions200ResponseLinks {
89
+ return ListCardSubscriptions200ResponseLinksToJSONTyped(json, false);
90
+ }
91
+
92
+ export function ListCardSubscriptions200ResponseLinksToJSONTyped(value?: ListCardSubscriptions200ResponseLinks | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'self': LinkToJSON(value['self']),
100
+ 'first': LinkToJSON(value['first']),
101
+ 'next': LinkToJSON(value['next']),
102
+ 'prev': LinkToJSON(value['prev']),
103
+ 'last': LinkToJSON(value['last']),
104
+ };
105
+ }
106
+