@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,83 @@
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.NetworkBulkFeedsNetworkEnum = void 0;
17
+ exports.instanceOfNetworkBulkFeeds = instanceOfNetworkBulkFeeds;
18
+ exports.NetworkBulkFeedsFromJSON = NetworkBulkFeedsFromJSON;
19
+ exports.NetworkBulkFeedsFromJSONTyped = NetworkBulkFeedsFromJSONTyped;
20
+ exports.NetworkBulkFeedsToJSON = NetworkBulkFeedsToJSON;
21
+ exports.NetworkBulkFeedsToJSONTyped = NetworkBulkFeedsToJSONTyped;
22
+ const CardholderLinks_1 = require("./CardholderLinks");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.NetworkBulkFeedsNetworkEnum = {
27
+ Mastercard: 'MASTERCARD',
28
+ Visa: 'VISA'
29
+ };
30
+ /**
31
+ * Check if a given object implements the NetworkBulkFeeds interface.
32
+ */
33
+ function instanceOfNetworkBulkFeeds(value) {
34
+ if (!('_links' in value) || value['_links'] === undefined)
35
+ return false;
36
+ if (!('id' in value) || value['id'] === undefined)
37
+ return false;
38
+ if (!('subaccountId' in value) || value['subaccountId'] === undefined)
39
+ return false;
40
+ if (!('network' in value) || value['network'] === undefined)
41
+ return false;
42
+ if (!('networkReference' in value) || value['networkReference'] === undefined)
43
+ return false;
44
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
45
+ return false;
46
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ function NetworkBulkFeedsFromJSON(json) {
51
+ return NetworkBulkFeedsFromJSONTyped(json, false);
52
+ }
53
+ function NetworkBulkFeedsFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ '_links': (0, CardholderLinks_1.CardholderLinksFromJSON)(json['_links']),
59
+ 'id': json['id'],
60
+ 'subaccountId': json['subaccountId'],
61
+ 'network': json['network'],
62
+ 'networkReference': json['networkReference'],
63
+ 'createdAt': (new Date(json['createdAt'])),
64
+ 'updatedAt': (new Date(json['updatedAt'])),
65
+ };
66
+ }
67
+ function NetworkBulkFeedsToJSON(json) {
68
+ return NetworkBulkFeedsToJSONTyped(json, false);
69
+ }
70
+ function NetworkBulkFeedsToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ '_links': (0, CardholderLinks_1.CardholderLinksToJSON)(value['_links']),
76
+ 'id': value['id'],
77
+ 'subaccountId': value['subaccountId'],
78
+ 'network': value['network'],
79
+ 'networkReference': value['networkReference'],
80
+ 'createdAt': ((value['createdAt']).toISOString()),
81
+ 'updatedAt': ((value['updatedAt']).toISOString()),
82
+ };
83
+ }
@@ -0,0 +1,70 @@
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 { SubaccountConfiguration } from './SubaccountConfiguration';
13
+ import type { CardholderLinks } from './CardholderLinks';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Subaccount
18
+ */
19
+ export interface Subaccount {
20
+ /**
21
+ *
22
+ * @type {CardholderLinks}
23
+ * @memberof Subaccount
24
+ */
25
+ _links: CardholderLinks;
26
+ /**
27
+ * The unique identifier of the account related to this entity.
28
+ * @type {string}
29
+ * @memberof Subaccount
30
+ */
31
+ accountId: string;
32
+ /**
33
+ * The unique identifier of this subaccount entity.
34
+ * @type {string}
35
+ * @memberof Subaccount
36
+ */
37
+ id: string;
38
+ /**
39
+ * The name of this subaccount entity.
40
+ * @type {string}
41
+ * @memberof Subaccount
42
+ */
43
+ name: string;
44
+ /**
45
+ * Date and Time when this entity was created following ISO 8601 format.
46
+ * @type {Date}
47
+ * @memberof Subaccount
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * Date and Time when this entity was last updated following ISO 8601 format.
52
+ * @type {Date}
53
+ * @memberof Subaccount
54
+ */
55
+ updatedAt: Date;
56
+ /**
57
+ *
58
+ * @type {SubaccountConfiguration}
59
+ * @memberof Subaccount
60
+ */
61
+ configurations: SubaccountConfiguration;
62
+ }
63
+ /**
64
+ * Check if a given object implements the Subaccount interface.
65
+ */
66
+ export declare function instanceOfSubaccount(value: object): value is Subaccount;
67
+ export declare function SubaccountFromJSON(json: any): Subaccount;
68
+ export declare function SubaccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subaccount;
69
+ export declare function SubaccountToJSON(json: any): Subaccount;
70
+ export declare function SubaccountToJSONTyped(value?: Subaccount | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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.instanceOfSubaccount = instanceOfSubaccount;
17
+ exports.SubaccountFromJSON = SubaccountFromJSON;
18
+ exports.SubaccountFromJSONTyped = SubaccountFromJSONTyped;
19
+ exports.SubaccountToJSON = SubaccountToJSON;
20
+ exports.SubaccountToJSONTyped = SubaccountToJSONTyped;
21
+ const SubaccountConfiguration_1 = require("./SubaccountConfiguration");
22
+ const CardholderLinks_1 = require("./CardholderLinks");
23
+ /**
24
+ * Check if a given object implements the Subaccount interface.
25
+ */
26
+ function instanceOfSubaccount(value) {
27
+ if (!('_links' in value) || value['_links'] === undefined)
28
+ return false;
29
+ if (!('accountId' in value) || value['accountId'] === undefined)
30
+ return false;
31
+ if (!('id' in value) || value['id'] === undefined)
32
+ return false;
33
+ if (!('name' in value) || value['name'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
38
+ return false;
39
+ if (!('configurations' in value) || value['configurations'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function SubaccountFromJSON(json) {
44
+ return SubaccountFromJSONTyped(json, false);
45
+ }
46
+ function SubaccountFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ '_links': (0, CardholderLinks_1.CardholderLinksFromJSON)(json['_links']),
52
+ 'accountId': json['accountId'],
53
+ 'id': json['id'],
54
+ 'name': json['name'],
55
+ 'createdAt': (new Date(json['createdAt'])),
56
+ 'updatedAt': (new Date(json['updatedAt'])),
57
+ 'configurations': (0, SubaccountConfiguration_1.SubaccountConfigurationFromJSON)(json['configurations']),
58
+ };
59
+ }
60
+ function SubaccountToJSON(json) {
61
+ return SubaccountToJSONTyped(json, false);
62
+ }
63
+ function SubaccountToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ '_links': (0, CardholderLinks_1.CardholderLinksToJSON)(value['_links']),
69
+ 'accountId': value['accountId'],
70
+ 'id': value['id'],
71
+ 'name': value['name'],
72
+ 'createdAt': ((value['createdAt']).toISOString()),
73
+ 'updatedAt': ((value['updatedAt']).toISOString()),
74
+ 'configurations': (0, SubaccountConfiguration_1.SubaccountConfigurationToJSON)(value['configurations']),
75
+ };
76
+ }
@@ -0,0 +1,39 @@
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 { SubaccountConfigurationVISA } from './SubaccountConfigurationVISA';
13
+ /**
14
+ * Subaccount network and regional configurations which determine the available networks and geographies during card enrollment.
15
+ * @export
16
+ * @interface SubaccountConfiguration
17
+ */
18
+ export interface SubaccountConfiguration {
19
+ /**
20
+ *
21
+ * @type {SubaccountConfigurationVISA}
22
+ * @memberof SubaccountConfiguration
23
+ */
24
+ VISA?: SubaccountConfigurationVISA;
25
+ /**
26
+ *
27
+ * @type {SubaccountConfigurationVISA}
28
+ * @memberof SubaccountConfiguration
29
+ */
30
+ MASTERCARD?: SubaccountConfigurationVISA;
31
+ }
32
+ /**
33
+ * Check if a given object implements the SubaccountConfiguration interface.
34
+ */
35
+ export declare function instanceOfSubaccountConfiguration(value: object): value is SubaccountConfiguration;
36
+ export declare function SubaccountConfigurationFromJSON(json: any): SubaccountConfiguration;
37
+ export declare function SubaccountConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubaccountConfiguration;
38
+ export declare function SubaccountConfigurationToJSON(json: any): SubaccountConfiguration;
39
+ export declare function SubaccountConfigurationToJSONTyped(value?: SubaccountConfiguration | 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.instanceOfSubaccountConfiguration = instanceOfSubaccountConfiguration;
17
+ exports.SubaccountConfigurationFromJSON = SubaccountConfigurationFromJSON;
18
+ exports.SubaccountConfigurationFromJSONTyped = SubaccountConfigurationFromJSONTyped;
19
+ exports.SubaccountConfigurationToJSON = SubaccountConfigurationToJSON;
20
+ exports.SubaccountConfigurationToJSONTyped = SubaccountConfigurationToJSONTyped;
21
+ const SubaccountConfigurationVISA_1 = require("./SubaccountConfigurationVISA");
22
+ /**
23
+ * Check if a given object implements the SubaccountConfiguration interface.
24
+ */
25
+ function instanceOfSubaccountConfiguration(value) {
26
+ return true;
27
+ }
28
+ function SubaccountConfigurationFromJSON(json) {
29
+ return SubaccountConfigurationFromJSONTyped(json, false);
30
+ }
31
+ function SubaccountConfigurationFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'VISA': json['VISA'] == null ? undefined : (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAFromJSON)(json['VISA']),
37
+ 'MASTERCARD': json['MASTERCARD'] == null ? undefined : (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAFromJSON)(json['MASTERCARD']),
38
+ };
39
+ }
40
+ function SubaccountConfigurationToJSON(json) {
41
+ return SubaccountConfigurationToJSONTyped(json, false);
42
+ }
43
+ function SubaccountConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'VISA': (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAToJSON)(value['VISA']),
49
+ 'MASTERCARD': (0, SubaccountConfigurationVISA_1.SubaccountConfigurationVISAToJSON)(value['MASTERCARD']),
50
+ };
51
+ }
@@ -0,0 +1,43 @@
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
+ *
14
+ * @export
15
+ * @interface SubaccountConfigurationVISA
16
+ */
17
+ export interface SubaccountConfigurationVISA {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof SubaccountConfigurationVISA
22
+ */
23
+ countries: Array<SubaccountConfigurationVISACountriesEnum>;
24
+ }
25
+ /**
26
+ * @export
27
+ */
28
+ export declare const SubaccountConfigurationVISACountriesEnum: {
29
+ readonly Usa: "USA";
30
+ readonly Can: "CAN";
31
+ readonly Gbr: "GBR";
32
+ readonly Ita: "ITA";
33
+ readonly Swe: "SWE";
34
+ };
35
+ export type SubaccountConfigurationVISACountriesEnum = typeof SubaccountConfigurationVISACountriesEnum[keyof typeof SubaccountConfigurationVISACountriesEnum];
36
+ /**
37
+ * Check if a given object implements the SubaccountConfigurationVISA interface.
38
+ */
39
+ export declare function instanceOfSubaccountConfigurationVISA(value: object): value is SubaccountConfigurationVISA;
40
+ export declare function SubaccountConfigurationVISAFromJSON(json: any): SubaccountConfigurationVISA;
41
+ export declare function SubaccountConfigurationVISAFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubaccountConfigurationVISA;
42
+ export declare function SubaccountConfigurationVISAToJSON(json: any): SubaccountConfigurationVISA;
43
+ export declare function SubaccountConfigurationVISAToJSONTyped(value?: SubaccountConfigurationVISA | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.SubaccountConfigurationVISACountriesEnum = void 0;
17
+ exports.instanceOfSubaccountConfigurationVISA = instanceOfSubaccountConfigurationVISA;
18
+ exports.SubaccountConfigurationVISAFromJSON = SubaccountConfigurationVISAFromJSON;
19
+ exports.SubaccountConfigurationVISAFromJSONTyped = SubaccountConfigurationVISAFromJSONTyped;
20
+ exports.SubaccountConfigurationVISAToJSON = SubaccountConfigurationVISAToJSON;
21
+ exports.SubaccountConfigurationVISAToJSONTyped = SubaccountConfigurationVISAToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SubaccountConfigurationVISACountriesEnum = {
26
+ Usa: 'USA',
27
+ Can: 'CAN',
28
+ Gbr: 'GBR',
29
+ Ita: 'ITA',
30
+ Swe: 'SWE'
31
+ };
32
+ /**
33
+ * Check if a given object implements the SubaccountConfigurationVISA interface.
34
+ */
35
+ function instanceOfSubaccountConfigurationVISA(value) {
36
+ if (!('countries' in value) || value['countries'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function SubaccountConfigurationVISAFromJSON(json) {
41
+ return SubaccountConfigurationVISAFromJSONTyped(json, false);
42
+ }
43
+ function SubaccountConfigurationVISAFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'countries': json['countries'],
49
+ };
50
+ }
51
+ function SubaccountConfigurationVISAToJSON(json) {
52
+ return SubaccountConfigurationVISAToJSONTyped(json, false);
53
+ }
54
+ function SubaccountConfigurationVISAToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'countries': value['countries'],
60
+ };
61
+ }
@@ -0,0 +1,140 @@
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 { TransactionLinks } from './TransactionLinks';
13
+ import type { TransactionAcceptor } from './TransactionAcceptor';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Transaction
18
+ */
19
+ export interface Transaction {
20
+ /**
21
+ *
22
+ * @type {TransactionLinks}
23
+ * @memberof Transaction
24
+ */
25
+ _links: TransactionLinks;
26
+ /**
27
+ *
28
+ * @type {TransactionAcceptor}
29
+ * @memberof Transaction
30
+ */
31
+ acceptor: TransactionAcceptor;
32
+ /**
33
+ * The unique identifier of the card related to this entity.
34
+ * @type {string}
35
+ * @memberof Transaction
36
+ */
37
+ cardId: string;
38
+ /**
39
+ * The currency of the country of issuance following ISO 4217 alpha-3 format.
40
+ * @type {string}
41
+ * @memberof Transaction
42
+ */
43
+ cardholderBillingCurrency: string;
44
+ /**
45
+ * This amount models the hold on the cardholder account, in the card's issued currency, that occurs after an authorization and before a financial message. This amount will change as both authorization and financial messages are added to the Transaction in order to reflect the remaining hold amount.
46
+ * @type {number}
47
+ * @memberof Transaction
48
+ */
49
+ cardholderBillingHoldAmount: number;
50
+ /**
51
+ * The settled amount models the bottom line impact to the customer's bank statement in the card's issued currency. This amount will change as financial messages are added to the Transaction.
52
+ * @type {number}
53
+ * @memberof Transaction
54
+ */
55
+ cardholderBillingSettledAmount: number;
56
+ /**
57
+ * Cleansed merchant name.
58
+ * @type {string}
59
+ * @memberof Transaction
60
+ */
61
+ descriptor: string | null;
62
+ /**
63
+ * The unique identifier of this transaction entity.
64
+ * @type {string}
65
+ * @memberof Transaction
66
+ */
67
+ id: string;
68
+ /**
69
+ * The card network that processed this payment.
70
+ * @type {string}
71
+ * @memberof Transaction
72
+ */
73
+ network: string;
74
+ /**
75
+ * The unique identifier of the subaccount related to this entity.
76
+ * @type {string}
77
+ * @memberof Transaction
78
+ */
79
+ subaccountId: string;
80
+ /**
81
+ * A semantic understanding of the state of the transaction within the transaction lifecycle. [Learn More](https://docs.astrada.co/docs/transaction)
82
+ * @type {string}
83
+ * @memberof Transaction
84
+ */
85
+ status: TransactionStatusEnum;
86
+ /**
87
+ * The currency in which the transaction took place following ISO 4217 alpha-3 format.
88
+ * @type {string}
89
+ * @memberof Transaction
90
+ */
91
+ transactionCurrency: string;
92
+ /**
93
+ * This amount models the hold on the cardholder account, in the currency the transaction was conducted in, that occurs after an authorization and before a financial message. This amount will change as both authorization and financial messages are added to the Transaction in order to reflect the remaining hold amount.
94
+ * @type {number}
95
+ * @memberof Transaction
96
+ */
97
+ transactionHoldAmount: number;
98
+ /**
99
+ * The date when the transaction took place following ISO 8601 format.
100
+ * @type {Date}
101
+ * @memberof Transaction
102
+ */
103
+ transactionOccurrenceDate: Date | null;
104
+ /**
105
+ * The settled amount models the bottom line impact to the customer's bank statement in the currency the transaction was conducted in. This amount will change as financial messages are added to the Transaction.
106
+ * @type {number}
107
+ * @memberof Transaction
108
+ */
109
+ transactionSettledAmount: number;
110
+ /**
111
+ * Date and Time when this entity was created following ISO 8601 format.
112
+ * @type {Date}
113
+ * @memberof Transaction
114
+ */
115
+ createdAt: Date;
116
+ /**
117
+ * Date and Time when this entity was last updated following ISO 8601 format.
118
+ * @type {Date}
119
+ * @memberof Transaction
120
+ */
121
+ updatedAt: Date;
122
+ }
123
+ /**
124
+ * @export
125
+ */
126
+ export declare const TransactionStatusEnum: {
127
+ readonly Pending: "PENDING";
128
+ readonly Voided: "VOIDED";
129
+ readonly Declined: "DECLINED";
130
+ readonly Settled: "SETTLED";
131
+ };
132
+ export type TransactionStatusEnum = typeof TransactionStatusEnum[keyof typeof TransactionStatusEnum];
133
+ /**
134
+ * Check if a given object implements the Transaction interface.
135
+ */
136
+ export declare function instanceOfTransaction(value: object): value is Transaction;
137
+ export declare function TransactionFromJSON(json: any): Transaction;
138
+ export declare function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction;
139
+ export declare function TransactionToJSON(json: any): Transaction;
140
+ export declare function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscriminator?: boolean): any;