@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,118 @@
1
+ /**
2
+ * Astrada API
3
+ * Welcome to our API Reference. 👋
4
+ *
5
+ * The version of the OpenAPI document: 2024-02-28
6
+ * Contact: developer@astrada.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CardSubscriptionLinks } from './CardSubscriptionLinks';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CardSubscription
17
+ */
18
+ export interface CardSubscription {
19
+ /**
20
+ *
21
+ * @type {CardSubscriptionLinks}
22
+ * @memberof CardSubscription
23
+ */
24
+ _links: CardSubscriptionLinks;
25
+ /**
26
+ * The unique identifier of this subscription entity.
27
+ * @type {string}
28
+ * @memberof CardSubscription
29
+ */
30
+ id: string;
31
+ /**
32
+ * The unique identifier of the account related to this entity.
33
+ * @type {string}
34
+ * @memberof CardSubscription
35
+ */
36
+ accountId?: string;
37
+ /**
38
+ * The unique identifier of the subaccount related to this entity.
39
+ * @type {string}
40
+ * @memberof CardSubscription
41
+ */
42
+ subaccountId: string;
43
+ /**
44
+ * The unique identifier of the card related to this entity.
45
+ * @type {string}
46
+ * @memberof CardSubscription
47
+ */
48
+ cardId: string;
49
+ /**
50
+ * An optional id in UUID format passed by the customer to associate a context with the subscription.
51
+ * @type {string}
52
+ * @memberof CardSubscription
53
+ */
54
+ customerReferenceId?: string | null;
55
+ /**
56
+ * State of the subscription.
57
+ * @type {string}
58
+ * @memberof CardSubscription
59
+ */
60
+ state: CardSubscriptionStateEnum;
61
+ /**
62
+ * Date and Time when this card subscription will be activated and start receiving data following ISO 8601 format.
63
+ * @type {Date}
64
+ * @memberof CardSubscription
65
+ */
66
+ effectiveDate: Date;
67
+ /**
68
+ * Date and Time when this card subscription will become expired and stop receiving data following ISO 8601 format.
69
+ * @type {Date}
70
+ * @memberof CardSubscription
71
+ */
72
+ expirationDate: Date;
73
+ /**
74
+ * The flow that led to the creation of the card subscription. `cardholder-single` refers to enrollments where cardholders themselves are responsible for inputting card data and where a single card is attempted at a time. `network-bulk` refers to enrollments where card data will be captured by Astrada using network data sources (eg Mastercard Smart Data) and where many cards may be attempted at once.
75
+ * @type {string}
76
+ * @memberof CardSubscription
77
+ */
78
+ enrollmentType: CardSubscriptionEnrollmentTypeEnum;
79
+ /**
80
+ * Date and Time at which this entity was created following ISO 8601 format.
81
+ * @type {Date}
82
+ * @memberof CardSubscription
83
+ */
84
+ createdAt: Date;
85
+ /**
86
+ * Date and Time at which this entity was last updated following ISO 8601 format.
87
+ * @type {Date}
88
+ * @memberof CardSubscription
89
+ */
90
+ updatedAt: Date;
91
+ }
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const CardSubscriptionStateEnum: {
96
+ readonly Active: "active";
97
+ readonly Deactivated: "deactivated";
98
+ readonly Expired: "expired";
99
+ readonly ReqSca: "reqSCA";
100
+ readonly FailedToCreate: "failed-to-create";
101
+ };
102
+ export type CardSubscriptionStateEnum = typeof CardSubscriptionStateEnum[keyof typeof CardSubscriptionStateEnum];
103
+ /**
104
+ * @export
105
+ */
106
+ export declare const CardSubscriptionEnrollmentTypeEnum: {
107
+ readonly CardholderSingle: "cardholder-single";
108
+ readonly NetworkBulk: "network-bulk";
109
+ };
110
+ export type CardSubscriptionEnrollmentTypeEnum = typeof CardSubscriptionEnrollmentTypeEnum[keyof typeof CardSubscriptionEnrollmentTypeEnum];
111
+ /**
112
+ * Check if a given object implements the CardSubscription interface.
113
+ */
114
+ export declare function instanceOfCardSubscription(value: object): value is CardSubscription;
115
+ export declare function CardSubscriptionFromJSON(json: any): CardSubscription;
116
+ export declare function CardSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardSubscription;
117
+ export declare function CardSubscriptionToJSON(json: any): CardSubscription;
118
+ export declare function CardSubscriptionToJSONTyped(value?: CardSubscription | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Astrada API
6
+ * Welcome to our API Reference. 👋
7
+ *
8
+ * The version of the OpenAPI document: 2024-02-28
9
+ * Contact: developer@astrada.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CardSubscriptionEnrollmentTypeEnum = exports.CardSubscriptionStateEnum = void 0;
17
+ exports.instanceOfCardSubscription = instanceOfCardSubscription;
18
+ exports.CardSubscriptionFromJSON = CardSubscriptionFromJSON;
19
+ exports.CardSubscriptionFromJSONTyped = CardSubscriptionFromJSONTyped;
20
+ exports.CardSubscriptionToJSON = CardSubscriptionToJSON;
21
+ exports.CardSubscriptionToJSONTyped = CardSubscriptionToJSONTyped;
22
+ const CardSubscriptionLinks_1 = require("./CardSubscriptionLinks");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CardSubscriptionStateEnum = {
27
+ Active: 'active',
28
+ Deactivated: 'deactivated',
29
+ Expired: 'expired',
30
+ ReqSca: 'reqSCA',
31
+ FailedToCreate: 'failed-to-create'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.CardSubscriptionEnrollmentTypeEnum = {
37
+ CardholderSingle: 'cardholder-single',
38
+ NetworkBulk: 'network-bulk'
39
+ };
40
+ /**
41
+ * Check if a given object implements the CardSubscription interface.
42
+ */
43
+ function instanceOfCardSubscription(value) {
44
+ if (!('_links' in value) || value['_links'] === undefined)
45
+ return false;
46
+ if (!('id' in value) || value['id'] === undefined)
47
+ return false;
48
+ if (!('subaccountId' in value) || value['subaccountId'] === undefined)
49
+ return false;
50
+ if (!('cardId' in value) || value['cardId'] === undefined)
51
+ return false;
52
+ if (!('state' in value) || value['state'] === undefined)
53
+ return false;
54
+ if (!('effectiveDate' in value) || value['effectiveDate'] === undefined)
55
+ return false;
56
+ if (!('expirationDate' in value) || value['expirationDate'] === undefined)
57
+ return false;
58
+ if (!('enrollmentType' in value) || value['enrollmentType'] === undefined)
59
+ return false;
60
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
61
+ return false;
62
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
63
+ return false;
64
+ return true;
65
+ }
66
+ function CardSubscriptionFromJSON(json) {
67
+ return CardSubscriptionFromJSONTyped(json, false);
68
+ }
69
+ function CardSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+ '_links': (0, CardSubscriptionLinks_1.CardSubscriptionLinksFromJSON)(json['_links']),
75
+ 'id': json['id'],
76
+ 'accountId': json['accountId'] == null ? undefined : json['accountId'],
77
+ 'subaccountId': json['subaccountId'],
78
+ 'cardId': json['cardId'],
79
+ 'customerReferenceId': json['customerReferenceId'] == null ? undefined : json['customerReferenceId'],
80
+ 'state': json['state'],
81
+ 'effectiveDate': (new Date(json['effectiveDate'])),
82
+ 'expirationDate': (new Date(json['expirationDate'])),
83
+ 'enrollmentType': json['enrollmentType'],
84
+ 'createdAt': (new Date(json['createdAt'])),
85
+ 'updatedAt': (new Date(json['updatedAt'])),
86
+ };
87
+ }
88
+ function CardSubscriptionToJSON(json) {
89
+ return CardSubscriptionToJSONTyped(json, false);
90
+ }
91
+ function CardSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ '_links': (0, CardSubscriptionLinks_1.CardSubscriptionLinksToJSON)(value['_links']),
97
+ 'id': value['id'],
98
+ 'accountId': value['accountId'],
99
+ 'subaccountId': value['subaccountId'],
100
+ 'cardId': value['cardId'],
101
+ 'customerReferenceId': value['customerReferenceId'],
102
+ 'state': value['state'],
103
+ 'effectiveDate': ((value['effectiveDate']).toISOString()),
104
+ 'expirationDate': ((value['expirationDate']).toISOString()),
105
+ 'enrollmentType': value['enrollmentType'],
106
+ 'createdAt': ((value['createdAt']).toISOString()),
107
+ 'updatedAt': ((value['updatedAt']).toISOString()),
108
+ };
109
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Astrada API
3
+ * Welcome to our API Reference. 👋
4
+ *
5
+ * The version of the OpenAPI document: 2024-02-28
6
+ * Contact: developer@astrada.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Link } from './Link';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CardSubscriptionLinks
17
+ */
18
+ export interface CardSubscriptionLinks {
19
+ /**
20
+ *
21
+ * @type {Link}
22
+ * @memberof CardSubscriptionLinks
23
+ */
24
+ self: Link;
25
+ /**
26
+ *
27
+ * @type {Link}
28
+ * @memberof CardSubscriptionLinks
29
+ */
30
+ card: Link;
31
+ /**
32
+ *
33
+ * @type {Link}
34
+ * @memberof CardSubscriptionLinks
35
+ */
36
+ networkBulkFeed?: Link;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CardSubscriptionLinks interface.
40
+ */
41
+ export declare function instanceOfCardSubscriptionLinks(value: object): value is CardSubscriptionLinks;
42
+ export declare function CardSubscriptionLinksFromJSON(json: any): CardSubscriptionLinks;
43
+ export declare function CardSubscriptionLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardSubscriptionLinks;
44
+ export declare function CardSubscriptionLinksToJSON(json: any): CardSubscriptionLinks;
45
+ export declare function CardSubscriptionLinksToJSONTyped(value?: CardSubscriptionLinks | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Astrada API
6
+ * Welcome to our API Reference. 👋
7
+ *
8
+ * The version of the OpenAPI document: 2024-02-28
9
+ * Contact: developer@astrada.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCardSubscriptionLinks = instanceOfCardSubscriptionLinks;
17
+ exports.CardSubscriptionLinksFromJSON = CardSubscriptionLinksFromJSON;
18
+ exports.CardSubscriptionLinksFromJSONTyped = CardSubscriptionLinksFromJSONTyped;
19
+ exports.CardSubscriptionLinksToJSON = CardSubscriptionLinksToJSON;
20
+ exports.CardSubscriptionLinksToJSONTyped = CardSubscriptionLinksToJSONTyped;
21
+ const Link_1 = require("./Link");
22
+ /**
23
+ * Check if a given object implements the CardSubscriptionLinks interface.
24
+ */
25
+ function instanceOfCardSubscriptionLinks(value) {
26
+ if (!('self' in value) || value['self'] === undefined)
27
+ return false;
28
+ if (!('card' in value) || value['card'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CardSubscriptionLinksFromJSON(json) {
33
+ return CardSubscriptionLinksFromJSONTyped(json, false);
34
+ }
35
+ function CardSubscriptionLinksFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'self': (0, Link_1.LinkFromJSON)(json['self']),
41
+ 'card': (0, Link_1.LinkFromJSON)(json['card']),
42
+ 'networkBulkFeed': json['networkBulkFeed'] == null ? undefined : (0, Link_1.LinkFromJSON)(json['networkBulkFeed']),
43
+ };
44
+ }
45
+ function CardSubscriptionLinksToJSON(json) {
46
+ return CardSubscriptionLinksToJSONTyped(json, false);
47
+ }
48
+ function CardSubscriptionLinksToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'self': (0, Link_1.LinkToJSON)(value['self']),
54
+ 'card': (0, Link_1.LinkToJSON)(value['card']),
55
+ 'networkBulkFeed': (0, Link_1.LinkToJSON)(value['networkBulkFeed']),
56
+ };
57
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Astrada API
3
+ * Welcome to our API Reference. 👋
4
+ *
5
+ * The version of the OpenAPI document: 2024-02-28
6
+ * Contact: developer@astrada.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CardholderLinks } from './CardholderLinks';
13
+ import type { CardholderCorporate } from './CardholderCorporate';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Cardholder
18
+ */
19
+ export interface Cardholder {
20
+ /**
21
+ *
22
+ * @type {CardholderLinks}
23
+ * @memberof Cardholder
24
+ */
25
+ _links: CardholderLinks;
26
+ /**
27
+ *
28
+ * @type {CardholderCorporate}
29
+ * @memberof Cardholder
30
+ */
31
+ corporate: CardholderCorporate;
32
+ /**
33
+ * The first name of the cardholder
34
+ * @type {string}
35
+ * @memberof Cardholder
36
+ */
37
+ firstName?: string | null;
38
+ /**
39
+ * The last name of the cardholder
40
+ * @type {string}
41
+ * @memberof Cardholder
42
+ */
43
+ lastName?: string | null;
44
+ /**
45
+ * Date and Time when this entity was created following ISO 8601 format.
46
+ * @type {Date}
47
+ * @memberof Cardholder
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * Date and Time when this entity was last updated following ISO 8601 format.
52
+ * @type {Date}
53
+ * @memberof Cardholder
54
+ */
55
+ updatedAt: Date;
56
+ }
57
+ /**
58
+ * Check if a given object implements the Cardholder interface.
59
+ */
60
+ export declare function instanceOfCardholder(value: object): value is Cardholder;
61
+ export declare function CardholderFromJSON(json: any): Cardholder;
62
+ export declare function CardholderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cardholder;
63
+ export declare function CardholderToJSON(json: any): Cardholder;
64
+ export declare function CardholderToJSONTyped(value?: Cardholder | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Astrada API
6
+ * Welcome to our API Reference. 👋
7
+ *
8
+ * The version of the OpenAPI document: 2024-02-28
9
+ * Contact: developer@astrada.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCardholder = instanceOfCardholder;
17
+ exports.CardholderFromJSON = CardholderFromJSON;
18
+ exports.CardholderFromJSONTyped = CardholderFromJSONTyped;
19
+ exports.CardholderToJSON = CardholderToJSON;
20
+ exports.CardholderToJSONTyped = CardholderToJSONTyped;
21
+ const CardholderLinks_1 = require("./CardholderLinks");
22
+ const CardholderCorporate_1 = require("./CardholderCorporate");
23
+ /**
24
+ * Check if a given object implements the Cardholder interface.
25
+ */
26
+ function instanceOfCardholder(value) {
27
+ if (!('_links' in value) || value['_links'] === undefined)
28
+ return false;
29
+ if (!('corporate' in value) || value['corporate'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function CardholderFromJSON(json) {
38
+ return CardholderFromJSONTyped(json, false);
39
+ }
40
+ function CardholderFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ '_links': (0, CardholderLinks_1.CardholderLinksFromJSON)(json['_links']),
46
+ 'corporate': (0, CardholderCorporate_1.CardholderCorporateFromJSON)(json['corporate']),
47
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
48
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
49
+ 'createdAt': (new Date(json['createdAt'])),
50
+ 'updatedAt': (new Date(json['updatedAt'])),
51
+ };
52
+ }
53
+ function CardholderToJSON(json) {
54
+ return CardholderToJSONTyped(json, false);
55
+ }
56
+ function CardholderToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ '_links': (0, CardholderLinks_1.CardholderLinksToJSON)(value['_links']),
62
+ 'corporate': (0, CardholderCorporate_1.CardholderCorporateToJSON)(value['corporate']),
63
+ 'firstName': value['firstName'],
64
+ 'lastName': value['lastName'],
65
+ 'createdAt': ((value['createdAt']).toISOString()),
66
+ 'updatedAt': ((value['updatedAt']).toISOString()),
67
+ };
68
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Astrada API
3
+ * Welcome to our API Reference. 👋
4
+ *
5
+ * The version of the OpenAPI document: 2024-02-28
6
+ * Contact: developer@astrada.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The corporate entity that this cardholder is associated with
14
+ * @export
15
+ * @interface CardholderCorporate
16
+ */
17
+ export interface CardholderCorporate {
18
+ /**
19
+ * The unique identifier of the employee
20
+ * @type {string}
21
+ * @memberof CardholderCorporate
22
+ */
23
+ employeeId?: string | null;
24
+ /**
25
+ * The identifier of the corporate
26
+ * @type {string}
27
+ * @memberof CardholderCorporate
28
+ */
29
+ id?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CardholderCorporate interface.
33
+ */
34
+ export declare function instanceOfCardholderCorporate(value: object): value is CardholderCorporate;
35
+ export declare function CardholderCorporateFromJSON(json: any): CardholderCorporate;
36
+ export declare function CardholderCorporateFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardholderCorporate;
37
+ export declare function CardholderCorporateToJSON(json: any): CardholderCorporate;
38
+ export declare function CardholderCorporateToJSONTyped(value?: CardholderCorporate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Astrada API
6
+ * Welcome to our API Reference. 👋
7
+ *
8
+ * The version of the OpenAPI document: 2024-02-28
9
+ * Contact: developer@astrada.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCardholderCorporate = instanceOfCardholderCorporate;
17
+ exports.CardholderCorporateFromJSON = CardholderCorporateFromJSON;
18
+ exports.CardholderCorporateFromJSONTyped = CardholderCorporateFromJSONTyped;
19
+ exports.CardholderCorporateToJSON = CardholderCorporateToJSON;
20
+ exports.CardholderCorporateToJSONTyped = CardholderCorporateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CardholderCorporate interface.
23
+ */
24
+ function instanceOfCardholderCorporate(value) {
25
+ return true;
26
+ }
27
+ function CardholderCorporateFromJSON(json) {
28
+ return CardholderCorporateFromJSONTyped(json, false);
29
+ }
30
+ function CardholderCorporateFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'employeeId': json['employeeId'] == null ? undefined : json['employeeId'],
36
+ 'id': json['id'] == null ? undefined : json['id'],
37
+ };
38
+ }
39
+ function CardholderCorporateToJSON(json) {
40
+ return CardholderCorporateToJSONTyped(json, false);
41
+ }
42
+ function CardholderCorporateToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'employeeId': value['employeeId'],
48
+ 'id': value['id'],
49
+ };
50
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Astrada API
3
+ * Welcome to our API Reference. 👋
4
+ *
5
+ * The version of the OpenAPI document: 2024-02-28
6
+ * Contact: developer@astrada.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Link } from './Link';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CardholderLinks
17
+ */
18
+ export interface CardholderLinks {
19
+ /**
20
+ *
21
+ * @type {Link}
22
+ * @memberof CardholderLinks
23
+ */
24
+ self: Link;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CardholderLinks interface.
28
+ */
29
+ export declare function instanceOfCardholderLinks(value: object): value is CardholderLinks;
30
+ export declare function CardholderLinksFromJSON(json: any): CardholderLinks;
31
+ export declare function CardholderLinksFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardholderLinks;
32
+ export declare function CardholderLinksToJSON(json: any): CardholderLinks;
33
+ export declare function CardholderLinksToJSONTyped(value?: CardholderLinks | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Astrada API
6
+ * Welcome to our API Reference. 👋
7
+ *
8
+ * The version of the OpenAPI document: 2024-02-28
9
+ * Contact: developer@astrada.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCardholderLinks = instanceOfCardholderLinks;
17
+ exports.CardholderLinksFromJSON = CardholderLinksFromJSON;
18
+ exports.CardholderLinksFromJSONTyped = CardholderLinksFromJSONTyped;
19
+ exports.CardholderLinksToJSON = CardholderLinksToJSON;
20
+ exports.CardholderLinksToJSONTyped = CardholderLinksToJSONTyped;
21
+ const Link_1 = require("./Link");
22
+ /**
23
+ * Check if a given object implements the CardholderLinks interface.
24
+ */
25
+ function instanceOfCardholderLinks(value) {
26
+ if (!('self' in value) || value['self'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CardholderLinksFromJSON(json) {
31
+ return CardholderLinksFromJSONTyped(json, false);
32
+ }
33
+ function CardholderLinksFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'self': (0, Link_1.LinkFromJSON)(json['self']),
39
+ };
40
+ }
41
+ function CardholderLinksToJSON(json) {
42
+ return CardholderLinksToJSONTyped(json, false);
43
+ }
44
+ function CardholderLinksToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'self': (0, Link_1.LinkToJSON)(value['self']),
50
+ };
51
+ }